ARM: at91: add atmel-mci support for chips and boards which can use it
Since atmel-mci driver supports all atmel mci versions, use it instead of the deprecated at91_mci driver. Platform data and all related configuration are removed. Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> [nicolas.ferre@atmel.com: remove at91_mci platform data] Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
This commit is contained in:

committed by
Nicolas Ferre

parent
24f5c4b6e6
commit
4cf3326ab5
@@ -74,12 +74,12 @@ static struct spi_board_info flexibity_spi_devices[] = {
|
||||
};
|
||||
|
||||
/* MCI (SD/MMC) */
|
||||
static struct at91_mmc_data __initdata flexibity_mmc_data = {
|
||||
.slot_b = 0,
|
||||
.wire4 = 1,
|
||||
.det_pin = AT91_PIN_PC9,
|
||||
.wp_pin = AT91_PIN_PC4,
|
||||
.vcc_pin = -EINVAL,
|
||||
static struct mci_platform_data __initdata flexibity_mci0_data = {
|
||||
.slot[0] = {
|
||||
.bus_width = 4,
|
||||
.detect_pin = AT91_PIN_PC9,
|
||||
.wp_pin = AT91_PIN_PC4,
|
||||
},
|
||||
};
|
||||
|
||||
/* LEDs */
|
||||
@@ -151,7 +151,7 @@ static void __init flexibity_board_init(void)
|
||||
at91_add_device_spi(flexibity_spi_devices,
|
||||
ARRAY_SIZE(flexibity_spi_devices));
|
||||
/* MMC */
|
||||
at91_add_device_mmc(0, &flexibity_mmc_data);
|
||||
at91_add_device_mci(0, &flexibity_mci0_data);
|
||||
/* LEDs */
|
||||
at91_gpio_leds(flexibity_leds, ARRAY_SIZE(flexibity_leds));
|
||||
}
|
||||
|
Reference in New Issue
Block a user