diff options
Diffstat (limited to 'arch/arm/mach-at91rm9200/board-dk.c')
-rw-r--r-- | arch/arm/mach-at91rm9200/board-dk.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-at91rm9200/board-dk.c b/arch/arm/mach-at91rm9200/board-dk.c index 8a783368366e..2d7200ed66ed 100644 --- a/arch/arm/mach-at91rm9200/board-dk.c +++ b/arch/arm/mach-at91rm9200/board-dk.c | |||
@@ -70,6 +70,9 @@ static void __init dk_map_io(void) | |||
70 | /* Initialize clocks: 18.432 MHz crystal */ | 70 | /* Initialize clocks: 18.432 MHz crystal */ |
71 | at91_clock_init(18432000); | 71 | at91_clock_init(18432000); |
72 | 72 | ||
73 | /* Setup the LEDs */ | ||
74 | at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); | ||
75 | |||
73 | #ifdef CONFIG_SERIAL_AT91 | 76 | #ifdef CONFIG_SERIAL_AT91 |
74 | at91_console_port = DK_SERIAL_CONSOLE; | 77 | at91_console_port = DK_SERIAL_CONSOLE; |
75 | memcpy(at91_serial_map, serial, sizeof(serial)); | 78 | memcpy(at91_serial_map, serial, sizeof(serial)); |
@@ -118,9 +121,14 @@ static void __init dk_board_init(void) | |||
118 | at91_add_device_udc(&dk_udc_data); | 121 | at91_add_device_udc(&dk_udc_data); |
119 | /* Compact Flash */ | 122 | /* Compact Flash */ |
120 | at91_add_device_cf(&dk_cf_data); | 123 | at91_add_device_cf(&dk_cf_data); |
124 | #ifdef CONFIG_MTD_AT91_DATAFLASH_CARD | ||
125 | /* DataFlash card */ | ||
126 | at91_set_gpio_output(AT91_PIN_PB7, 0); | ||
127 | #else | ||
121 | /* MMC */ | 128 | /* MMC */ |
122 | at91_set_gpio_output(AT91_PIN_PB7, 1); /* this MMC card slot can optionally use SPI signaling (CS3). default: MMC */ | 129 | at91_set_gpio_output(AT91_PIN_PB7, 1); /* this MMC card slot can optionally use SPI signaling (CS3). */ |
123 | at91_add_device_mmc(&dk_mmc_data); | 130 | at91_add_device_mmc(&dk_mmc_data); |
131 | #endif | ||
124 | /* VGA */ | 132 | /* VGA */ |
125 | // dk_add_device_video(); | 133 | // dk_add_device_video(); |
126 | } | 134 | } |