armv8: fsl-layerscape: Respect Kconfig for erratum A009007
authorSean Anderson <sean.anderson@seco.com>
Tue, 22 Feb 2022 18:38:39 +0000 (13:38 -0500)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 25 Apr 2022 07:20:39 +0000 (12:50 +0530)
There is a Kconfig for this erratum, but it is ignored for armv8.
Respect it.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/soc.c

index d3a5cfa..926f8f2 100644 (file)
@@ -206,6 +206,9 @@ static void erratum_a008997(void)
 
 static void erratum_a009007(void)
 {
+       if (!IS_ENABLED(CONFIG_SYS_FSL_ERRATUM_A009007))
+               return;
+
 #if defined(CONFIG_ARCH_LS1043A) || defined(CONFIG_ARCH_LS1046A) || \
        defined(CONFIG_ARCH_LS1012A)
        void __iomem *usb_phy = (void __iomem *)SCFG_USB_PHY1;