[PATCH] Finish converting CONFIG_SYS_CACHELINE_SIZE to Kconfig

Rick Chen rickchen36 at gmail.com
Mon Aug 30 04:45:54 CEST 2021


> From: Tom Rini <trini at konsulko.com>
> Sent: Thursday, August 26, 2021 11:48 PM
> To: u-boot at lists.denx.de
> Cc: Alexey Brodkin <alexey.brodkin at synopsys.com>; Anup Patel <anup.patel at wdc.com>; Atish Patra <atish.patra at wdc.com>; Bin Meng <bmeng.cn at gmail.com>; Daniel Schwierzeck <daniel.schwierzeck at gmail.com>; Leo Yu-Chi Liang(梁育齊) <ycliang at andestech.com>; Palmer Dabbelt <palmer at dabbelt.com>; Paul Walmsley <paul.walmsley at sifive.com>; Rick Jian-Zhi Chen(陳建志) <rick at andestech.com>; Sean Anderson <seanga2 at gmail.com>; Simon Glass <sjg at 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 at synopsys.com>
> Cc: Anup Patel <anup.patel at wdc.com>
> Cc: Atish Patra <atish.patra at wdc.com>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Cc: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>
> Cc: Leo <ycliang at andestech.com>
> Cc: Palmer Dabbelt <palmer at dabbelt.com>
> Cc: Paul Walmsley <paul.walmsley at sifive.com>
> Cc: Rick Chen <rick at andestech.com>
> Cc: Sean Anderson <seanga2 at gmail.com>
> Cc: Simon Glass <sjg at chromium.org>
> Signed-off-by: Tom Rini <trini at 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 at andestech.com>


More information about the U-Boot mailing list