summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-03-02 11:13:51 +0800
committerguoyin.chen <guoyin.chen@freescale.com>2016-03-04 15:53:41 +0800
commit952524c736c5831ee7faa8351b6ed4f6f44b73ba (patch)
tree76cb95422ff9f49af87dd1123c9f069cb4dc422d /drivers/i2c
parentcdab22ac02ba4a2f9d2df4518695a5322b97c569 (diff)
downloadu-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/i2c')
-rw-r--r--drivers/i2c/mxc_i2c.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c
index 7bc6d07..b77caac 100644
--- a/drivers/i2c/mxc_i2c.c
+++ b/drivers/i2c/mxc_i2c.c
@@ -21,6 +21,7 @@
#include <asm/io.h>
#include <i2c.h>
#include <watchdog.h>
+#include <asm/arch/sys_proto.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -525,6 +526,15 @@ void bus_i2c_init(void *base, int speed, int unused,
struct i2c_parms *p = srdata->i2c_data;
if (!base)
return;
+
+#ifdef CONFIG_MX6
+ if (mx6_i2c_fused((u32)base)) {
+ printf("I2C@0x%x is fused, disable it\n",
+ (u32)base);
+ return;
+ }
+#endif
+
for (;;) {
if (!p->base || (p->base == base)) {
p->base = base;