Skip to content

Commit 0224781

Browse files
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 <[email protected]>
1 parent c0bb133 commit 0224781

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+
/ {
2+
sram@2003FF00 {
3+
compatible = "zephyr,memory-region", "mmio-sram";
4+
reg = <0x2003FF00 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 slot0 partition size so it matches slot1 */
29+
&slot0_partition {
30+
reg = <0xc000 0x75000>;
31+
};

0 commit comments

Comments
 (0)