lkml.org 
[lkml]   [2023]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH 5/5] arm64: dts: ti: k3-j7200: add reserved memory regions for lpm
Two memory regions are reserved for suspend to ram on j7200.
One is dedicated to TF-A, it uses this region to save its context during
suspend.
The second region is for R5 SPL, which uses it for its stacks and to store
some firmware images.
These regions are reserved from the linux point of view to avoid any
memory corruption.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
---
arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi
index 5a300d4c8ba0..dc8c9c3e8443 100644
--- a/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi
@@ -79,6 +79,16 @@ rtos_ipc_memory_region: ipc-memories@a4000000 {
alignment = <0x1000>;
no-map;
};
+
+ lpm_r5_spl_ctx_ddr: lpm-memory@a5000000 {
+ reg = <0x00 0xa5000000 0x00 0x1000000>;
+ no-map;
+ };
+
+ lpm_bl31_ctx_ddr: lpm-memory@a6000000 {
+ reg = <0x00 0xa6000000 0x00 0x20000>;
+ no-map;
+ };
};
};

--
2.39.2

\
 
 \ /
  Last update: 2023-11-29 16:32    [W:0.085 / U:0.872 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site