aboutsummaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/mediatek/mt8186/include/soc/memlayout.ld16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/soc/mediatek/mt8186/include/soc/memlayout.ld b/src/soc/mediatek/mt8186/include/soc/memlayout.ld
index a1700e60b5..36078d3f4d 100644
--- a/src/soc/mediatek/mt8186/include/soc/memlayout.ld
+++ b/src/soc/mediatek/mt8186/include/soc/memlayout.ld
@@ -34,6 +34,12 @@ SECTIONS
/* MT8186 has 64KB SRAM. */
SRAM_END(0x00110000)
+ /*
+ * The L3 (can be used as SRAM_L2C) is 1MB in total. However the BootROM
+ * has configured only half of L2/L3 cache as SRAM and the rest for cache
+ * so we can't use them unless if we disable L2C and reconfigure (be aware
+ * we can't configure whole L3 to SRAM without any cache).
+ */
SRAM_L2C_START(0x00200000)
/* 4K reserved for BOOTROM until BOOTBLOCK is started */
BOOTBLOCK(0x00201000, 60K)
@@ -41,11 +47,11 @@ SECTIONS
* The needed size can be obtained by:
* aarch64-cros-linux-gnu-objdump -x dram.elf | grep memsz
*/
- DRAM_INIT_CODE(0x00210000, 240K)
- OVERLAP_DECOMPRESSOR_VERSTAGE_ROMSTAGE(0x0024c000, 272K)
- PRERAM_CBFS_CACHE(0x00290000, 48K)
- PRERAM_CBMEM_CONSOLE(0x0029C000, 400K)
- SRAM_L2C_END(0x00300000)
+ DRAM_INIT_CODE(0x00210000, 196K)
+ OVERLAP_DECOMPRESSOR_VERSTAGE_ROMSTAGE(0x00241000, 140K)
+ PRERAM_CBFS_CACHE(0x00264000, 48K)
+ PRERAM_CBMEM_CONSOLE(0x00270000, 64K)
+ SRAM_L2C_END(0x00280000)
DRAM_START(0x40000000)
DRAM_DMA(0x40000000, 1M)