mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
[ARM] 3395/2: AT91RM9200 Dataflash Card vs MMC selection
Patch from Andrew Victor On the Atmel AT91RM9200-DK and -EK boards, a pin is used to control whether the card socket is used for a DataFlash Card or an MMC/SD card. We now default to MMC/SD in the configuration files. (This version of the patch can be applied before Patch 3392/1) Signed-off-by: Andrew Victor <andrew@sanpeople.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
cc2832a131
commit
486bcc59f3
4 changed files with 14 additions and 4 deletions
|
@ -379,7 +379,7 @@ CONFIG_MTD_PHYSMAP_BANKWIDTH=2
|
||||||
# CONFIG_MTD_DOC2001 is not set
|
# CONFIG_MTD_DOC2001 is not set
|
||||||
# CONFIG_MTD_DOC2001PLUS is not set
|
# CONFIG_MTD_DOC2001PLUS is not set
|
||||||
CONFIG_MTD_AT91_DATAFLASH=y
|
CONFIG_MTD_AT91_DATAFLASH=y
|
||||||
CONFIG_MTD_AT91_DATAFLASH_CARD=y
|
# CONFIG_MTD_AT91_DATAFLASH_CARD is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# NAND Flash Device Drivers
|
# NAND Flash Device Drivers
|
||||||
|
|
|
@ -370,7 +370,7 @@ CONFIG_MTD_PHYSMAP_BANKWIDTH=2
|
||||||
# CONFIG_MTD_DOC2001 is not set
|
# CONFIG_MTD_DOC2001 is not set
|
||||||
# CONFIG_MTD_DOC2001PLUS is not set
|
# CONFIG_MTD_DOC2001PLUS is not set
|
||||||
CONFIG_MTD_AT91_DATAFLASH=y
|
CONFIG_MTD_AT91_DATAFLASH=y
|
||||||
CONFIG_MTD_AT91_DATAFLASH_CARD=y
|
# CONFIG_MTD_AT91_DATAFLASH_CARD is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# NAND Flash Device Drivers
|
# NAND Flash Device Drivers
|
||||||
|
|
|
@ -121,9 +121,14 @@ static void __init dk_board_init(void)
|
||||||
at91_add_device_udc(&dk_udc_data);
|
at91_add_device_udc(&dk_udc_data);
|
||||||
/* Compact Flash */
|
/* Compact Flash */
|
||||||
at91_add_device_cf(&dk_cf_data);
|
at91_add_device_cf(&dk_cf_data);
|
||||||
|
#ifdef CONFIG_MTD_AT91_DATAFLASH_CARD
|
||||||
|
/* DataFlash card */
|
||||||
|
at91_set_gpio_output(AT91_PIN_PB7, 0);
|
||||||
|
#else
|
||||||
/* MMC */
|
/* MMC */
|
||||||
at91_set_gpio_output(AT91_PIN_PB7, 1); /* this MMC card slot can optionally use SPI signaling (CS3). default: MMC */
|
at91_set_gpio_output(AT91_PIN_PB7, 1); /* this MMC card slot can optionally use SPI signaling (CS3). */
|
||||||
at91_add_device_mmc(&dk_mmc_data);
|
at91_add_device_mmc(&dk_mmc_data);
|
||||||
|
#endif
|
||||||
/* VGA */
|
/* VGA */
|
||||||
// dk_add_device_video();
|
// dk_add_device_video();
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,9 +114,14 @@ static void __init ek_board_init(void)
|
||||||
at91_add_device_usbh(&ek_usbh_data);
|
at91_add_device_usbh(&ek_usbh_data);
|
||||||
/* USB Device */
|
/* USB Device */
|
||||||
at91_add_device_udc(&ek_udc_data);
|
at91_add_device_udc(&ek_udc_data);
|
||||||
|
#ifdef CONFIG_MTD_AT91_DATAFLASH_CARD
|
||||||
|
/* DataFlash card */
|
||||||
|
at91_set_gpio_output(AT91_PIN_PB22, 0);
|
||||||
|
#else
|
||||||
/* MMC */
|
/* MMC */
|
||||||
at91_set_gpio_output(AT91_PIN_PB22, 1); /* this MMC card slot can optionally use SPI signaling (CS3). default: MMC */
|
at91_set_gpio_output(AT91_PIN_PB22, 1); /* this MMC card slot can optionally use SPI signaling (CS3). */
|
||||||
at91_add_device_mmc(&ek_mmc_data);
|
at91_add_device_mmc(&ek_mmc_data);
|
||||||
|
#endif
|
||||||
/* VGA */
|
/* VGA */
|
||||||
// ek_add_device_video();
|
// ek_add_device_video();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue