diff options
author | Tony Lindgren <tony@atomide.com> | 2012-02-24 13:34:33 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-02-24 13:34:33 -0500 |
commit | 63325ff235deeed5a5fc25705e292239115c76cd (patch) | |
tree | 115ac82cd6f5c5abaaf7b1e622a9b522914ca05a | |
parent | a4f34197120be8edfe099bb6cde35740d299b6d1 (diff) |
ARM: OMAP1: Move 16xx GPIO system clock to platform init code
This way we can remove omap_read/write call from the GPIO driver
and remove include to linux/io.h.
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap1/gpio16xx.c | 7 | ||||
-rw-r--r-- | drivers/gpio/gpio-omap.c | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-omap1/gpio16xx.c b/arch/arm/mach-omap1/gpio16xx.c index 0f399bd0e70e..99cabc498ab5 100644 --- a/arch/arm/mach-omap1/gpio16xx.c +++ b/arch/arm/mach-omap1/gpio16xx.c | |||
@@ -218,6 +218,13 @@ static int __init omap16xx_gpio_init(void) | |||
218 | if (!cpu_is_omap16xx()) | 218 | if (!cpu_is_omap16xx()) |
219 | return -EINVAL; | 219 | return -EINVAL; |
220 | 220 | ||
221 | /* | ||
222 | * Enable system clock for GPIO module. | ||
223 | * The CAM_CLK_CTRL *is* really the right place. | ||
224 | */ | ||
225 | omap_writel(omap_readl(ULPD_CAM_CLK_CTRL) | 0x04, | ||
226 | ULPD_CAM_CLK_CTRL); | ||
227 | |||
221 | for (i = 0; i < ARRAY_SIZE(omap16xx_gpio_dev); i++) | 228 | for (i = 0; i < ARRAY_SIZE(omap16xx_gpio_dev); i++) |
222 | platform_device_register(omap16xx_gpio_dev[i]); | 229 | platform_device_register(omap16xx_gpio_dev[i]); |
223 | 230 | ||
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 0b0562979171..5b7b164e08ad 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c | |||
@@ -1064,13 +1064,6 @@ static void omap_gpio_mod_init(struct gpio_bank *bank, int id) | |||
1064 | + OMAP1610_GPIO_IRQSTATUS1); | 1064 | + OMAP1610_GPIO_IRQSTATUS1); |
1065 | __raw_writew(0x0014, bank->base | 1065 | __raw_writew(0x0014, bank->base |
1066 | + OMAP1610_GPIO_SYSCONFIG); | 1066 | + OMAP1610_GPIO_SYSCONFIG); |
1067 | |||
1068 | /* | ||
1069 | * Enable system clock for GPIO module. | ||
1070 | * The CAM_CLK_CTRL *is* really the right place. | ||
1071 | */ | ||
1072 | omap_writel(omap_readl(ULPD_CAM_CLK_CTRL) | 0x04, | ||
1073 | ULPD_CAM_CLK_CTRL); | ||
1074 | } | 1067 | } |
1075 | if (cpu_is_omap7xx() && bank->method == METHOD_GPIO_7XX) { | 1068 | if (cpu_is_omap7xx() && bank->method == METHOD_GPIO_7XX) { |
1076 | __raw_writel(0xffffffff, bank->base | 1069 | __raw_writel(0xffffffff, bank->base |