Skip to content

Commit d764199

Browse files
dabekjakubnashif
authored andcommitted
devicetree: add virtual memory entry for intel platform
Add virtual memory entry in dt to use as virtual space regions for aplication. Add virtual memory definition in adsp_memory.h Signed-off-by: Jakub Dabek <[email protected]>
1 parent c7962f5 commit d764199

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

dts/xtensa/intel/intel_adsp_ace15_mtpm.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060
reg = <0xa0020000 DT_SIZE_K(2816)>;
6161
};
6262

63+
sram0virtual: virtualmemory@a0020000 {
64+
device_type = "memory";
65+
compatible = "mmio-sram";
66+
reg = <0xa0020000 DT_SIZE_K(8192)>;
67+
};
68+
6369
sram1: memory@a0000000 {
6470
device_type = "memory";
6571
compatible = "mmio-sram";

soc/xtensa/intel_adsp/ace/include/intel_ace15_mtpm/adsp_memory.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
#define L2_SRAM_BASE (DT_REG_ADDR(DT_NODELABEL(sram0)))
1616
#define L2_SRAM_SIZE (DT_REG_SIZE(DT_NODELABEL(sram0)))
1717

18+
#define L2_VIRTUAL_SRAM_BASE (DT_REG_ADDR(DT_NODELABEL(sram0virtual)))
19+
#define L2_VIRTUAL_SRAM_SIZE (DT_REG_SIZE(DT_NODELABEL(sram0virtual)))
20+
1821
#define LP_SRAM_BASE (DT_REG_ADDR(DT_NODELABEL(sram1)))
1922
#define LP_SRAM_SIZE (DT_REG_SIZE(DT_NODELABEL(sram1)))
2023

0 commit comments

Comments
 (0)