diff options
| author | Yangbo Lu <[email protected]> | 2015-04-22 13:57:00 +0800 |
|---|---|---|
| committer | York Sun <[email protected]> | 2015-05-04 09:25:19 -0700 |
| commit | 5a8dbdc6b4b8b4b17c807c9bb23807cdc66f6feb (patch) | |
| tree | 13de7d43ebb84d211debe354937bcf1b8701c2f8 /arch/powerpc/include | |
| parent | fd3a78a538b2591a420f173faea442ae969ff623 (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 <[email protected]>
Cc: York Sun <[email protected]>
Cc: Pantelis Antoniou <[email protected]>
[York Sun: resolve conflicts in README.fsl-esdhc]
Reviewed-by: York Sun <[email protected]>
Diffstat (limited to 'arch/powerpc/include')
| -rw-r--r-- | arch/powerpc/include/asm/global_data.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/global_data.h b/arch/powerpc/include/asm/global_data.h index c57d9c0fafb..4090975bf5e 100644 --- a/arch/powerpc/include/asm/global_data.h +++ b/arch/powerpc/include/asm/global_data.h @@ -15,6 +15,9 @@ struct arch_global_data { #if defined(CONFIG_FSL_ESDHC) u32 sdhc_clk; +#if defined(CONFIG_FSL_ESDHC_ADAPTER_IDENT) + u8 sdhc_adapter; +#endif #endif #if defined(CONFIG_8xx) unsigned long brg_clk; |
