aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pdata-quirks.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/pdata-quirks.c')
-rw-r--r--arch/arm/mach-omap2/pdata-quirks.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c
index 6a7554515b6e..47afff3b9c37 100644
--- a/arch/arm/mach-omap2/pdata-quirks.c
+++ b/arch/arm/mach-omap2/pdata-quirks.c
@@ -27,6 +27,7 @@ struct pdata_init {
27}; 27};
28 28
29struct of_dev_auxdata omap_auxdata_lookup[]; 29struct of_dev_auxdata omap_auxdata_lookup[];
30static struct twl4030_gpio_platform_data twl_gpio_auxdata;
30 31
31/* 32/*
32 * Create alias for USB host PHY clock. 33 * Create alias for USB host PHY clock.
@@ -137,6 +138,21 @@ void omap_pcs_legacy_init(int irq, void (*rearm)(void))
137} 138}
138 139
139/* 140/*
141 * GPIOs for TWL are initialized by the I2C bus and need custom
142 * handing until DSS has device tree bindings.
143 */
144void omap_auxdata_legacy_init(struct device *dev)
145{
146 if (dev->platform_data)
147 return;
148
149 if (strcmp("twl4030-gpio", dev_name(dev)))
150 return;
151
152 dev->platform_data = &twl_gpio_auxdata;
153}
154
155/*
140 * Few boards still need auxdata populated before we populate 156 * Few boards still need auxdata populated before we populate
141 * the dev entries in of_platform_populate(). 157 * the dev entries in of_platform_populate().
142 */ 158 */