From 907568e895eaef745664a81b8e45e05b72cc90b5 Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Thu, 25 Feb 2021 17:22:27 +0800 Subject: ppc: mpc85xx: Wrap LAW related codes with CONFIG_FSL_LAW LAW related codes should be wrapped with CONFIG_FSL_LAW. Signed-off-by: Bin Meng Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/cpu_init_early.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/powerpc/cpu/mpc85xx/cpu_init_early.c') diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c index 4195ecc5c9..5a0d33b1b3 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c +++ b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c @@ -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 -- cgit v1.2.3