summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/mmc_private.h
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 /drivers/mmc/mmc_private.h
parentfd3a78a538b2591a420f173faea442ae969ff623 (diff)
downloadtalos-obmc-uboot-5a8dbdc6b4b8b4b17c807c9bb23807cdc66f6feb.tar.gz
talos-obmc-uboot-5a8dbdc6b4b8b4b17c807c9bb23807cdc66f6feb.zip
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 'drivers/mmc/mmc_private.h')
-rw-r--r--drivers/mmc/mmc_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/mmc_private.h b/drivers/mmc/mmc_private.h
index 16dcf9ff61..447a7001db 100644
--- a/drivers/mmc/mmc_private.h
+++ b/drivers/mmc/mmc_private.h
@@ -16,6 +16,9 @@ extern int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
struct mmc_data *data);
extern int mmc_send_status(struct mmc *mmc, int timeout);
extern int mmc_set_blocklen(struct mmc *mmc, int len);
+#ifdef CONFIG_FSL_ESDHC_ADAPTER_IDENT
+void mmc_adapter_card_type_ident(void);
+#endif
#ifndef CONFIG_SPL_BUILD
OpenPOWER on IntegriCloud