Skip to content

Commit 61c5547

Browse files
danieldegrassed3zd3z
authored andcommitted
boot: zephyr: add ram_load overlays for nrf52840dk and mimxrt1050_evk boards
Add ram load overlays for nrf52840dk and mimxrt1050_evk boards. These ram load overlays are moved from the Zephyr in tree smp_svr sample, to enable ram load support for multiple platforms. Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
1 parent 273c14b commit 61c5547

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/ {
2+
sram@80007F00 {
3+
compatible = "zephyr,memory-region", "mmio-sram";
4+
reg = <0x80007F00 0x100>;
5+
zephyr,memory-region = "RetainedMem";
6+
status = "okay";
7+
8+
retainedmem {
9+
compatible = "zephyr,retained-ram";
10+
status = "okay";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
boot_info0: boot_info@0 {
15+
compatible = "zephyr,retention";
16+
status = "okay";
17+
reg = <0x0 0x100>;
18+
};
19+
};
20+
};
21+
22+
chosen {
23+
zephyr,bootloader-info = &boot_info0;
24+
zephyr,code-partition = &boot_partition;
25+
};
26+
};
27+
28+
/* Reduce size of slot 0 to match slot 1 */
29+
&slot0_partition {
30+
reg = <0x40000 0x300000>;
31+
};
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
&gpregret1 {
2+
/delete-node/ boot_mode@0;
3+
};
4+
5+
/ {
6+
sram@2003FC00 {
7+
compatible = "zephyr,memory-region", "mmio-sram";
8+
reg = <0x2003FC00 DT_SIZE_K(1)>;
9+
zephyr,memory-region = "RetainedMem";
10+
status = "okay";
11+
12+
retainedmem {
13+
compatible = "zephyr,retained-ram";
14+
status = "okay";
15+
#address-cells = <1>;
16+
#size-cells = <1>;
17+
18+
boot_info0: boot_info@0 {
19+
compatible = "zephyr,retention";
20+
status = "okay";
21+
reg = <0x0 0x100>;
22+
};
23+
};
24+
};
25+
26+
chosen {
27+
/delete-property/ zephyr,boot-mode;
28+
zephyr,bootloader-info = &boot_info0;
29+
zephyr,code-partition = &boot_partition;
30+
};
31+
};

0 commit comments

Comments
 (0)