fsl_i2c: add workaround for the erratum I2C A004447
[oweals/u-boot.git] / arch / powerpc / cpu / mpc85xx / cmd_errata.c
index cbb443fd2c50b428d1fc5360757d38ca47e1a243..05436f9947200cfee0cac078358a1215fb4ff467 100644 (file)
@@ -247,6 +247,11 @@ static int do_errata(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 #endif
 #ifdef CONFIG_SYS_FSL_ERRATUM_A005812
        puts("Work-around for Erratum A-005812 enabled\n");
+#endif
+#ifdef CONFIG_SYS_FSL_ERRATUM_I2C_A004447
+       if ((SVR_SOC_VER(svr) == SVR_8548 && IS_SVR_REV(svr, 3, 1)) ||
+           (SVR_REV(svr) <= CONFIG_SYS_FSL_A004447_SVR_REV))
+               puts("Work-around for Erratum I2C-A004447 enabled\n");
 #endif
        return 0;
 }