diff options
author | Yixun Lan <dlan@gentoo.org> | 2023-07-08 14:24:32 +0300 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2023-07-12 08:21:41 +0300 |
commit | 5f3a7fdb724976698e9d211e4e174e826c7c4abe (patch) | |
tree | c07fadfda25e379c86784cd4c5c94e2f42cb9a8e /board/thead/th1520_lpi4a/board.c | |
parent | 9675d9202780fd996c00ad34f0360c89376205b3 (diff) | |
download | u-boot-5f3a7fdb724976698e9d211e4e174e826c7c4abe.tar.xz |
riscv: t-head: licheepi4a: initial support added
Add support for Sipeed's Lichee Pi 4A board which based on T-HEAD's
TH1520 SoC, only minimal device tree and serial console are enabled,
so it's capable of chain booting from T-HEAD's vendor u-boot.
Reviewed-by: Wei Fu <wefu@redhat.com>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'board/thead/th1520_lpi4a/board.c')
-rw-r--r-- | board/thead/th1520_lpi4a/board.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/board/thead/th1520_lpi4a/board.c b/board/thead/th1520_lpi4a/board.c new file mode 100644 index 0000000000..16c3e456b3 --- /dev/null +++ b/board/thead/th1520_lpi4a/board.c @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (c) 2023, Yixun Lan <dlan@gentoo.org> + * + */ + +#include <common.h> +#include <cpu_func.h> + +int board_init(void) +{ + enable_caches(); + + return 0; +} |