For IO+DDR the wkup_r5fss0_core0 and the
wkup_r5fss0_core0_lpm_metadata_region need to be accessed before RAM
setup is done. These are used to read the lpm metadata region in which
data is stored to resume. This needs to be done before RAM is in use to
avoid overwriting data.

Signed-off-by: Markus Schneider-Pargmann (TI) <[email protected]>
---
 arch/arm64/boot/dts/ti/k3-am62p5-sk.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts 
b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
index 
e67489a178f2a2caedf1306e1c1c9dd6a95745e6..b4a4e427637bb4d5ca408d29234b95fe7e69d006
 100644
--- a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
@@ -71,6 +71,7 @@ wkup_r5fss0_core0_lpm_metadata_region: memory@9ca08000 {
                        compatible = "shared-dma-pool";
                        reg = <0x00 0x9ca08000 0x00 0x1000>;
                        no-map;
+                       bootph-pre-ram;
                };
 
                wkup_r5fss0_core0_lpm_rest_region: memory@9ca09000 {
@@ -879,4 +880,5 @@ &wkup_r5fss0_core0 {
        memory-region-names = "dma", "ipc", "lpm-stub",
                              "lpm-metadata", "lpm-context",
                              "dm-firmware";
+       bootph-pre-ram;
 };

-- 
2.53.0


Reply via email to