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:
Anup Patel
2020-06-02 10:37:15 +05:30
committed by Anup Patel
parent 4e3876d5be
commit 72019ee202
3 changed files with 12 additions and 2 deletions

View File

@@ -17,6 +17,15 @@
#include <sbi_utils/sys/clint.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 = {
.addr = K210_PLIC_BASE_ADDR,
.num_src = K210_PLIC_NUM_SOURCES,