diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-ldp.c')
-rw-r--r-- | arch/arm/mach-omap2/board-ldp.c | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c index d57ec2f4d0a9..5fcb52e71298 100644 --- a/arch/arm/mach-omap2/board-ldp.c +++ b/arch/arm/mach-omap2/board-ldp.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <linux/spi/spi.h> | 24 | #include <linux/spi/spi.h> |
25 | #include <linux/spi/ads7846.h> | 25 | #include <linux/spi/ads7846.h> |
26 | #include <linux/regulator/machine.h> | 26 | #include <linux/regulator/machine.h> |
27 | #include <linux/i2c/twl4030.h> | 27 | #include <linux/i2c/twl.h> |
28 | #include <linux/io.h> | 28 | #include <linux/io.h> |
29 | #include <linux/smsc911x.h> | 29 | #include <linux/smsc911x.h> |
30 | 30 | ||
@@ -33,17 +33,18 @@ | |||
33 | #include <asm/mach/arch.h> | 33 | #include <asm/mach/arch.h> |
34 | #include <asm/mach/map.h> | 34 | #include <asm/mach/map.h> |
35 | 35 | ||
36 | #include <mach/mcspi.h> | 36 | #include <plat/mcspi.h> |
37 | #include <mach/gpio.h> | 37 | #include <mach/gpio.h> |
38 | #include <mach/board.h> | 38 | #include <plat/board.h> |
39 | #include <mach/common.h> | 39 | #include <plat/common.h> |
40 | #include <mach/gpmc.h> | 40 | #include <plat/gpmc.h> |
41 | 41 | ||
42 | #include <asm/delay.h> | 42 | #include <asm/delay.h> |
43 | #include <mach/control.h> | 43 | #include <plat/control.h> |
44 | #include <mach/usb.h> | 44 | #include <plat/usb.h> |
45 | 45 | ||
46 | #include "mmc-twl4030.h" | 46 | #include "mux.h" |
47 | #include "hsmmc.h" | ||
47 | 48 | ||
48 | #define LDP_SMSC911X_CS 1 | 49 | #define LDP_SMSC911X_CS 1 |
49 | #define LDP_SMSC911X_GPIO 152 | 50 | #define LDP_SMSC911X_GPIO 152 |
@@ -358,7 +359,7 @@ static int __init omap_i2c_init(void) | |||
358 | return 0; | 359 | return 0; |
359 | } | 360 | } |
360 | 361 | ||
361 | static struct twl4030_hsmmc_info mmc[] __initdata = { | 362 | static struct omap2_hsmmc_info mmc[] __initdata = { |
362 | { | 363 | { |
363 | .mmc = 1, | 364 | .mmc = 1, |
364 | .wires = 4, | 365 | .wires = 4, |
@@ -374,8 +375,23 @@ static struct platform_device *ldp_devices[] __initdata = { | |||
374 | &ldp_gpio_keys_device, | 375 | &ldp_gpio_keys_device, |
375 | }; | 376 | }; |
376 | 377 | ||
378 | #ifdef CONFIG_OMAP_MUX | ||
379 | static struct omap_board_mux board_mux[] __initdata = { | ||
380 | { .reg_offset = OMAP_MUX_TERMINATOR }, | ||
381 | }; | ||
382 | #else | ||
383 | #define board_mux NULL | ||
384 | #endif | ||
385 | |||
386 | static struct omap_musb_board_data musb_board_data = { | ||
387 | .interface_type = MUSB_INTERFACE_ULPI, | ||
388 | .mode = MUSB_OTG, | ||
389 | .power = 100, | ||
390 | }; | ||
391 | |||
377 | static void __init omap_ldp_init(void) | 392 | static void __init omap_ldp_init(void) |
378 | { | 393 | { |
394 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | ||
379 | omap_i2c_init(); | 395 | omap_i2c_init(); |
380 | platform_add_devices(ldp_devices, ARRAY_SIZE(ldp_devices)); | 396 | platform_add_devices(ldp_devices, ARRAY_SIZE(ldp_devices)); |
381 | ts_gpio = 54; | 397 | ts_gpio = 54; |
@@ -384,9 +400,9 @@ static void __init omap_ldp_init(void) | |||
384 | ARRAY_SIZE(ldp_spi_board_info)); | 400 | ARRAY_SIZE(ldp_spi_board_info)); |
385 | ads7846_dev_init(); | 401 | ads7846_dev_init(); |
386 | omap_serial_init(); | 402 | omap_serial_init(); |
387 | usb_musb_init(); | 403 | usb_musb_init(&musb_board_data); |
388 | 404 | ||
389 | twl4030_mmc_init(mmc); | 405 | omap2_hsmmc_init(mmc); |
390 | /* link regulators to MMC adapters */ | 406 | /* link regulators to MMC adapters */ |
391 | ldp_vmmc1_supply.dev = mmc[0].dev; | 407 | ldp_vmmc1_supply.dev = mmc[0].dev; |
392 | } | 408 | } |
@@ -394,12 +410,12 @@ static void __init omap_ldp_init(void) | |||
394 | static void __init omap_ldp_map_io(void) | 410 | static void __init omap_ldp_map_io(void) |
395 | { | 411 | { |
396 | omap2_set_globals_343x(); | 412 | omap2_set_globals_343x(); |
397 | omap2_map_common_io(); | 413 | omap34xx_map_common_io(); |
398 | } | 414 | } |
399 | 415 | ||
400 | MACHINE_START(OMAP_LDP, "OMAP LDP board") | 416 | MACHINE_START(OMAP_LDP, "OMAP LDP board") |
401 | .phys_io = 0x48000000, | 417 | .phys_io = 0x48000000, |
402 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, | 418 | .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc, |
403 | .boot_params = 0x80000100, | 419 | .boot_params = 0x80000100, |
404 | .map_io = omap_ldp_map_io, | 420 | .map_io = omap_ldp_map_io, |
405 | .init_irq = omap_ldp_init_irq, | 421 | .init_irq = omap_ldp_init_irq, |