diff options
author | Ye Li <ye.li@nxp.com> | 2016-03-02 11:13:51 +0800 |
---|---|---|
committer | fang hui <hui.fang@nxp.com> | 2016-11-09 08:25:50 +0800 |
commit | 4cd9b28581fe2fcf428b3336fe0d8701038bfc12 (patch) | |
tree | 83c28ea1640bcbd30c08e4055bfb72a33940ed21 /drivers/mmc/fsl_esdhc.c | |
parent | 5f2532758a3f07939dd44e7775226a8056533187 (diff) | |
download | u-boot-imx-4cd9b28581fe2fcf428b3336fe0d8701038bfc12.zip u-boot-imx-4cd9b28581fe2fcf428b3336fe0d8701038bfc12.tar.gz u-boot-imx-4cd9b28581fe2fcf428b3336fe0d8701038bfc12.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.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index e1fbb33..07fbc46 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; @@ -612,6 +613,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); |