diff options
author | Ye Li <ye.li@nxp.com> | 2016-03-02 11:13:51 +0800 |
---|---|---|
committer | guoyin.chen <guoyin.chen@freescale.com> | 2016-03-04 15:53:41 +0800 |
commit | 952524c736c5831ee7faa8351b6ed4f6f44b73ba (patch) | |
tree | 76cb95422ff9f49af87dd1123c9f069cb4dc422d /drivers/mmc | |
parent | cdab22ac02ba4a2f9d2df4518695a5322b97c569 (diff) | |
download | u-boot-imx-952524c736c5831ee7faa8351b6ed4f6f44b73ba.zip u-boot-imx-952524c736c5831ee7faa8351b6ed4f6f44b73ba.tar.gz u-boot-imx-952524c736c5831ee7faa8351b6ed4f6f44b73ba.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>
(cherry picked from commit 61789a160ae023ba6f7d37da74be957d22505736)
Diffstat (limited to 'drivers/mmc')
-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); |