MMC: P2020 SDHC: Add support for 8-bit bus width connection. Kernel version 3.4.47
PATCH 1/3 MMC: P2020 SDHC: Add support for 8-bit bus width connection. Kernel version 3.4.47
This patch adds support of connecting an MMC media using an 8-bit bus width connection to Freescale's P2020 H/W SDHC controller. During the probe function, it detects if the processor is P2020 (by looking at device tree) and if so, it adds the MMC_CAP_8_BIT_DATA to the MMC caps
Signed-off-by Oded Gabbay <[email protected]>
--- drivers/mmc/host/sdhci-esdhc.h | 7 ++++++ drivers/mmc/host/sdhci-of-esdhc.c | 49 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 55 insertions(+), 1 deletion(-)
drivers/mmc/host/sdhci-esdhc.h +7 -0
@@ -36,6 +36,13 @@/* pltfm-specific */ #define ESDHC_HOST_CONTROL_LE 0x20 +/* +* P2020 interpretation of the SDHCI_HOST_CONTROL register +*/ +#define ESDHC_CTRL_4BITBUS (0x1 << 1) +#define ESDHC_CTRL_8BITBUS (0x2 << 1) +#define ESDHC_CTRL_BUSWIDTH_MASK (0x3 << 1) +/* OF-specific */ #define ESDHC_DMA_SYSCTL 0x40c#define ESDHC_DMA_SNOOP 0x00000040
drivers/mmc/host/sdhci-of-esdhc.c +48 -1
73 lines not on this page · raw message
Signature · 1 line
1.7.11.7