aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-2430sdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/board-2430sdp.c')
-rw-r--r--arch/arm/mach-omap2/board-2430sdp.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c
index e508904fb67e..01d113ff9fcf 100644
--- a/arch/arm/mach-omap2/board-2430sdp.c
+++ b/arch/arm/mach-omap2/board-2430sdp.c
@@ -18,6 +18,7 @@
18#include <linux/platform_device.h> 18#include <linux/platform_device.h>
19#include <linux/mtd/mtd.h> 19#include <linux/mtd/mtd.h>
20#include <linux/mtd/partitions.h> 20#include <linux/mtd/partitions.h>
21#include <linux/mtd/physmap.h>
21#include <linux/delay.h> 22#include <linux/delay.h>
22#include <linux/i2c/twl.h> 23#include <linux/i2c/twl.h>
23#include <linux/err.h> 24#include <linux/err.h>
@@ -28,7 +29,6 @@
28#include <asm/mach-types.h> 29#include <asm/mach-types.h>
29#include <asm/mach/arch.h> 30#include <asm/mach/arch.h>
30#include <asm/mach/map.h> 31#include <asm/mach/map.h>
31#include <asm/mach/flash.h>
32 32
33#include <mach/gpio.h> 33#include <mach/gpio.h>
34#include <plat/mux.h> 34#include <plat/mux.h>
@@ -38,7 +38,7 @@
38#include <plat/usb.h> 38#include <plat/usb.h>
39#include <plat/gpmc-smc91x.h> 39#include <plat/gpmc-smc91x.h>
40 40
41#include "mmc-twl4030.h" 41#include "hsmmc.h"
42 42
43#define SDP2430_CS0_BASE 0x04000000 43#define SDP2430_CS0_BASE 0x04000000
44#define SECONDARY_LCD_GPIO 147 44#define SECONDARY_LCD_GPIO 147
@@ -74,8 +74,7 @@ static struct mtd_partition sdp2430_partitions[] = {
74 } 74 }
75}; 75};
76 76
77static struct flash_platform_data sdp2430_flash_data = { 77static struct physmap_flash_data sdp2430_flash_data = {
78 .map_name = "cfi_probe",
79 .width = 2, 78 .width = 2,
80 .parts = sdp2430_partitions, 79 .parts = sdp2430_partitions,
81 .nr_parts = ARRAY_SIZE(sdp2430_partitions), 80 .nr_parts = ARRAY_SIZE(sdp2430_partitions),
@@ -88,7 +87,7 @@ static struct resource sdp2430_flash_resource = {
88}; 87};
89 88
90static struct platform_device sdp2430_flash_device = { 89static struct platform_device sdp2430_flash_device = {
91 .name = "omapflash", 90 .name = "physmap-flash",
92 .id = 0, 91 .id = 0,
93 .dev = { 92 .dev = {
94 .platform_data = &sdp2430_flash_data, 93 .platform_data = &sdp2430_flash_data,
@@ -183,7 +182,7 @@ static int __init omap2430_i2c_init(void)
183 return 0; 182 return 0;
184} 183}
185 184
186static struct twl4030_hsmmc_info mmc[] __initdata = { 185static struct omap2_hsmmc_info mmc[] __initdata = {
187 { 186 {
188 .mmc = 1, 187 .mmc = 1,
189 .wires = 4, 188 .wires = 4,
@@ -194,6 +193,12 @@ static struct twl4030_hsmmc_info mmc[] __initdata = {
194 {} /* Terminator */ 193 {} /* Terminator */
195}; 194};
196 195
196static struct omap_musb_board_data musb_board_data = {
197 .interface_type = MUSB_INTERFACE_ULPI,
198 .mode = MUSB_OTG,
199 .power = 100,
200};
201
197static void __init omap_2430sdp_init(void) 202static void __init omap_2430sdp_init(void)
198{ 203{
199 int ret; 204 int ret;
@@ -202,8 +207,8 @@ static void __init omap_2430sdp_init(void)
202 207
203 platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices)); 208 platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices));
204 omap_serial_init(); 209 omap_serial_init();
205 twl4030_mmc_init(mmc); 210 omap2_hsmmc_init(mmc);
206 usb_musb_init(); 211 usb_musb_init(&musb_board_data);
207 board_smc91x_init(); 212 board_smc91x_init();
208 213
209 /* Turn off secondary LCD backlight */ 214 /* Turn off secondary LCD backlight */
@@ -215,7 +220,7 @@ static void __init omap_2430sdp_init(void)
215static void __init omap_2430sdp_map_io(void) 220static void __init omap_2430sdp_map_io(void)
216{ 221{
217 omap2_set_globals_243x(); 222 omap2_set_globals_243x();
218 omap2_map_common_io(); 223 omap243x_map_common_io();
219} 224}
220 225
221MACHINE_START(OMAP_2430SDP, "OMAP2430 sdp2430 board") 226MACHINE_START(OMAP_2430SDP, "OMAP2430 sdp2430 board")