[PATCH v1 3/3] arm: npcm8xx: support dcache off

Tom Rini trini at konsulko.com
Tue Sep 26 15:48:07 CEST 2023


On Tue, Sep 26, 2023 at 04:56:50PM +0800, Jim Liu wrote:

> do not enable dcache by setting CONFIG_SYS_NPCM_DCACHE_OFF=y
> 
> Signed-off-by: Jim Liu <JJLIU0 at nuvoton.com>
> ---
>  arch/arm/mach-npcm/npcm8xx/Kconfig |  4 ++++
>  arch/arm/mach-npcm/npcm8xx/cpu.c   | 12 +++++++++++-
>  2 files changed, 15 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-npcm/npcm8xx/Kconfig b/arch/arm/mach-npcm/npcm8xx/Kconfig
> index 5f4a0506dc..163e7e7d48 100644
> --- a/arch/arm/mach-npcm/npcm8xx/Kconfig
> +++ b/arch/arm/mach-npcm/npcm8xx/Kconfig
> @@ -6,6 +6,10 @@ config SYS_CPU
>  config SYS_SOC
>  	default "npcm8xx"
>  
> +config SYS_NPCM_DCACHE_OFF
> +	bool "Do not enable dcache"
> +	default n
> +
>  config TARGET_ARBEL_EVB
>  	bool "Arbel Evaluation Board"
>  	help

Why do we need a new Kconfig option here on top of the existing generic
ones to control cache?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230926/5c0692c6/attachment.sig>


More information about the U-Boot mailing list