]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8/fsl-layerscape: Update erratum A009635 implementation
authorPriyanka Jain <priyanka.jain@nxp.com>
Tue, 14 Feb 2017 05:04:31 +0000 (10:34 +0530)
committerYork Sun <york.sun@nxp.com>
Tue, 28 Mar 2017 16:07:06 +0000 (09:07 -0700)
Erratum A009635 is valid only for LS2080A SoC and its
personality. Add SoC svr check.

Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/cpu.c

index 7e66ee08b56d70573505f1f9e6e72437cc66017b..78e250c1cc991118e21690c0f7eb8440310f4c66 100644 (file)
@@ -436,7 +436,14 @@ int arch_early_init_r(void)
 #endif
 
 #ifdef CONFIG_SYS_FSL_ERRATUM_A009635
-       erratum_a009635();
+       u32 svr_dev_id;
+       /*
+        * erratum A009635 is valid only for LS2080A SoC and
+        * its personalitiesi
+        */
+       svr_dev_id = get_svr() >> 16;
+       if (svr_dev_id == SVR_DEV_LS2080A)
+               erratum_a009635();
 #endif
 #if defined(CONFIG_SYS_FSL_ERRATUM_A009942) && defined(CONFIG_SYS_FSL_DDR)
        erratum_a009942_check_cpo();