diff options
Diffstat (limited to 'arch/arm/mach-omap1/board-h3.c')
-rw-r--r-- | arch/arm/mach-omap1/board-h3.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c index 7cd419d61b40..2798613696fa 100644 --- a/arch/arm/mach-omap1/board-h3.c +++ b/arch/arm/mach-omap1/board-h3.c | |||
@@ -82,8 +82,7 @@ static struct flash_platform_data h3_flash_data = { | |||
82 | }; | 82 | }; |
83 | 83 | ||
84 | static struct resource h3_flash_resource = { | 84 | static struct resource h3_flash_resource = { |
85 | .start = OMAP_CS2B_PHYS, | 85 | /* This is on CS3, wherever it's mapped */ |
86 | .end = OMAP_CS2B_PHYS + OMAP_CS2B_SIZE - 1, | ||
87 | .flags = IORESOURCE_MEM, | 86 | .flags = IORESOURCE_MEM, |
88 | }; | 87 | }; |
89 | 88 | ||
@@ -161,13 +160,26 @@ static struct omap_usb_config h3_usb_config __initdata = { | |||
161 | .pins[1] = 3, | 160 | .pins[1] = 3, |
162 | }; | 161 | }; |
163 | 162 | ||
163 | static struct omap_mmc_config h3_mmc_config __initdata = { | ||
164 | .mmc[0] = { | ||
165 | .enabled = 1, | ||
166 | .power_pin = -1, /* tps65010 GPIO4 */ | ||
167 | .switch_pin = OMAP_MPUIO(1), | ||
168 | }, | ||
169 | }; | ||
170 | |||
164 | static struct omap_board_config_kernel h3_config[] = { | 171 | static struct omap_board_config_kernel h3_config[] = { |
165 | { OMAP_TAG_USB, &h3_usb_config }, | 172 | { OMAP_TAG_USB, &h3_usb_config }, |
173 | { OMAP_TAG_MMC, &h3_mmc_config }, | ||
166 | }; | 174 | }; |
167 | 175 | ||
168 | static void __init h3_init(void) | 176 | static void __init h3_init(void) |
169 | { | 177 | { |
178 | h3_flash_resource.end = h3_flash_resource.start = omap_cs3_phys(); | ||
179 | h3_flash_resource.end += OMAP_CS3_SIZE - 1; | ||
170 | (void) platform_add_devices(devices, ARRAY_SIZE(devices)); | 180 | (void) platform_add_devices(devices, ARRAY_SIZE(devices)); |
181 | omap_board_config = h3_config; | ||
182 | omap_board_config_size = ARRAY_SIZE(h3_config); | ||
171 | } | 183 | } |
172 | 184 | ||
173 | static void __init h3_init_smc91x(void) | 185 | static void __init h3_init_smc91x(void) |
@@ -177,7 +189,6 @@ static void __init h3_init_smc91x(void) | |||
177 | printk("Error requesting gpio 40 for smc91x irq\n"); | 189 | printk("Error requesting gpio 40 for smc91x irq\n"); |
178 | return; | 190 | return; |
179 | } | 191 | } |
180 | omap_set_gpio_edge_ctrl(40, OMAP_GPIO_FALLING_EDGE); | ||
181 | } | 192 | } |
182 | 193 | ||
183 | void h3_init_irq(void) | 194 | void h3_init_irq(void) |