Message ID | 1614244979-48216-7-git-send-email-bmeng.cn@gmail.com |
---|---|
State | Accepted |
Commit | 907568e895eaef745664a81b8e45e05b72cc90b5 |
Delegated to: | Priyanka Jain |
Headers | show |
Series | ppc: qemu: Convert qemu-ppce500 to driver model and enable additional driver support | expand |
>-----Original Message----- >From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Bin Meng >Sent: Thursday, February 25, 2021 2:52 PM >To: Simon Glass <sjg@chromium.org>; Alexander Graf <agraf@csgraf.de>; >Priyanka Jain <priyanka.jain@nxp.com> >Cc: U-Boot Mailing List <u-boot@lists.denx.de>; Tom Rini ><trini@konsulko.com> >Subject: [PATCH v3 06/38] 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 <bmeng.cn@gmail.com> >Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com> >--- > >(no changes since v1) > > arch/powerpc/cpu/mpc85xx/cpu.c | 2 ++ > arch/powerpc/cpu/mpc85xx/cpu_init_early.c | 2 ++ > 2 files changed, 4 insertions(+) > >diff --git a/arch/powerpc/cpu/mpc85xx/cpu.c >b/arch/powerpc/cpu/mpc85xx/cpu.c index 5170610..fc25bb2 100644 >--- a/arch/powerpc/cpu/mpc85xx/cpu.c >+++ b/arch/powerpc/cpu/mpc85xx/cpu.c >@@ -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 >diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c >b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c >index 4195ecc..5a0d33b 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 >-- >2.7.4 Fix below checkpatch warning if possible ARNING: Use 'if (IS_ENABLED(CONFIG...))' instead of '#if or #ifdef' where possible #24: FILE: arch/powerpc/cpu/mpc85xx/cpu.c:398: +#ifdef CONFIG_FSL_LAW WARNING: Use 'if (IS_ENABLED(CONFIG...))' instead of '#if or #ifdef' where possible #38: FILE: arch/powerpc/cpu/mpc85xx/cpu_init_early.c:126: +#ifdef CONFIG_FSL_LAW total: 0 errors, 2 warnings, 0 checks, 18 lines checked Regards Priyanka
diff --git a/arch/powerpc/cpu/mpc85xx/cpu.c b/arch/powerpc/cpu/mpc85xx/cpu.c index 5170610..fc25bb2 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu.c +++ b/arch/powerpc/cpu/mpc85xx/cpu.c @@ -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 diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c index 4195ecc..5a0d33b 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