summaryrefslogtreecommitdiff
path: root/drivers/mmc/fsl_esdhc.c
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-03-16 13:50:54 +0800
committerYe Li <ye.li@nxp.com>2016-03-25 16:28:20 +0800
commit1704e116f9b39aeb99201919a18bc2b1e19a980e (patch)
tree09a871f7d14c6ab3d6b5e73dbf0dc2f63180ab55 /drivers/mmc/fsl_esdhc.c
parent7236051526b73a5a25cc8330a79f5c08b7d70726 (diff)
downloadu-boot-imx-1704e116f9b39aeb99201919a18bc2b1e19a980e.zip
u-boot-imx-1704e116f9b39aeb99201919a18bc2b1e19a980e.tar.gz
u-boot-imx-1704e116f9b39aeb99201919a18bc2b1e19a980e.tar.bz2
MLK-12483-4 mx6: Modify drivers to disable fused modules
Add the fuse checking in drivers, when the module is disabled in fuse, the driver will not work. Changed drivers: BEE, GPMI, APBH-DMA, ESDHC, FEC, QSPI, ECSPI, I2C, USB-EHCI, GIS, LCDIF. Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'drivers/mmc/fsl_esdhc.c')
-rw-r--r--drivers/mmc/fsl_esdhc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index b2f0dac..d41a8a7 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -20,6 +20,7 @@
#include <fsl_esdhc.h>
#include <fdt_support.h>
#include <asm/io.h>
+#include <asm/arch/sys_proto.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -694,6 +695,13 @@ int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg)
regs = (struct fsl_esdhc *)cfg->esdhc_base;
+#ifdef CONFIG_MX6
+ if (mx6_esdhc_fused(cfg->esdhc_base)) {
+ printf("ESDHC@0x%x is fused, disable it\n", cfg->esdhc_base);
+ return -2;
+ }
+#endif
+
/* First reset the eSDHC controller */
esdhc_reset(regs);