summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2019-10-23 12:13:34 +0100
committerRui Miguel Silva <rui.silva@linaro.org>2019-10-23 12:13:34 +0100
commit7c6df29d232961df2577ab9ab84b8ae504c24179 (patch)
tree5aa847c8aa5e262ba7dda7cee3f6f2779ef1d72c
parent60927a2217b619f57eb3564737b277a6760fb6aa (diff)
corstone700: tf-a: add patch to shrink memory usage
Add Tushar patch that reduce memory usage in the device tree and trusted-firmware-a. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
-rw-r--r--meta-corstone700/recipes-bsp/trusted-firmware-a/trusted-firmware-a.bbappend1
-rw-r--r--meta-corstone700/recipes-bsp/trusted-firmware-a/trusted-firmware-a/0001-shrink-the-memory-usage.patch52
2 files changed, 53 insertions, 0 deletions
diff --git a/meta-corstone700/recipes-bsp/trusted-firmware-a/trusted-firmware-a.bbappend b/meta-corstone700/recipes-bsp/trusted-firmware-a/trusted-firmware-a.bbappend
index d1c26b6..92b908a 100644
--- a/meta-corstone700/recipes-bsp/trusted-firmware-a/trusted-firmware-a.bbappend
+++ b/meta-corstone700/recipes-bsp/trusted-firmware-a/trusted-firmware-a.bbappend
@@ -10,6 +10,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI_corstone700 = " \
git://${USER}@git.linaro.org/landing-teams/working/arm/arm-tf.git;protocol=https;branch=iota \
file://0001-corstone-change-root-in-kernel-commandline.patch \
+ file://0001-shrink-the-memory-usage.patch \
"
diff --git a/meta-corstone700/recipes-bsp/trusted-firmware-a/trusted-firmware-a/0001-shrink-the-memory-usage.patch b/meta-corstone700/recipes-bsp/trusted-firmware-a/trusted-firmware-a/0001-shrink-the-memory-usage.patch
new file mode 100644
index 0000000..dbeee7a
--- /dev/null
+++ b/meta-corstone700/recipes-bsp/trusted-firmware-a/trusted-firmware-a/0001-shrink-the-memory-usage.patch
@@ -0,0 +1,52 @@
+From 4a8d5316e0bec78245d7cde319ffa271934a44bc Mon Sep 17 00:00:00 2001
+From: Tushar Khandelwal <tushar.khandelwal@arm.com>
+Date: Fri, 18 Oct 2019 14:40:37 +0100
+Subject: [PATCH] shrink the memory usage
+
+Signed-off-by: Tushar Khandelwal <tushar.khandelwal@arm.com>
+---
+ fdts/corstone700.dts | 6 +++---
+ include/plat/arm/common/arm_def.h | 2 +-
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/fdts/corstone700.dts b/fdts/corstone700.dts
+index 1a8e8adc..4fb2d56a 100644
+--- a/fdts/corstone700.dts
++++ b/fdts/corstone700.dts
+@@ -14,7 +14,7 @@
+ #size-cells = <1>;
+
+ chosen {
+- bootargs = "console=ttyAMA0 root=mtd:physmap-flash.0 ro loglevel=9";
++ bootargs = "console=ttyAMA0 root=mtd:physmap-flash.0 ro loglevel=9 mem=3M";
+ };
+
+ cpus {
+@@ -30,9 +30,9 @@
+
+ };
+
+- memory@2000000 {
++ memory@2600000 {
+ device_type = "memory";
+- reg = <0x02000000 0x02000000>;
++ reg = <0x2600000 0x0300000>;
+ };
+
+ gic: interrupt-controller@1c000000 {
+diff --git a/include/plat/arm/common/arm_def.h b/include/plat/arm/common/arm_def.h
+index dcbdd6c4..9e2e3d31 100644
+--- a/include/plat/arm/common/arm_def.h
++++ b/include/plat/arm/common/arm_def.h
+@@ -54,7 +54,7 @@
+
+ /* The first 4KB of Trusted SRAM are used as shared memory */
+ #ifdef PLAT_ARM_CORSTONE700
+-#define ARM_TRUSTED_SRAM_BASE UL(0x02000000)
++#define ARM_TRUSTED_SRAM_BASE UL(0x03000000)
+ #else
+ #define ARM_TRUSTED_SRAM_BASE UL(0x04000000)
+ #endif
+--
+2.17.1
+