SAM4E: Revise board-specific USB MSC support

This commit is contained in:
Gregory Nutt
2014-03-18 09:31:02 -06:00
parent 1ec72470e3
commit 6b65388023
4 changed files with 219 additions and 67 deletions
+16 -1
View File
@@ -20,7 +20,7 @@ endchoice # CPU Frequency
config SAM4EEK_AT25_AUTOMOUNT
bool "AT25 serial FLASH auto-mount"
default n
depends on NSH_ARCHINIT && SAM34_SPI0 && MTD_AT25
depends on SAM34_SPI0 && MTD_AT25
---help---
Automatically initialize the AT25 SPI FLASH driver when NSH starts.
@@ -47,4 +47,19 @@ config SAM4EEK_AT25_NXFFS
endchoice # AT25 serial FLASH configuration
choice
prompt "USB MSC block device"
default SAM4EEK_AT25_BLOCKDEVICE if SAM4EEK_AT25_FTL
default SAM4EEK_HSMCI_BLOCKDEVICE if !SAM4EEK_AT25_FTL
depends on SYSTEM_USBMSC && (SAM4EEK_AT25_FTL || SAM34_HSMCI)
config SAM4EEK_AT25_BLOCKDEVICE
bool "AT25 Serial FLASH"
config SAM4EEK_HSMCI_BLOCKDEVICE
bool "SD card"
depends on SAM34_HSMCI
endchoice # AT25 serial FLASH configuration
endif # ARCH_BOARD_SAM4EEK