suniv: add new target
[openwrt/staging/wigyori.git] / package / boot / uboot-suniv / patches / 0020-disable-sunxi-enable_caches-function-for-arm926ejs.patch
1 From 1f42a5fe1414e505cbf0d558de837dcc91f8d7ba Mon Sep 17 00:00:00 2001
2 From: florpor <florist.powers@gmail.com>
3 Date: Wed, 29 Apr 2020 13:39:57 +0300
4 Subject: [PATCH 20/29] disable sunxi enable_caches function for arm926ejs
5
6 ---
7 arch/arm/mach-sunxi/board.c | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c
11 index cedab41f8f..7e088c7e8a 100644
12 --- a/arch/arm/mach-sunxi/board.c
13 +++ b/arch/arm/mach-sunxi/board.c
14 @@ -343,7 +343,7 @@ void reset_cpu(ulong addr)
15 #endif
16 }
17
18 -#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) && !defined(CONFIG_ARM64)
19 +#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) && !defined(CONFIG_ARM64) && !defined(CONFIG_CPU_ARM926EJS)
20 void enable_caches(void)
21 {
22 /* Enable D-cache. I-cache is already enabled in start.S */
23 --
24 2.20.1
25