[PATCH v6 01/13] ARM: OMAP2+: gpmc: platform definitions
Afzal Mohammed
afzal at ti.com
Fri Jun 22 08:56:30 EDT 2012
gpmc driver platform definitions
Signed-off-by: Afzal Mohammed <afzal at ti.com>
---
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
More information about the linux-arm-kernel
mailing list