diff options
author | Charulatha V <charu@ti.com> | 2011-05-05 07:34:12 -0400 |
---|---|---|
committer | Tarun Kanti DebBarma <tarun.kanti@ti.com> | 2012-02-06 03:43:41 -0500 |
commit | 803a24343f94c3eaeed35e69efa12a576258ca70 (patch) | |
tree | fbaf81ee15aa0e8e701e7231e8cff9bcfe26c1a9 /drivers/gpio/gpio-omap.c | |
parent | 60a3437dc9a61c7f4b199c2bac3dcc7b611b1178 (diff) |
gpio/omap: make non-wakeup GPIO part of pdata
Non-wakeup GPIOs are available only in OMAP2. Avoid cpu_is checks by making
non_wakeup_gpios as part of pdata.
Signed-off-by: Charulatha V <charu@ti.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'drivers/gpio/gpio-omap.c')
-rw-r--r-- | drivers/gpio/gpio-omap.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index a1a3b9dca178..2eed159d964e 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c | |||
@@ -1021,13 +1021,6 @@ static void omap_gpio_mod_init(struct gpio_bank *bank) | |||
1021 | 1021 | ||
1022 | /* Initialize interface clk ungated, module enabled */ | 1022 | /* Initialize interface clk ungated, module enabled */ |
1023 | __raw_writel(0, bank->base + OMAP24XX_GPIO_CTRL); | 1023 | __raw_writel(0, bank->base + OMAP24XX_GPIO_CTRL); |
1024 | } else if (cpu_is_omap24xx()) { | ||
1025 | static const u32 non_wakeup_gpios[] = { | ||
1026 | 0xe203ffc0, 0x08700040 | ||
1027 | }; | ||
1028 | if (bank->id < ARRAY_SIZE(non_wakeup_gpios)) | ||
1029 | bank->non_wakeup_gpios = | ||
1030 | non_wakeup_gpios[bank->id]; | ||
1031 | } | 1024 | } |
1032 | } else if (cpu_class_is_omap1()) { | 1025 | } else if (cpu_class_is_omap1()) { |
1033 | if (bank_is_mpuio(bank)) { | 1026 | if (bank_is_mpuio(bank)) { |
@@ -1180,6 +1173,7 @@ static int __devinit omap_gpio_probe(struct platform_device *pdev) | |||
1180 | bank->dbck_flag = pdata->dbck_flag; | 1173 | bank->dbck_flag = pdata->dbck_flag; |
1181 | bank->stride = pdata->bank_stride; | 1174 | bank->stride = pdata->bank_stride; |
1182 | bank->width = pdata->bank_width; | 1175 | bank->width = pdata->bank_width; |
1176 | bank->non_wakeup_gpios = pdata->non_wakeup_gpios; | ||
1183 | bank->loses_context = pdata->loses_context; | 1177 | bank->loses_context = pdata->loses_context; |
1184 | bank->get_context_loss_count = pdata->get_context_loss_count; | 1178 | bank->get_context_loss_count = pdata->get_context_loss_count; |
1185 | bank->regs = pdata->regs; | 1179 | bank->regs = pdata->regs; |