[PATCH 0/2] bsps/riscv: Add kendrytek210 riscv BSP variant

Alan Cudmore alan.cudmore at gmail.com
Fri Mar 10 03:48:25 UTC 2023


This patch set adds the riscv/kendrytek210 BSP variant to support the
Kendryte K210 Dual Core RISC-V SoC. The BSP runs on the renode.io
 simulator, the Sipeed MAiX BiT and MAiXDuino boards, and would likely
run on other boards. RTEMS binaries can be flashed to the boards using
the kflash python utility available through the pip command. Currently
the BSP supports the console UART which is shared with the frdme310arty,
an interrupt controller, and timer. The included device tree source
just covers the minimal set of peripherals. The device tree can be
expanded as additional device support is addded.
Manufacturer, board links, and other information can be found in
ticket #4876.
Documentation that describes how to build and run the BSP on the 
boards and simulator has been prepared and will be submitted after the bsp
is merged.

Updates #4876

Alan Cudmore (2):
  spec: add riscv Kendryte K210 variant options
  bsps/riscv: add riscv/kendrytek210 BSP variant

 bsps/riscv/riscv/config/kendrytek210.cfg      |   9 +
 bsps/riscv/riscv/console/console-config.c     |  10 +-
 bsps/riscv/riscv/console/fe310-uart.c         |   2 +-
 bsps/riscv/riscv/dts/kendryte-k210.dts        | 216 ++++++++++++
 bsps/riscv/riscv/include/bsp.h                |   4 +
 bsps/riscv/riscv/include/bsp/k210.h           |  91 +++++
 .../riscv/include/bsp/kendryte-k210-dtb.h     | 315 ++++++++++++++++++
 bsps/riscv/riscv/include/bsp/riscv.h          |   4 +
 bsps/riscv/riscv/start/bspstart.c             |  42 +++
 spec/build/bsps/optdtb.yml                    |   4 +-
 spec/build/bsps/optdtbheaderpath.yml          |   2 +
 spec/build/bsps/optfdtuboot.yml               |   3 +
 spec/build/bsps/riscv/optramsize.yml          |   2 +
 spec/build/bsps/riscv/riscv/abi.yml           |   1 +
 .../bsps/riscv/riscv/bspkendrtyek210.yml      |  19 ++
 spec/build/bsps/riscv/riscv/grp.yml           |   4 +
 spec/build/bsps/riscv/riscv/obj.yml           |   1 +
 .../bsps/riscv/riscv/optkendrytek210.yml      |  18 +
 spec/build/bsps/riscv/riscv/optns16550max.yml |   4 +-
 spec/build/bsps/riscv/riscv/optsifiveuart.yml |  20 ++
 spec/build/cpukit/optsmp.yml                  |   1 +
 21 files changed, 764 insertions(+), 8 deletions(-)
 create mode 100644 bsps/riscv/riscv/config/kendrytek210.cfg
 create mode 100644 bsps/riscv/riscv/dts/kendryte-k210.dts
 create mode 100644 bsps/riscv/riscv/include/bsp/k210.h
 create mode 100644 bsps/riscv/riscv/include/bsp/kendryte-k210-dtb.h
 create mode 100644 spec/build/bsps/riscv/riscv/bspkendrtyek210.yml
 create mode 100644 spec/build/bsps/riscv/riscv/optkendrytek210.yml
 create mode 100644 spec/build/bsps/riscv/riscv/optsifiveuart.yml

-- 
2.25.1



More information about the devel mailing list