Re: [PATCH] Finish converting CONFIG_SYS_CACHELINE_SIZE to Kconfig

From: Tom Rini trini@konsulko.com Sent: Thursday, August 26, 2021 11:48 PM To: u-boot@lists.denx.de Cc: Alexey Brodkin alexey.brodkin@synopsys.com; Anup Patel anup.patel@wdc.com; Atish Patra atish.patra@wdc.com; Bin Meng bmeng.cn@gmail.com; Daniel Schwierzeck daniel.schwierzeck@gmail.com; Leo Yu-Chi Liang(梁育齊) ycliang@andestech.com; Palmer Dabbelt palmer@dabbelt.com; Paul Walmsley paul.walmsley@sifive.com; Rick Jian-Zhi Chen(陳建志) rick@andestech.com; Sean Anderson seanga2@gmail.com; Simon Glass sjg@chromium.org Subject: [PATCH] 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: Daniel Schwierzeck daniel.schwierzeck@gmail.com Cc: Leo ycliang@andestech.com Cc: Palmer Dabbelt palmer@dabbelt.com Cc: Paul Walmsley paul.walmsley@sifive.com Cc: Rick Chen rick@andestech.com Cc: Sean Anderson seanga2@gmail.com Cc: Simon Glass sjg@chromium.org Signed-off-by: Tom Rini trini@konsulko.com
I'm Cc'ing a bunch of RISC-V folks since that's where I'm least confident and just put it per-board for now.
arch/Kconfig | 25 +++++++++++++++++++++++++ arch/arc/include/asm/cache.h | 3 --- arch/arm/Kconfig | 15 --------------- arch/mips/Kconfig | 26 +++----------------------- arch/mips/include/asm/cache.h | 12 +----------- arch/mips/mach-bmips/Kconfig | 20 ++++++++++---------- arch/mips/mach-mtmips/Kconfig | 4 ++-- arch/mips/mach-pic32/Kconfig | 2 +- arch/powerpc/cpu/mpc83xx/Kconfig | 6 ++++++ arch/powerpc/cpu/mpc85xx/Kconfig | 15 +++++++++++++++ arch/powerpc/cpu/mpc8xx/Kconfig | 2 ++ arch/powerpc/include/asm/cache.h | 7 ------- arch/riscv/Kconfig | 2 ++
Reviewed-by: Rick Chen rick@andestech.com
participants (1)
-
Rick Chen