summaryrefslogtreecommitdiffstats
path: root/drivers/mci/Kconfig
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-04-15 11:29:16 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-04-27 21:17:24 +0200
commit075179763a91b6fea4a4309227d73c75d760c7bd (patch)
tree37cade8babcd47390ab02e83a2b6664dbf044d14 /drivers/mci/Kconfig
parent0f7e6152c65659b3394014f002f7fa890ea50ca7 (diff)
downloadbarebox-075179763a91b6fea4a4309227d73c75d760c7bd.tar.gz
barebox-075179763a91b6fea4a4309227d73c75d760c7bd.tar.xz
mci: sdhci: add Atmel SDHCI (sama5d2, sam9x60) support
We already support Ethernet and QSPI on the SAMA5D2, but MMC was so far missing. Port over the at91bootstrap driver to barebox. Some parts are based on the U-Boot and Linux implementations. To support future use in PBL, the driver model and driver implementation parts are split into separate files with the latter being compilable for PBL as well. Registers, which are found in the common Linux sdhci.h have been added to the barebox sdhci.h. Registers which appear to be Atmel specific have been added to atmel-sdhci-common.c instead. The driver still misses some parts, which will follow later: - ADMA is unsupported, PIO only for now - Only the SD/MMC controller already enabled by the first stage bootloader is supported. Further clocking changes appear to be necessary to enable another Both can be retrofitted later on and don't hold us back from booting from MMC. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/Kconfig')
-rw-r--r--drivers/mci/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mci/Kconfig b/drivers/mci/Kconfig
index 9f56bed3ab..d1a42e459d 100644
--- a/drivers/mci/Kconfig
+++ b/drivers/mci/Kconfig
@@ -124,6 +124,14 @@ config MCI_ATMEL
Enable this entry to add support to read and write SD cards on a
Atmel AT91.
+config MCI_ATMEL_SDHCI
+ bool "ATMEL SDHCI (sama5d2)"
+ select MCI_SDHCI
+ depends on ARCH_AT91
+ help
+ Enable this entry to add support to read and write SD cards on an
+ Atmel sama5d2
+
config MCI_MMCI
bool "ARM PL180 MMCI"
depends on ARM_AMBA