summaryrefslogtreecommitdiffstats
path: root/0039-sunxi-fix-SRAM_B-SRAM_D-memory-map.patch
diff options
context:
space:
mode:
Diffstat (limited to '0039-sunxi-fix-SRAM_B-SRAM_D-memory-map.patch')
-rw-r--r--0039-sunxi-fix-SRAM_B-SRAM_D-memory-map.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/0039-sunxi-fix-SRAM_B-SRAM_D-memory-map.patch b/0039-sunxi-fix-SRAM_B-SRAM_D-memory-map.patch
new file mode 100644
index 0000000..1bb004d
--- /dev/null
+++ b/0039-sunxi-fix-SRAM_B-SRAM_D-memory-map.patch
@@ -0,0 +1,31 @@
+From 007880c8871c9d7a87fa61017c5ce3f7040c38bb Mon Sep 17 00:00:00 2001
+From: Marc Zyngier <marc.zyngier@arm.com>
+Date: Sat, 7 Dec 2013 11:19:16 +0000
+Subject: [PATCH 39/40] sunxi: fix SRAM_B/SRAM_D memory map
+
+Move the B and D SRAM bank to their actual location (or at least
+where the documentation pretends they are).
+
+Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
+---
+ arch/arm/include/asm/arch-sunxi/cpu.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/arch/arm/include/asm/arch-sunxi/cpu.h b/arch/arm/include/asm/arch-sunxi/cpu.h
+index 7400559..a987e51d 100644
+--- a/arch/arm/include/asm/arch-sunxi/cpu.h
++++ b/arch/arm/include/asm/arch-sunxi/cpu.h
+@@ -15,8 +15,8 @@
+ #define SUNXI_SRAM_A2_BASE 0x00004000 /* 16 kiB */
+ #define SUNXI_SRAM_A3_BASE 0x00008000 /* 13 kiB */
+ #define SUNXI_SRAM_A4_BASE 0x0000b400 /* 3 kiB */
+-#define SUNXI_SRAM_D_BASE 0x01c00000
+-#define SUNXI_SRAM_B_BASE 0x01c00000 /* 64 kiB (secure) */
++#define SUNXI_SRAM_D_BASE 0x00010000 /* 4 kiB */
++#define SUNXI_SRAM_B_BASE 0x00020000 /* 64 kiB (secure) */
+
+ #define SUNXI_SRAMC_BASE 0x01c00000
+ #define SUNXI_DRAMC_BASE 0x01c01000
+--
+1.9.0
+