summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@freescale.com>2015-04-22 13:57:00 +0800
committerYork Sun <yorksun@freescale.com>2015-05-04 09:25:19 -0700
commit5a8dbdc6b4b8b4b17c807c9bb23807cdc66f6feb (patch)
tree13de7d43ebb84d211debe354937bcf1b8701c2f8 /include
parentfd3a78a538b2591a420f173faea442ae969ff623 (diff)
mmc: fsl_esdhc: Add adapter card type identification support
Add adapter card type identification support by reading FPGA STAT_PRES1 register SDHC Card ID[0:2] bits. To use this function, define CONFIG_FSL_ESDHC_ADAPTER_IDENT. Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com> Cc: York Sun <yorksun@freescale.com> Cc: Pantelis Antoniou <panto@antoniou-consulting.com> [York Sun: resolve conflicts in README.fsl-esdhc] Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/fsl_esdhc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h
index 41bf05be4c..bec8a0e4cc 100644
--- a/include/fsl_esdhc.h
+++ b/include/fsl_esdhc.h
@@ -16,6 +16,10 @@
/* needed for the mmc_cfg definition */
#include <mmc.h>
+#ifdef CONFIG_FSL_ESDHC_ADAPTER_IDENT
+#include "../board/freescale/common/qixis.h"
+#endif
+
/* FSL eSDHC-specific constants */
#define SYSCTL 0x0002e02c
#define SYSCTL_INITA 0x08000000