summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/sifive/fu540/Kconfig8
-rw-r--r--src/soc/sifive/fu540/include/soc/memlayout.ld5
2 files changed, 11 insertions, 2 deletions
diff --git a/src/soc/sifive/fu540/Kconfig b/src/soc/sifive/fu540/Kconfig
index 82b42e5559..97c67bf946 100644
--- a/src/soc/sifive/fu540/Kconfig
+++ b/src/soc/sifive/fu540/Kconfig
@@ -24,6 +24,7 @@ config SOC_SIFIVE_FU540
select DRIVERS_UART_SIFIVE
select RISCV_USE_ARCH_TIMER
select UART_OVERRIDE_REFCLK
+ select RISCV_HAS_OPENSBI
if SOC_SIFIVE_FU540
@@ -47,4 +48,11 @@ config RISCV_WORKING_HARTID
int
default 0
+config OPENSBI_PLATFORM
+ string
+ default "sifive/fu540"
+
+config OPENSBI_TEXT_START
+ hex
+ default 0x80000000
endif
diff --git a/src/soc/sifive/fu540/include/soc/memlayout.ld b/src/soc/sifive/fu540/include/soc/memlayout.ld
index b9b9c479d6..1d11aa0452 100644
--- a/src/soc/sifive/fu540/include/soc/memlayout.ld
+++ b/src/soc/sifive/fu540/include/soc/memlayout.ld
@@ -31,6 +31,7 @@ SECTIONS
L2LIM_END(FU540_L2LIM + 2M)
DRAM_START(FU540_DRAM)
- RAMSTAGE(FU540_DRAM, 256K)
- MEM_STACK(FU540_DRAM + 256K, 20K)
+ REGION(opensbi, FU540_DRAM, 128K, 4K)
+ RAMSTAGE(FU540_DRAM + 128K, 256K)
+ MEM_STACK(FU540_DRAM + 448K, 20K)
}