aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/board-h3.c
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.lima@indt.org.br>2007-11-26 23:01:45 -0500
committerTony Lindgren <tony@atomide.com>2008-02-08 13:38:01 -0500
commit138ab9f8321f67c71984ca43222efa71b0a0a0a9 (patch)
tree57e8bcabfb647fd2ecad10d3641ef2041857ff09 /arch/arm/mach-omap1/board-h3.c
parent6e2d4107245cc0411959e91d7a1613e15097f117 (diff)
ARM: OMAP1: Make omap1 use MMC multislot structures
Make omap1 use new MMC multislot structures. The related MMC patches will be sent separately. Signed-off-by: Felipe Balbi <felipe.lima@indt.org.br> Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br> Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br> Signed-off-by: David Cohen <david.cohen@indt.org.br> Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/board-h3.c')
-rw-r--r--arch/arm/mach-omap1/board-h3.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c
index 67ae5035a7ef..f28f05d6760d 100644
--- a/arch/arm/mach-omap1/board-h3.c
+++ b/arch/arm/mach-omap1/board-h3.c
@@ -437,12 +437,13 @@ static struct omap_usb_config h3_usb_config __initdata = {
437 437
438static struct omap_mmc_config h3_mmc_config __initdata = { 438static struct omap_mmc_config h3_mmc_config __initdata = {
439 .mmc[0] = { 439 .mmc[0] = {
440 .enabled = 1, 440 .enabled = 1,
441 .power_pin = -1, /* tps65010 GPIO4 */ 441 .wire4 = 1,
442 .switch_pin = OMAP_MPUIO(1), 442 },
443 },
444}; 443};
445 444
445extern struct omap_mmc_platform_data h3_mmc_data;
446
446static struct omap_uart_config h3_uart_config __initdata = { 447static struct omap_uart_config h3_uart_config __initdata = {
447 .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), 448 .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)),
448}; 449};
@@ -471,6 +472,18 @@ static struct i2c_board_info __initdata h3_i2c_board_info[] = {
471 */ 472 */
472}; 473};
473 474
475static struct omap_gpio_switch h3_gpio_switches[] __initdata = {
476 {
477 .name = "mmc_slot",
478 .gpio = OMAP_MPUIO(1),
479 .type = OMAP_GPIO_SWITCH_TYPE_COVER,
480 .debounce_rising = 100,
481 .debounce_falling = 0,
482 .notify = h3_mmc_slot_cover_handler,
483 .notify_data = NULL,
484 },
485};
486
474#define H3_NAND_RB_GPIO_PIN 10 487#define H3_NAND_RB_GPIO_PIN 10
475 488
476static int nand_dev_ready(struct omap_nand_platform_data *data) 489static int nand_dev_ready(struct omap_nand_platform_data *data)
@@ -504,6 +517,7 @@ static void __init h3_init(void)
504 omap_board_config = h3_config; 517 omap_board_config = h3_config;
505 omap_board_config_size = ARRAY_SIZE(h3_config); 518 omap_board_config_size = ARRAY_SIZE(h3_config);
506 omap_serial_init(); 519 omap_serial_init();
520 h3_mmc_init();
507 521
508 /* FIXME setup irq for tps65013 chip */ 522 /* FIXME setup irq for tps65013 chip */
509 i2c_register_board_info(1, h3_i2c_board_info, 523 i2c_register_board_info(1, h3_i2c_board_info,