]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ppc: mpc85xx: Wrap LAW related codes with CONFIG_FSL_LAW
authorBin Meng <bmeng.cn@gmail.com>
Thu, 25 Feb 2021 09:22:27 +0000 (17:22 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 5 Mar 2021 04:55:42 +0000 (10:25 +0530)
LAW related codes should be wrapped with CONFIG_FSL_LAW.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/powerpc/cpu/mpc85xx/cpu.c
arch/powerpc/cpu/mpc85xx/cpu_init_early.c

index 5170610f04137c83a36536d0078ac04f4b6333c3..fc25bb28ad12a63d924f891bcaad98f99e9d8528 100644 (file)
@@ -395,7 +395,9 @@ int cpu_mmc_init(struct bd_info *bis)
 void print_reginfo(void)
 {
        print_tlbcam();
+#ifdef CONFIG_FSL_LAW
        print_laws();
+#endif
 #if defined(CONFIG_FSL_LBC)
        print_lbc_regs();
 #endif
index 4195ecc5c98f1d4cf3f185ca6ea3f63254783ae9..5a0d33b1b3dd7b0d29c2d6494cc7bc2a5c898f41 100644 (file)
@@ -123,7 +123,9 @@ void cpu_init_early_f(void *fdt)
        setbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_LCLK_IFC_CS3);
 #endif
 
+#ifdef CONFIG_FSL_LAW
        init_laws();
+#endif
 
 /*
  * Work Around for IFC Erratum A003399, issue will hit only when execution