Skip to content

RISC-V: add LiteX SoC support

Antony Pavlov barebox 5 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest posting 2/28 patches 13 repliesApplied
  2. v4 posting 1/28 patches 1 replySuperseded
  3. v310 patches 8 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v211 patches14 repliesSuperseded
v19 patches13 repliesSuperseded

Changes in v4 from the cover letter

* rebased on top of next branch;
* the "console: support set baudrate for fixed baudrate drivers" patch

Patches in v4 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/8clocksource: timer-riscv: select CSR from device treearch/riscv/dts/erizo.dtsi drivers/clocksource/timer-riscv.c+14 -123 replies
2/8serial: add litex UART driverdrivers/serial/Makefile drivers/serial/serial_litex.c+97 -01 reply
3/8console: support set baudrate for fixed baudrate driverscommon/console.c+6 -41 reply
4/8gpio: add driver for 74xx-ICs with MMIO accessdrivers/gpio/Kconfig drivers/gpio/Makefile drivers/gpio/gpio-74xx-mmio.c+180 -01 reply
5/8spi: add litex spiflash driverdrivers/spi/Kconfig drivers/spi/Makefile drivers/spi/litex_spiflash.c+245 -02 replies
6/8net: add LiteEth driverdrivers/net/Kconfig drivers/net/Makefile drivers/net/liteeth.c+385 -01 reply
7/8RISC-V: add LiteX SoC and linux-on-litex-vexriscv supportarch/riscv/Kconfig.socs arch/riscv/boards/Makefile arch/riscv/boards/litex-linux/Makefile +8 more+316 -03 replies
8/8RISC-V: add litex_linux_defconfigarch/riscv/configs/litex_linux_defconfig+75 -01 reply

Reviews trailers per patch

7 of 8 patches have a Reviewed-by or Acked-by.

PatchAhmad Fatoum
1/8A-b
2/8R-b T-b
3/8R-b T-b
4/8A-b
5/8A-b
6/8A-b
7/8A-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH RESEND v4 0/8] RISC-V: add LiteX SoC support

Changes since v3:

* rebased on top of next branch;
* the "console: support set baudrate for fixed baudrate drivers" patch

    is introduced so the "litex serial: add setbrg callback" patch is dropped;

* update mac0 IP-block base addresses in litex dts according to latest SoC configuration.

Changes since v2:

* rebase on top of master branch (f873c7ff2497) +
"RISC-V: extend multi-image to support both S- and M-Mode"
(http://lists.infradead.org/pipermail/barebox/2021-May/036086.html).
* "litex serial: add setbrg callback" patch by Marek Czerski is added

    for review;

* fix "clocksource: timer-riscv: select CSR from device tree" patch;
* change gpio IP-block base addresses in litex dts;
* gpio-74xx-mmio uses device_get_match_data() now.

Changes since v1:

* rebased on top of next branch;
* new patches are introduced:
* clocksource: timer-riscv: select CSR from device tree
* RISC-V: make RISCV_SBI and RISCV_M_MODE explicitly mutually exclusive
* RISC-V: make it possible to build RV32I multi-image with DEBUG_LL=n
* almost all of Ahmad's notes are fixed (e.g. unused header files inclusions are dropped);
* NOT FIXED: gpio-74xx-mmio still uses dev_get_drvdata(), not device_get_match_data()

Antony Pavlov (8):
clocksource: timer-riscv: select CSR from device tree
serial: add litex UART driver
console: support set baudrate for fixed baudrate drivers
gpio: add driver for 74xx-ICs with MMIO access
spi: add litex spiflash driver
net: add LiteEth driver
RISC-V: add LiteX SoC and linux-on-litex-vexriscv support
RISC-V: add litex_linux_defconfig

 arch/riscv/Kconfig.socs                  |  14 +
 arch/riscv/boards/Makefile               |   1 +
 arch/riscv/boards/litex-linux/Makefile   |   3 +
 arch/riscv/boards/litex-linux/lowlevel.c |  22 ++
 arch/riscv/configs/litex_linux_defconfig |  75 +++++
 arch/riscv/dts/Makefile                  |   1 +
 arch/riscv/dts/erizo.dtsi                |   2 +
 arch/riscv/dts/litex-linux.dts           |  92 ++++++
 arch/riscv/dts/litex_soc_linux.dtsi      |  49 +++
 arch/riscv/include/asm/debug_ll.h        |   3 +
 arch/riscv/include/asm/debug_ll_litex.h  | 123 ++++++++
 common/Kconfig                           |   4 +
 common/console.c                         |  10 +-
 drivers/clocksource/timer-riscv.c        |  24 +-
 drivers/gpio/Kconfig                     |  14 +
 drivers/gpio/Makefile                    |   1 +
 drivers/gpio/gpio-74xx-mmio.c            | 165 ++++++++++
 drivers/net/Kconfig                      |   8 +
 drivers/net/Makefile                     |   1 +
 drivers/net/liteeth.c                    | 376 +++++++++++++++++++++++
 drivers/serial/Makefile                  |   1 +
 drivers/serial/serial_litex.c            |  96 ++++++
 drivers/spi/Kconfig                      |   3 +
 drivers/spi/Makefile                     |   1 +
 drivers/spi/litex_spiflash.c             | 241 +++++++++++++++
 images/Makefile.riscv                    |   4 +
 26 files changed, 1318 insertions(+), 16 deletions(-)
 create mode 100644 arch/riscv/boards/litex-linux/Makefile
 create mode 100644 arch/riscv/boards/litex-linux/lowlevel.c
 create mode 100644 arch/riscv/configs/litex_linux_defconfig
 create mode 100644 arch/riscv/dts/litex-linux.dts
 create mode 100644 arch/riscv/dts/litex_soc_linux.dtsi
 create mode 100644 arch/riscv/include/asm/debug_ll_litex.h
 create mode 100644 drivers/gpio/gpio-74xx-mmio.c
 create mode 100644 drivers/net/liteeth.c
 create mode 100644 drivers/serial/serial_litex.c
 create mode 100644 drivers/spi/litex_spiflash.c
Signature · 7 lines
2.32.0


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