Skip to contentSkip to conversation

mmc: Add Aspeed SD controller driver

PATCH New Eddie James 1 participant 1 message Aug 27, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v4 2/4 mmc: Add Aspeed SD controller driver

Add support for the Aspeed SD host controller engine.

---
Changes since v3:
- Rebase on master

 arch/arm/include/asm/gpio.h |  3 +-
 drivers/mmc/Kconfig         | 11 ++++++
 drivers/mmc/Makefile        |  1 +
 drivers/mmc/aspeed_sdhci.c  | 90 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 104 insertions(+), 1 deletion(-)
 create mode 100644 drivers/mmc/aspeed_sdhci.c
arch/arm/include/asm/gpio.h +2 -1
index b946105..6ff5f42 100644
@@ -2,7 +2,8 @@
 	!defined(CONFIG_ARCH_K3) && !defined(CONFIG_ARCH_BCM6858) && \
 	!defined(CONFIG_ARCH_BCM63158) && !defined(CONFIG_ARCH_ROCKCHIP) && \
 	!defined(CONFIG_ARCH_LX2160A) && !defined(CONFIG_ARCH_LS1028A) && \
-	!defined(CONFIG_ARCH_LS2080A) && !defined(CONFIG_ARCH_LS1088A)
+	!defined(CONFIG_ARCH_LS2080A) && !defined(CONFIG_ARCH_LS1088A) && \
+	!defined(CONFIG_ARCH_ASPEED)
 #include <asm/arch/gpio.h>
 #endif
 #include <asm-generic/gpio.h>
drivers/mmc/Kconfig +11 -0
index 0ccb1ea..8fb2bfa 100644
@@ -421,6 +421,17 @@ config SPL_MMC_SDHCI_ADMA
 	  This enables support for the ADMA (Advanced DMA) defined
 	  in the SD Host Controller Standard Specification Version 3.00 in SPL.
 
+config MMC_SDHCI_ASPEED
+	bool "Aspeed SDHCI controller"
+	depends on ARCH_ASPEED
+	depends on DM_MMC
+	depends on MMC_SDHCI
+	help
+	  Enables support for the Aspeed SDHCI 2.0 controller present on Aspeed
+	  SoCs. This device is compatible with SD 3.0 and/or MMC 4.3
+	  specifications. On the AST2600, the device is also compatible with
+	  MMC 5.1 and eMMC 3.0.
+
 config MMC_SDHCI_ATMEL
 	bool "Atmel SDHCI controller support"
 	depends on ARCH_AT91
drivers/mmc/Makefile +1 -0
index 6cc018b..5594195 100644
@@ -46,6 +46,7 @@ obj-$(CONFIG_JZ47XX_MMC) += jz_mmc.o
 
 # SDHCI
 obj-$(CONFIG_MMC_SDHCI)			+= sdhci.o
+obj-$(CONFIG_MMC_SDHCI_ASPEED)		+= aspeed_sdhci.o
 obj-$(CONFIG_MMC_SDHCI_ATMEL)		+= atmel_sdhci.o
 obj-$(CONFIG_MMC_SDHCI_BCM2835)		+= bcm2835_sdhci.o
 obj-$(CONFIG_MMC_SDHCI_BCMSTB)		+= bcmstb_sdhci.o
drivers/mmc/aspeed_sdhci.c new file +90 -0

90 lines not on this page · raw message

Signature · 1 line
1.8.3.1