summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Bonnefille <[email protected]>2024-11-12 15:57:38 +0100
committerLeo Yu-Chi Liang <[email protected]>2024-12-18 13:19:15 +0800
commit04bcc87f0dcc18c9cc6bf2bea90f8c14b44393b4 (patch)
treef84deead66d77fae792544148404b28fc95c99a9 /include
parent4897de90c30d569630633241e7a1b80d4848ec21 (diff)
board: add support for LicheeRV Nano
The LicheeRV Nano is a small SBC using the Sophgo SG2002 RISCV SoC. Signed-off-by: Thomas Bonnefille <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/configs/licheerv_nano.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/configs/licheerv_nano.h b/include/configs/licheerv_nano.h
new file mode 100644
index 00000000000..2ea7943f66f
--- /dev/null
+++ b/include/configs/licheerv_nano.h
@@ -0,0 +1,24 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (c) 2024, Thomas Bonnefille <[email protected]>
+ *
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#include <config_distro_bootcmd.h>
+
+#define BOOT_TARGET_DEVICES(func) \
+ func(MMC, mmc, 0)
+
+#define CFG_SYS_SDRAM_BASE 0x80000000
+
+#define CFG_EXTRA_ENV_SETTINGS "consoledev=ttyS0\0" \
+ "baudrate=115200\0" \
+ "fdt_addr_r=0x82000000\0" \
+ "kernel_addr_r=0x81000000\0" \
+ "scriptaddr=0x80c00000\0" \
+ BOOTENV
+
+#endif /* __CONFIG_H */