[PATCH 00/20] RISC-V: prepare for BeagleV pre-production board support

Ahmad Fatoum a.fatoum at pengutronix.de
Mon May 31 00:38:01 PDT 2021


This series doesn't yet add BeagleV support, but it lays the groundwork:
  - Some drivers are adapted for 64-bit operation
  - The incoherent interconnect on the JH7100 is handled
    (Will be coherent for JH7110 in normal BeagleV)
  - Some basic drivers are added

Notably missing are GPIO, pinctrl and board support. I still need to
clean those up, so they will follow later.

Ahmad Fatoum (20):
  RISC-V: socs: add Kconfig entry for StarFive JH7100
  net: designware: add support for IP integrated into StarFive SoC
  mfd: add TI TPS65086 PMIC restart driver
  mtd: spi-nor: cadence: fix 64-bit issues
  nvmem: add StarFive OTP support
  RISC-V: dma: support multiple dma_alloc_coherent backends
  RISC-V: support incoherent I-Cache
  soc: add support for StarFive JH7100 incoherent interconnect
  soc: sifive: l2_cache: enable maximum available cache ways
  net: designware: fix 64-bit incompatibilities
  dma: support marking SRAM for coherent DMA use
  mci: allocate DMA-able memory
  mci: allocate sector_buf on demand
  dma: allocate 32-byte aligned buffers by default
  mci: dw_mmc: enable use on 64-bit CPUs
  mci: dw_mmc: match against generic "snps,dw-mshc" compatible
  clk: add initial StarFive clock support
  reset: add StarFive reset controller driver
  watchdog: add StarFive watchdog driver
  hw_random: add driver for RNG on StarFive SoC

 arch/riscv/Kconfig.socs                       |  23 ++
 arch/riscv/boot/uncompress.c                  |   2 +
 arch/riscv/cpu/Makefile                       |   2 +
 arch/riscv/cpu/cache.c                        |  22 ++
 arch/riscv/cpu/core.c                         |   7 +
 arch/riscv/cpu/dma.c                          |  69 ++++
 arch/riscv/include/asm/barebox-riscv.h        |   2 +
 arch/riscv/include/asm/barrier.h              |  27 ++
 arch/riscv/include/asm/cache.h                |  17 +
 arch/riscv/include/asm/dma.h                  |  42 +-
 arch/riscv/include/asm/io.h                   |  10 +
 arch/riscv/lib/reloc.c                        |   8 +
 arch/riscv/lib/setupc.S                       |   2 +
 common/Kconfig                                |   4 +
 common/Makefile                               |   3 +-
 drivers/Makefile                              |   2 +-
 drivers/clk/Makefile                          |   1 +
 drivers/clk/starfive/Makefile                 |   3 +
 drivers/clk/starfive/clk.h                    |  64 +++
 drivers/clk/starfive/jh7100-clkgen.c          | 363 ++++++++++++++++++
 drivers/dma/Kconfig                           |   6 +
 drivers/dma/Makefile                          |   1 +
 drivers/dma/coherent-pool.c                   | 120 ++++++
 drivers/hw_random/Kconfig                     |   7 +
 drivers/hw_random/Makefile                    |   1 +
 drivers/hw_random/starfive-vic-rng.c          | 200 ++++++++++
 drivers/mci/dw_mmc.c                          |  28 +-
 drivers/mci/mci-core.c                        |  15 +-
 drivers/mfd/Kconfig                           |  10 +
 drivers/mfd/Makefile                          |   2 +
 drivers/mfd/core.c                            |  25 ++
 drivers/mfd/tps65086.c                        |  76 ++++
 drivers/mtd/spi-nor/cadence-quadspi.c         |  10 +-
 drivers/net/Kconfig                           |   8 +
 drivers/net/Makefile                          |   1 +
 drivers/net/designware.c                      |  35 +-
 drivers/net/designware.h                      |   7 +-
 drivers/net/designware_starfive.c             | 109 ++++++
 drivers/nvmem/Kconfig                         |   8 +
 drivers/nvmem/Makefile                        |   2 +
 drivers/nvmem/starfive-otp.c                  | 227 +++++++++++
 drivers/power/reset/Kconfig                   |   6 +
 drivers/power/reset/Makefile                  |   1 +
 drivers/power/reset/tps65086-restart.c        |  55 +++
 drivers/reset/Kconfig                         |   6 +
 drivers/reset/Makefile                        |   1 +
 drivers/reset/reset-starfive-vic.c            | 204 ++++++++++
 drivers/soc/Makefile                          |   4 +
 drivers/soc/sifive/Makefile                   |   1 +
 drivers/soc/sifive/sifive_l2_cache.c          | 158 ++++++++
 drivers/watchdog/Kconfig                      |   7 +
 drivers/watchdog/Makefile                     |   1 +
 drivers/watchdog/starfive_wdt.c               |  97 +++++
 include/dma.h                                 |   7 +-
 include/dt-bindings/clock/starfive-jh7100.h   | 203 ++++++++++
 .../reset-controller/starfive-jh7100.h        | 126 ++++++
 include/linux/mfd/core.h                      |  26 ++
 include/linux/mfd/tps65086.h                  |  98 +++++
 include/soc/starfive/rstgen.h                 |  41 ++
 include/soc/starfive/sysmain.h                |  15 +
 60 files changed, 2551 insertions(+), 77 deletions(-)
 create mode 100644 arch/riscv/cpu/cache.c
 create mode 100644 arch/riscv/cpu/dma.c
 create mode 100644 arch/riscv/include/asm/barrier.h
 create mode 100644 arch/riscv/include/asm/cache.h
 create mode 100644 drivers/clk/starfive/Makefile
 create mode 100644 drivers/clk/starfive/clk.h
 create mode 100644 drivers/clk/starfive/jh7100-clkgen.c
 create mode 100644 drivers/dma/coherent-pool.c
 create mode 100644 drivers/hw_random/starfive-vic-rng.c
 create mode 100644 drivers/mfd/core.c
 create mode 100644 drivers/mfd/tps65086.c
 create mode 100644 drivers/net/designware_starfive.c
 create mode 100644 drivers/nvmem/starfive-otp.c
 create mode 100644 drivers/power/reset/tps65086-restart.c
 create mode 100644 drivers/reset/reset-starfive-vic.c
 create mode 100644 drivers/soc/Makefile
 create mode 100644 drivers/soc/sifive/Makefile
 create mode 100644 drivers/soc/sifive/sifive_l2_cache.c
 create mode 100644 drivers/watchdog/starfive_wdt.c
 create mode 100644 include/dt-bindings/clock/starfive-jh7100.h
 create mode 100644 include/dt-bindings/reset-controller/starfive-jh7100.h
 create mode 100644 include/linux/mfd/core.h
 create mode 100644 include/linux/mfd/tps65086.h
 create mode 100644 include/soc/starfive/rstgen.h
 create mode 100644 include/soc/starfive/sysmain.h

-- 
2.29.2




More information about the barebox mailing list