summaryrefslogtreecommitdiff
path: root/target/riscv64
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2025-03-30 15:16:45 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2025-04-01 07:33:34 +0200
commitfd70cfcda2f54af60d68a1f7522bdf1a734547a3 (patch)
tree91c2a6b2e0c2e4dd570bd840ad0a562d859b1d2a /target/riscv64
parent93ecd68abd665c02340616a52efbcf7715568426 (diff)
sipeed-maixduino: add board support
Diffstat (limited to 'target/riscv64')
-rw-r--r--target/riscv64/Makefile3
-rw-r--r--target/riscv64/kernel/sipeed-maixduino9
-rw-r--r--target/riscv64/systems/sipeed-maixduino7
3 files changed, 19 insertions, 0 deletions
diff --git a/target/riscv64/Makefile b/target/riscv64/Makefile
index 55134d24e..ba5a7749e 100644
--- a/target/riscv64/Makefile
+++ b/target/riscv64/Makefile
@@ -54,6 +54,9 @@ endif
ifeq ($(ADK_TARGET_SYSTEM_SIPEED_MAIX_BIT),y)
@echo 'sudo python3 scripts/kflash.py -p /dev/ttyUSB0 -b 1500000 -t $(FW_DIR)/$(TARGET_KERNEL)'
endif
+ifeq ($(ADK_TARGET_SYSTEM_SIPEED_MAIXDUINO),y)
+ @echo 'sudo python3 scripts/kflash.py -p /dev/ttyUSB0 -b 1500000 -t $(FW_DIR)/$(TARGET_KERNEL)'
+endif
endif
ifeq ($(ADK_TARGET_FS),genimage)
targethelp:
diff --git a/target/riscv64/kernel/sipeed-maixduino b/target/riscv64/kernel/sipeed-maixduino
new file mode 100644
index 000000000..713afd415
--- /dev/null
+++ b/target/riscv64/kernel/sipeed-maixduino
@@ -0,0 +1,9 @@
+CONFIG_RISCV=y
+CONFIG_SOC_CANAAN=y
+CONFIG_SOC_CANAAN_K210_DTB_BUILTIN=y
+CONFIG_SOC_CANAAN_K210_DTB_SOURCE="sipeed_maixduino"
+CONFIG_SMP=y
+CONFIG_NR_CPUS=2
+CONFIG_CMDLINE="earlycon console=ttySIF0"
+CONFIG_CMDLINE_FORCE=y
+CONFIG_SECTION_MISMATCH_WARN_ONLY=y
diff --git a/target/riscv64/systems/sipeed-maixduino b/target/riscv64/systems/sipeed-maixduino
new file mode 100644
index 000000000..e3261d66a
--- /dev/null
+++ b/target/riscv64/systems/sipeed-maixduino
@@ -0,0 +1,7 @@
+config ADK_TARGET_SYSTEM_SIPEED_MAIXDUINO
+ bool "Sipeed MAiXDUiNO"
+ select ADK_TARGET_CPU_RISCV64
+ select ADK_TARGET_WITH_SERIAL
+ select ADK_TARGET_KERNEL_IMAGE
+ help
+ Sipeed MAiXDUiNO support.