Thread (15 messages) 15 messages, 1 author, 2012-06-26

[PATCH v6 01/13] ARM: OMAP2+: gpmc: platform definitions

flat view
STALE5225d SUPERSEDED

From: Afzal Mohammed <hidden>
Date: 2012-06-22 12:56:30
Also in: linux-omap
Subsystem: arm port, omap power management support, the rest · Maintainers: Russell King, Kevin Hilman, Linus Torvalds

Revision v6 of 11 in this series.

Revisions (11)
  1. v5 [diff vs current]
  2. v5 [diff vs current]
  3. v6 current
  4. v7 [diff vs current]
  5. v8 [diff vs current]
  6. v8 [diff vs current]
  7. v8 [diff vs current]
  8. v8 [diff vs current]
  9. v9 [diff vs current]
  10. v9 [diff vs current]
  11. v9 [diff vs current]
gpmc driver platform definitions

Signed-off-by: Afzal Mohammed <redacted>
---
 arch/arm/plat-omap/include/plat/gpmc.h |   37 ++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
diff --git a/arch/arm/plat-omap/include/plat/gpmc.h b/arch/arm/plat-omap/include/plat/gpmc.h
index b7c9ea6..4e799b1 100644
--- a/arch/arm/plat-omap/include/plat/gpmc.h
+++ b/arch/arm/plat-omap/include/plat/gpmc.h
@@ -152,6 +152,43 @@ struct gpmc_timings {
 	struct gpmc_bool_timings bool_timings;
 };
 
+enum {
+	has_none,
+	has_period,
+	has_clock
+};
+
+struct gpmc_time_ctrl {
+	int type;
+	struct gpmc_timings timings;
+};
+
+struct gpmc_cs_data {
+	unsigned		cs;
+	unsigned long		mem_size;
+	unsigned long		mem_offset;
+	bool			have_config;
+	unsigned		config;
+	struct gpmc_time_ctrl	time_ctrl;
+	unsigned		irq_config;
+};
+
+struct gpmc_device_pdata {
+	char			*name;
+	int			id;
+	void			*pdata;
+	unsigned		pdata_size;
+	struct resource		*per_res;
+	unsigned		per_res_cnt;
+	struct gpmc_cs_data	*cs_data;
+	unsigned		num_cs;
+};
+
+struct gpmc_pdata {
+	unsigned			waitpin_nr;
+	struct gpmc_device_pdata	**device_pdata;
+};
+
 struct gpmc_nand_regs {
 	void __iomem	*gpmc_status;
 	void __iomem	*gpmc_nand_command;
-- 
1.7.10.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help