Skip to content

RFC riscv: add initial LiteX SoC support

Antony Pavlov barebox 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4riscv: add initial LiteX SoC supportarch/riscv/Kconfig arch/riscv/Makefile arch/riscv/dts/litex-generic.dts +4 more+198 -00 replies
2/4serial: add litex UART driverdrivers/serial/Makefile drivers/serial/serial_litex.c+100 -02 replies
3/4WIP: make it work on litexarch/riscv/boot/start.S common/bootm.c+2 -21 reply
4/4riscv: add litex_defconfigarch/riscv/configs/litex_defconfig+45 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/4] riscv: add initial LiteX SoC support

This RFC patchseries adds initial LiteX RISC-V SoC support for barebox.

You can obtain this patchseries from github:

    $ git clone -b 20190602.litex https://github.com/frantony/barebox

LiteX is a Migen-based System on Chip [1], supporting softcore VexRiscv CPU,
a 32-bits Linux Capable RISC-V CPU [2].

All the components used to create the LiteX SoC are open-source and the flexibility of Spinal HDL/Migen allow targeting easily very various FPGA devices/boards: Lattice, Altera, Xilinx, Microsemi FPGAs with SDRAM/DDR/DDR2/DDR3/DDR4 RAMs, RMII/MII/RGMII/1000BASE-X Ethernet PHYs.

The LiteX SoC with VexRiscv CPU can be deployed on e.g. Digilent ARTY board [3] or Terasic DE0-Nano board [4].

You can boot barebox from serial port using flterm [5]:, e.g.:

flterm --port /dev/ttyUSB0 --kernel <path_to_barebox.bin> --kernel-adr 0x40000000

TODO
====

* add pbl support for riscv barebox;
* add liteeth Ethernet core support [6] (tip: use ARTY board);
* fix issues (see the WIP commit);
* use barebox to start linux [2] and zephyr [7].

REFERENCES
==========

[1] https://github.com/enjoy-digital/litex
[2] https://github.com/enjoy-digital/linux-on-litex-vexriscv
[3] https://store.digilentinc.com/arty-a7-artix-7-fpga-development-board-for-makers-and-hobbyists/
[4] http://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&No=593
[5] https://github.com/timvideos/flterm
[6] https://github.com/enjoy-digital/liteeth
[7] https://github.com/zephyrproject-rtos/zephyr/tree/master/boards/riscv32/litex_vexriscv

Antony Pavlov (4):
riscv: add initial LiteX SoC support
serial: add litex UART driver
WIP: make it work on litex
riscv: add litex_defconfig

 arch/riscv/Kconfig                            |   6 +
 arch/riscv/Makefile                           |   1 +
 arch/riscv/boot/start.S                       |   2 -
 arch/riscv/configs/litex_defconfig            |  45 +++++++
 arch/riscv/dts/litex-generic.dts              |  17 +++
 arch/riscv/dts/litex.dtsi                     |  36 +++++
 arch/riscv/mach-litex/Kconfig                 |  11 ++
 arch/riscv/mach-litex/Makefile                |   3 +
 arch/riscv/mach-litex/include/mach/debug_ll.h | 124 ++++++++++++++++++
 common/bootm.c                                |   2 +
 drivers/serial/Makefile                       |   1 +
 drivers/serial/serial_litex.c                 |  99 ++++++++++++++
 12 files changed, 345 insertions(+), 2 deletions(-)
 create mode 100644 arch/riscv/configs/litex_defconfig
 create mode 100644 arch/riscv/dts/litex-generic.dts
 create mode 100644 arch/riscv/dts/litex.dtsi
 create mode 100644 arch/riscv/mach-litex/Kconfig
 create mode 100644 arch/riscv/mach-litex/Makefile
 create mode 100644 arch/riscv/mach-litex/include/mach/debug_ll.h
 create mode 100644 drivers/serial/serial_litex.c
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox