mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 15:11:33 +00:00
sandbox: add reserved-memory node in device tree
For testing the handling of memory reservations create a reserved-memory node in sandbox.dts and sandbox64.dts. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromum.org>
This commit is contained in:
parent
cf0ef9317c
commit
1ecea74e2e
2 changed files with 39 additions and 0 deletions
|
@ -20,6 +20,25 @@
|
||||||
reg = <0 CONFIG_SYS_SDRAM_SIZE>;
|
reg = <0 CONFIG_SYS_SDRAM_SIZE>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
reserved-memory {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
ranges;
|
||||||
|
|
||||||
|
reservation_test0 {
|
||||||
|
size = <0x4000>;
|
||||||
|
alignment = <0x2000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
reservation_test1: restest@a000 {
|
||||||
|
reg = <0x00d0a000 0x2000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
reservation_test2: restest@7000 {
|
||||||
|
reg = <0x00d07000 0x1000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
cros_ec: cros-ec {
|
cros_ec: cros-ec {
|
||||||
reg = <0 0>;
|
reg = <0 0>;
|
||||||
u-boot,dm-pre-reloc;
|
u-boot,dm-pre-reloc;
|
||||||
|
|
|
@ -20,6 +20,26 @@
|
||||||
reg = /bits/ 64 <0 CONFIG_SYS_SDRAM_SIZE>;
|
reg = /bits/ 64 <0 CONFIG_SYS_SDRAM_SIZE>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
reserved-memory {
|
||||||
|
#address-cells = <2>;
|
||||||
|
#size-cells = <2>;
|
||||||
|
ranges;
|
||||||
|
|
||||||
|
reservation_test_size {
|
||||||
|
size = <0 0x4000>;
|
||||||
|
alignment = <0 0x2000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
reservation_test@a000 {
|
||||||
|
reg = <0 0x00d0a000 0 0x2000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
reservation_test@7000 {
|
||||||
|
reg = <0 0x00d07000 0 0x1000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/* ... */
|
||||||
cros_ec: cros-ec {
|
cros_ec: cros-ec {
|
||||||
reg = <0 0 0 0>;
|
reg = <0 0 0 0>;
|
||||||
u-boot,dm-pre-reloc;
|
u-boot,dm-pre-reloc;
|
||||||
|
|
Loading…
Add table
Reference in a new issue