forked from Mirrors/opensbi
platform: kendryte/k210: Use new mechanism of builtin DTB
We update kendryte/k210 to use new mechanism of having builtin DTB where we convert k210.dts to C source and further compile-n-link it with libplatsbi.a. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
@@ -17,4 +17,3 @@ platform-ldflags-y =
|
|||||||
FW_TEXT_START=0x80000000
|
FW_TEXT_START=0x80000000
|
||||||
FW_PAYLOAD=y
|
FW_PAYLOAD=y
|
||||||
FW_PAYLOAD_ALIGN=0x1000
|
FW_PAYLOAD_ALIGN=0x1000
|
||||||
FW_PAYLOAD_FDT=k210.dtb
|
|
||||||
|
@@ -8,4 +8,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
platform-objs-y += platform.o
|
platform-objs-y += platform.o
|
||||||
platform-dtb-y += k210.dtb
|
|
||||||
|
platform-objs-y += k210.o
|
||||||
|
platform-varprefix-k210.o = dt_k210
|
||||||
|
@@ -17,6 +17,15 @@
|
|||||||
#include <sbi_utils/sys/clint.h>
|
#include <sbi_utils/sys/clint.h>
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
|
|
||||||
|
extern const char dt_k210_start[];
|
||||||
|
|
||||||
|
unsigned long fw_platform_init(unsigned long arg0, unsigned long arg1,
|
||||||
|
unsigned long arg2, unsigned long arg3,
|
||||||
|
unsigned long arg4)
|
||||||
|
{
|
||||||
|
return (unsigned long)&dt_k210_start[0];
|
||||||
|
}
|
||||||
|
|
||||||
static struct plic_data plic = {
|
static struct plic_data plic = {
|
||||||
.addr = K210_PLIC_BASE_ADDR,
|
.addr = K210_PLIC_BASE_ADDR,
|
||||||
.num_src = K210_PLIC_NUM_SOURCES,
|
.num_src = K210_PLIC_NUM_SOURCES,
|
||||||
|
Reference in New Issue
Block a user