Finish converting CONFIG_SYS_CACHELINE_SIZE to Kconfig
authorTom Rini <trini@konsulko.com>
Thu, 26 Aug 2021 15:47:59 +0000 (11:47 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 31 Aug 2021 21:47:49 +0000 (17:47 -0400)
commitab92b38a0161f0d8efa1c2112d944ef8f755dfbe
treef4413fb22813b940ce12ca5079c67c7149ade8e3
parente4ddf14305b28e788e09a9b1b5b2b2474234eb91
Finish converting CONFIG_SYS_CACHELINE_SIZE to Kconfig

We move the SYS_CACHE_SHIFT_N options from arch/arm/Kconfig to
arch/Kconfig, and introduce SYS_CACHE_SHIFT_4 to provide a size of 16.
Introduce select statements for other architectures based on current
usage.  For MIPS, we take the existing arch-specific symbol and migrate
to the generic symbol.  This lets us remove a little bit of otherwise
unused code.

Cc: Alexey Brodkin <alexey.brodkin@synopsys.com>
Cc: Anup Patel <anup.patel@wdc.com>
Cc: Atish Patra <atish.patra@wdc.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Leo <ycliang@andestech.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Sean Anderson <seanga2@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
35 files changed:
arch/Kconfig
arch/arc/include/asm/cache.h
arch/arm/Kconfig
arch/mips/Kconfig
arch/mips/include/asm/cache.h
arch/mips/mach-bmips/Kconfig
arch/mips/mach-mtmips/Kconfig
arch/mips/mach-pic32/Kconfig
arch/powerpc/cpu/mpc83xx/Kconfig
arch/powerpc/cpu/mpc85xx/Kconfig
arch/powerpc/cpu/mpc8xx/Kconfig
arch/powerpc/include/asm/cache.h
arch/riscv/Kconfig
arch/sandbox/include/asm/cache.h
arch/x86/include/asm/cache.h
include/configs/M5208EVBE.h
include/configs/M5235EVB.h
include/configs/M5249EVB.h
include/configs/M5253DEMO.h
include/configs/M5272C3.h
include/configs/M5275EVB.h
include/configs/M5282EVB.h
include/configs/M53017EVB.h
include/configs/M5329EVB.h
include/configs/M5373EVB.h
include/configs/amcore.h
include/configs/astro_mcf5373l.h
include/configs/cobra5272.h
include/configs/eb_cpu5282.h
include/configs/mx7ulp_evk.h
include/configs/rk3188_common.h
include/configs/rk3368_common.h
include/configs/sifive-unmatched.h
include/configs/sipeed-maix.h
include/configs/stmark2.h