summaryrefslogtreecommitdiff
path: root/arch/riscv/dts/starfive_evb.dts
diff options
context:
space:
mode:
authorFelix Moessbauer <felix.moessbauer@siemens.com>2023-01-30 06:05:01 +0300
committerMason Huo <mason.huo@starfivetech.com>2023-02-03 10:25:28 +0300
commita5b1810f12c356c7f26b45316e97dd568c9bc42a (patch)
tree18af4917777c9f2fea6b575e74c26698be4f798b /arch/riscv/dts/starfive_evb.dts
parent8571717e560a7033a644f84d8182714ed26fdbf5 (diff)
downloadu-boot-a5b1810f12c356c7f26b45316e97dd568c9bc42a.tar.xz
exclude opensbi memory range in device tree
This patch explicitly excludes the memory range of the OpenSBI in the built-in device tree. When booting EFI, the efi loader has to know about that zone before loading the device tree for Linux, otherwise it tries to access 0x40000000, leading to an access violation. Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Diffstat (limited to 'arch/riscv/dts/starfive_evb.dts')
-rw-r--r--arch/riscv/dts/starfive_evb.dts12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/riscv/dts/starfive_evb.dts b/arch/riscv/dts/starfive_evb.dts
index 67c0a7bceb..42ee2a5f54 100644
--- a/arch/riscv/dts/starfive_evb.dts
+++ b/arch/riscv/dts/starfive_evb.dts
@@ -27,12 +27,22 @@
starfive,boot-hart-id = <1>;
};
-
memory@80000000 {
device_type = "memory";
reg = <0x0 0x40000000 0x1 0x0>;
};
+ reserved-memory {
+ #size-cells = <2>;
+ #address-cells = <2>;
+ ranges;
+
+ opensbi {
+ reg = <0x00 0x40000000 0x00 0x80000>;
+ no-map;
+ };
+ };
+
soc {
};
};