Skip to content

riscv: Add AST2700 platform support

Chia-Wei Wang u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesNew
  2. v18 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- collect Reviewed-by and Acked-by tags
- add the build document for ibex-ast2700 board as suggested

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8riscv: Make A ISA extension selectablearch/riscv/Kconfig+4 -10 replies
2/8riscv: Make stack size shift configurablearch/riscv/Kconfig+1 -10 replies
3/8riscv: u-boot-spl.lds: Remove _image_binary_end alignmentarch/riscv/cpu/u-boot-spl.lds+0 -20 replies
4/8riscv: Add AST2700 SoC initial platform supportarch/riscv/Kconfig arch/riscv/cpu/ast2700/Kconfig arch/riscv/cpu/ast2700/Makefile +17 more+728 -00 replies
5/8timer: Add AST2700 IBEX timer supportdrivers/timer/Kconfig drivers/timer/Makefile drivers/timer/ast_ibex_timer.c+52 -00 replies
6/8board: ibex_ast2700: Add FMC header supportarch/riscv/include/asm/arch-ast2700/fmc_hdr.h board/aspeed/ibex_ast2700/Makefile board/aspeed/ibex_ast2700/fmc_hdr.c+117 -00 replies
7/8ram: ast2700: Add DRAM controller initializationarch/riscv/include/asm/arch-ast2700/sdram.h drivers/ram/Makefile drivers/ram/aspeed/Kconfig +4 more+10828 -50 replies
8/8configs: ibex-ast2700: Enable DRAM and timer driverconfigs/ibex-ast2700_defconfig+2 -00 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchLeo Yu-Chi Liang
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8A-b
8/8R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/8] riscv: Add AST2700 platform support

AST2700 is the 7th generation of Aspeed BMC SoCs.

A 32-bits Ibex RISC-V core is integrated as the boot MCU to run the first stage bootloader, SPL, for the platform initialization.

This patch series starts by revising RISC-V common code to relax certain restrictions for finer platform resource tuning. As this MCU adopts the "small" configuration provided by Ibex and has limited SRAM space.

In addition to the RV common code revision, the other patches provides the basic AST2700 platform code and DRAM/Timer drivers to succuessfully boot SPL and U-Boot on this Ibex-based MCU.

v2:
- collect Reviewed-by and Acked-by tags
- add the build document for ibex-ast2700 board as suggested

Chia-Wei Wang (8):
riscv: Make A ISA extension selectable
riscv: Make stack size shift configurable
riscv: u-boot-spl.lds: Remove _image_binary_end alignment
riscv: Add AST2700 SoC initial platform support
timer: Add AST2700 IBEX timer support
board: ibex_ast2700: Add FMC header support
ram: ast2700: Add DRAM controller initialization
configs: ibex-ast2700: Enable DRAM and timer driver

 arch/riscv/Kconfig                            |   12 +-
 arch/riscv/cpu/ast2700/Kconfig                |    6 +
 arch/riscv/cpu/ast2700/Makefile               |    1 +
 arch/riscv/cpu/ast2700/cpu.c                  |   23 +
 arch/riscv/cpu/u-boot-spl.lds                 |    2 -
 arch/riscv/dts/Makefile                       |    1 +
 arch/riscv/dts/ast2700-ibex.dts               |   22 +
 arch/riscv/dts/ast2700-u-boot.dtsi            |   40 +
 arch/riscv/dts/ast2700.dtsi                   |   76 +
 arch/riscv/include/asm/arch-ast2700/fmc_hdr.h |   52 +
 arch/riscv/include/asm/arch-ast2700/scu.h     |  145 +
 arch/riscv/include/asm/arch-ast2700/sdram.h   |  137 +
 arch/riscv/include/asm/arch-ast2700/sli.h     |   82 +
 board/aspeed/ibex_ast2700/Kconfig             |   21 +
 board/aspeed/ibex_ast2700/MAINTAINERS         |    7 +
 board/aspeed/ibex_ast2700/Makefile            |    3 +
 board/aspeed/ibex_ast2700/fmc_hdr.c           |   64 +
 board/aspeed/ibex_ast2700/ibex_ast2700.c      |   85 +
 board/aspeed/ibex_ast2700/sli.c               |   72 +
 configs/ibex-ast2700_defconfig                |   94 +
 doc/board/aspeed/ibex-ast2700.rst             |   26 +
 doc/board/aspeed/index.rst                    |    9 +
 doc/board/index.rst                           |    1 +
 drivers/ram/Makefile                          |    2 +-
 drivers/ram/aspeed/Kconfig                    |   27 +-
 drivers/ram/aspeed/Makefile                   |    1 +
 ..._ddrphy_phyinit_ddr4-3200-nodimm-train2D.c | 2700 +++++++
 ..._ddrphy_phyinit_ddr5-3200-nodimm-train2D.c | 6930 +++++++++++++++++
 drivers/ram/aspeed/sdram_ast2700.c            | 1036 +++
 drivers/timer/Kconfig                         |    6 +
 drivers/timer/Makefile                        |    1 +
 drivers/timer/ast_ibex_timer.c                |   45 +
 include/configs/ibex_ast2700.h                |   12 +
 33 files changed, 11732 insertions(+), 9 deletions(-)
 create mode 100644 arch/riscv/cpu/ast2700/Kconfig
 create mode 100644 arch/riscv/cpu/ast2700/Makefile
 create mode 100644 arch/riscv/cpu/ast2700/cpu.c
 create mode 100644 arch/riscv/dts/ast2700-ibex.dts
 create mode 100644 arch/riscv/dts/ast2700-u-boot.dtsi
 create mode 100644 arch/riscv/dts/ast2700.dtsi
 create mode 100644 arch/riscv/include/asm/arch-ast2700/fmc_hdr.h
 create mode 100644 arch/riscv/include/asm/arch-ast2700/scu.h
 create mode 100644 arch/riscv/include/asm/arch-ast2700/sdram.h
 create mode 100644 arch/riscv/include/asm/arch-ast2700/sli.h
 create mode 100644 board/aspeed/ibex_ast2700/Kconfig
 create mode 100644 board/aspeed/ibex_ast2700/MAINTAINERS
 create mode 100644 board/aspeed/ibex_ast2700/Makefile
 create mode 100644 board/aspeed/ibex_ast2700/fmc_hdr.c
 create mode 100644 board/aspeed/ibex_ast2700/ibex_ast2700.c
 create mode 100644 board/aspeed/ibex_ast2700/sli.c
 create mode 100644 configs/ibex-ast2700_defconfig
 create mode 100644 doc/board/aspeed/ibex-ast2700.rst
 create mode 100644 doc/board/aspeed/index.rst
 create mode 100644 drivers/ram/aspeed/dwc_ddrphy_phyinit_ddr4-3200-nodimm-train2D.c
 create mode 100644 drivers/ram/aspeed/dwc_ddrphy_phyinit_ddr5-3200-nodimm-train2D.c
 create mode 100644 drivers/ram/aspeed/sdram_ast2700.c
 create mode 100644 drivers/timer/ast_ibex_timer.c
 create mode 100644 include/configs/ibex_ast2700.h
Signature · 1 line
2.25.1