Skip to content

Commit 711e481

Browse files
ibirnbaumkartben
authored andcommitted
boards: qemu: cortex_r5: declare 64MB sram0 area at board level
Declare the sram0 area for this board to start at 0x4000000 and to be 64MB in size. The base address is the lowest possible multiple of 64MB which doesn't have its base address at 0, therefore preventing the mixed use of regular RAM and the ATCM/BTCM and the possible issues of having a 'black hole' between the ATCM and BTCM areas or the BTCM being completely disabled. Signed-off-by: Immo Birnbaum <[email protected]>
1 parent 970ceb8 commit 711e481

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

boards/qemu/cortex_r5/qemu_cortex_r5.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
model = "QEMU Cortex-R5";
1313
compatible = "xlnx,zynqmp-qemu";
1414

15+
sram0: memory@4000000 {
16+
compatible = "mmio-sram";
17+
reg = <0x4000000 DT_SIZE_M(64)>;
18+
};
19+
1520
chosen {
1621
zephyr,sram = &sram0;
1722
zephyr,flash = &flash0;

0 commit comments

Comments
 (0)