diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-03-25 14:31:35 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-03-25 14:31:35 -0400 |
commit | 8937b7349ca9e25a02b2a72ccb7fba404ddedc5b (patch) | |
tree | 434ffe23d318f8af55850a26c3431ce8b82ab6f4 /arch/arm/mach-omap2/board-2430sdp.c | |
parent | 997302259f386bca8fe1db67c50296ca426c438f (diff) | |
parent | ffe7f95bb1a4d1e9ca5d252445dc38476e1a208e (diff) |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 into devel
Diffstat (limited to 'arch/arm/mach-omap2/board-2430sdp.c')
-rw-r--r-- | arch/arm/mach-omap2/board-2430sdp.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index 7b29e1d00f23..22143651037e 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -35,12 +35,16 @@ | |||
35 | #include <mach/board.h> | 35 | #include <mach/board.h> |
36 | #include <mach/common.h> | 36 | #include <mach/common.h> |
37 | #include <mach/gpmc.h> | 37 | #include <mach/gpmc.h> |
38 | #include <mach/usb.h> | ||
38 | 39 | ||
39 | #include "mmc-twl4030.h" | 40 | #include "mmc-twl4030.h" |
40 | 41 | ||
42 | #define SDP2430_CS0_BASE 0x04000000 | ||
41 | #define SDP2430_FLASH_CS 0 | 43 | #define SDP2430_FLASH_CS 0 |
42 | #define SDP2430_SMC91X_CS 5 | 44 | #define SDP2430_SMC91X_CS 5 |
43 | 45 | ||
46 | #define SDP2430_ETHR_GPIO_IRQ 149 | ||
47 | |||
44 | static struct mtd_partition sdp2430_partitions[] = { | 48 | static struct mtd_partition sdp2430_partitions[] = { |
45 | /* bootloader (U-Boot, etc) in first sector */ | 49 | /* bootloader (U-Boot, etc) in first sector */ |
46 | { | 50 | { |
@@ -102,8 +106,8 @@ static struct resource sdp2430_smc91x_resources[] = { | |||
102 | .flags = IORESOURCE_MEM, | 106 | .flags = IORESOURCE_MEM, |
103 | }, | 107 | }, |
104 | [1] = { | 108 | [1] = { |
105 | .start = OMAP_GPIO_IRQ(OMAP24XX_ETHR_GPIO_IRQ), | 109 | .start = OMAP_GPIO_IRQ(SDP2430_ETHR_GPIO_IRQ), |
106 | .end = OMAP_GPIO_IRQ(OMAP24XX_ETHR_GPIO_IRQ), | 110 | .end = OMAP_GPIO_IRQ(SDP2430_ETHR_GPIO_IRQ), |
107 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL, | 111 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL, |
108 | }, | 112 | }, |
109 | }; | 113 | }; |
@@ -170,13 +174,13 @@ static inline void __init sdp2430_init_smc91x(void) | |||
170 | sdp2430_smc91x_resources[0].end = cs_mem_base + 0x30f; | 174 | sdp2430_smc91x_resources[0].end = cs_mem_base + 0x30f; |
171 | udelay(100); | 175 | udelay(100); |
172 | 176 | ||
173 | if (gpio_request(OMAP24XX_ETHR_GPIO_IRQ, "SMC91x irq") < 0) { | 177 | if (gpio_request(SDP2430_ETHR_GPIO_IRQ, "SMC91x irq") < 0) { |
174 | printk(KERN_ERR "Failed to request GPIO%d for smc91x IRQ\n", | 178 | printk(KERN_ERR "Failed to request GPIO%d for smc91x IRQ\n", |
175 | OMAP24XX_ETHR_GPIO_IRQ); | 179 | SDP2430_ETHR_GPIO_IRQ); |
176 | gpmc_cs_free(eth_cs); | 180 | gpmc_cs_free(eth_cs); |
177 | goto out; | 181 | goto out; |
178 | } | 182 | } |
179 | gpio_direction_input(OMAP24XX_ETHR_GPIO_IRQ); | 183 | gpio_direction_input(SDP2430_ETHR_GPIO_IRQ); |
180 | 184 | ||
181 | out: | 185 | out: |
182 | clk_disable(gpmc_fck); | 186 | clk_disable(gpmc_fck); |
@@ -251,6 +255,7 @@ static void __init omap_2430sdp_init(void) | |||
251 | omap_board_config_size = ARRAY_SIZE(sdp2430_config); | 255 | omap_board_config_size = ARRAY_SIZE(sdp2430_config); |
252 | omap_serial_init(); | 256 | omap_serial_init(); |
253 | twl4030_mmc_init(mmc); | 257 | twl4030_mmc_init(mmc); |
258 | usb_musb_init(); | ||
254 | } | 259 | } |
255 | 260 | ||
256 | static void __init omap_2430sdp_map_io(void) | 261 | static void __init omap_2430sdp_map_io(void) |