soc/sifive/fu540: Add opensbi support
Tested on SiFive/unleashed: Boots into Linux until earlycon terminates. Change-Id: I35abacc16f244b95f9fd1947d1a5ea10c4dee097 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34142 Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
17cfba6fd4
commit
d434e8b1f1
|
@ -24,6 +24,7 @@ config SOC_SIFIVE_FU540
|
||||||
select DRIVERS_UART_SIFIVE
|
select DRIVERS_UART_SIFIVE
|
||||||
select RISCV_USE_ARCH_TIMER
|
select RISCV_USE_ARCH_TIMER
|
||||||
select UART_OVERRIDE_REFCLK
|
select UART_OVERRIDE_REFCLK
|
||||||
|
select RISCV_HAS_OPENSBI
|
||||||
|
|
||||||
if SOC_SIFIVE_FU540
|
if SOC_SIFIVE_FU540
|
||||||
|
|
||||||
|
@ -47,4 +48,11 @@ config RISCV_WORKING_HARTID
|
||||||
int
|
int
|
||||||
default 0
|
default 0
|
||||||
|
|
||||||
|
config OPENSBI_PLATFORM
|
||||||
|
string
|
||||||
|
default "sifive/fu540"
|
||||||
|
|
||||||
|
config OPENSBI_TEXT_START
|
||||||
|
hex
|
||||||
|
default 0x80000000
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -31,6 +31,7 @@ SECTIONS
|
||||||
L2LIM_END(FU540_L2LIM + 2M)
|
L2LIM_END(FU540_L2LIM + 2M)
|
||||||
|
|
||||||
DRAM_START(FU540_DRAM)
|
DRAM_START(FU540_DRAM)
|
||||||
RAMSTAGE(FU540_DRAM, 256K)
|
REGION(opensbi, FU540_DRAM, 128K, 4K)
|
||||||
MEM_STACK(FU540_DRAM + 256K, 20K)
|
RAMSTAGE(FU540_DRAM + 128K, 256K)
|
||||||
|
MEM_STACK(FU540_DRAM + 448K, 20K)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue