gpmc driver platform definitions

Signed-off-by: Afzal Mohammed <af...@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

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to