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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user