Skip to content

Commit f32bfb3

Browse files
glneokartben
authored andcommitted
boards: ti: sk_am64: Fix M4 DRAM memory offset
The memory offset starts the second DRAM memory area as if the resource table took a whole 1MB, but it only takes 1KB. Shift the region start address back to the right spot. Update the docs to make the memory sizes more clear. Signed-off-by: Andrew Davis <[email protected]>
1 parent 25c7fa4 commit f32bfb3

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

boards/ti/sk_am64/doc/index.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ DDR RAM
4646
-------
4747

4848
The board has 2GB of DDR RAM available. This board configuration
49-
allocates Zephyr 4kB of RAM (only for resource table: 0xa4100000 to 0xa4100400).
49+
allocates Zephyr:
50+
51+
- 1MB for IPC (VirtIO / Vrings)
52+
- 4KB for Linux RemoteProc resource table
53+
- 15MB for general usage
5054

5155
Serial Port
5256
-----------

boards/ti/sk_am64/sk_am64_am6442_m4.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
zephyr,memory-region = "RSC_TABLE";
4545
};
4646

47-
ddr1: memory@a4200000 {
47+
ddr1: memory@a4101000 {
4848
compatible = "zephyr,memory-region", "mmio-sram";
49-
reg = <0xa4200000 (DT_SIZE_M(15) - DT_SIZE_K(4))>;
50-
zephyr,memory-region = "DDR";
49+
reg = <0xa4101000 (DT_SIZE_M(15) - DT_SIZE_K(4))>;
50+
zephyr,memory-region = "DRAM";
5151
};
5252

5353
leds: leds {

0 commit comments

Comments
 (0)