armv7: cache: support L2 cache disable
PATCH 1/1 armv7: cache: support L2 cache disable
PL310 is the L2$ controller from ARM used in many SoCs. Before jumping to linux, UBoot will call v7_outer_cache_disable in cleanup_before_linux_select to disable L2$. This patch is to support cache disable of PL310.
arch/arm/lib/cache-pl310.c | 5 +++++
1 file changed, 5 insertions(+)
From d8c2e404521e22ae582dffc2738e2e6ea7c6fc81 Mon Sep 17 00:00:00 2001
From: Haifeng Li <[email protected]>
Date: Fri, 18 Mar 2022 17:08:55 +0800
Subject: [PATCH 1/1] armv7: cache: support L2 cache disable
PL310 is the L2$ controller from ARM used in many SoCs. Before jumping to linux, UBoot will call v7_outer_cache_disable in cleanup_before_linux_select to disable L2$. This patch is to support cache disable of PL310.
--- arch/arm/lib/cache-pl310.c | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/lib/cache-pl310.c +5 -0
@@ -13,6 +13,11 @@struct pl310_regs *const pl310 = (struct pl310_regs *)CONFIG_SYS_PL310_BASE ; +void v7_outer_cache_disable (void ) +{ +writel (0 , &pl310->pl310_ctrl); +} +static void pl310_cache_sync (void ) {writel (0 , &pl310->pl310_cache_sync);
Signature · 1 line
2.17.1
Quoted 9 lines · On Fri, Mar 18, 2022 at 06:16:45PM +0800, [email protected] wrote:
PL310 is the L2$ controller from ARM used in many SoCs. Before jumping to linux, UBoot will call
v7_outer_cache_disableincleanup_before_linux_selectto disable L2$. This patch is to support cache disable of PL310.Signed-off-by Haifeng Li <[email protected]>
arch/arm/lib/cache-pl310.c| 5 +++++1 file changed, 5 insertions(+)
Please re-send with the patch itself inline, thanks.
Signature · 1 line
Tom
PL310 is the L2$ controller from ARM used in many SoCs. Before jumping to linux, UBoot will call v7_outer_cache_disable in cleanup_before_linux_select to disable L2$. This patch is to support cache disable of PL310.
---
arch/arm/lib/cache-pl310.c | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/lib/cache-pl310.c +5 -0
@@ -13,6 +13,11 @@struct pl310_regs *const pl310 = (struct pl310_regs *)CONFIG_SYS_PL310_BASE ; +void v7_outer_cache_disable (void ) +{ +writel (0 , &pl310->pl310_ctrl); +} +static void pl310_cache_sync (void ) {writel (0 , &pl310->pl310_cache_sync);
Signature · 1 line
2.17.1
please ignore this thread. I re-sent the patch inline in another thread as Tom mentioned.
Thanks,
Haifeng
------------------------------------------------------------------
From:Haifeng Li <[email protected]> Sent At:2022 Mar. 18 (Fri.) 21:05
To:Tom Rini <[email protected]>
Cc:u-boot <[email protected]>
Subject:Re: [PATCH]armv7: cache: support L2 cache disable
PL310 is the L2$ controller from ARM used in many SoCs. Before jumping to linux, UBoot will call v7_outer_cache_disable in cleanup_before_linux_select to disable L2$. This patch is to support cache disable of PL310.
---
arch/arm/lib/cache-pl310.c | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/lib/cache-pl310.c +5 -0
@@ -13,6 +13,11 @@struct pl310_regs *const pl310 = (struct pl310_regs *)CONFIG_SYS_PL310_BASE ; +void v7_outer_cache_disable (void ) +{ +writel (0 , &pl310->pl310_ctrl); +} +static void pl310_cache_sync (void ) {writel (0 , &pl310->pl310_cache_sync);
Signature · 1 line
2.17.1