[PATCH 4/8] riscv: Add AST2700 SoC initial platform support

Leo Liang ycliang at andestech.com
Mon Sep 9 14:17:15 CEST 2024


On Mon, Aug 19, 2024 at 06:17:00PM +0800, Chia-Wei Wang wrote:
> AST2700 SoCs integrates a Ibex 32-bits RISC-V core as the boot MCU
> for the first stage bootloader execution, namely SPL.
> 
> This patch implements the preliminary base to successfully run SPL
> on this RV32-based MCU to the console banner message.
> 
> Signed-off-by: Chia-Wei Wang <chiawei_wang at aspeedtech.com>
> ---
>  arch/riscv/Kconfig                        |   5 +
>  arch/riscv/cpu/ast2700/Kconfig            |   6 +
>  arch/riscv/cpu/ast2700/Makefile           |   1 +
>  arch/riscv/cpu/ast2700/cpu.c              |  23 ++++
>  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/scu.h | 145 ++++++++++++++++++++++
>  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        |   2 +
>  board/aspeed/ibex_ast2700/ibex_ast2700.c  |  85 +++++++++++++
>  board/aspeed/ibex_ast2700/sli.c           |  72 +++++++++++
>  configs/ibex-ast2700_defconfig            |  92 ++++++++++++++
>  include/configs/ibex_ast2700.h            |  12 ++
>  17 files changed, 692 insertions(+)
>  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/scu.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/ibex_ast2700.c
>  create mode 100644 board/aspeed/ibex_ast2700/sli.c
>  create mode 100644 configs/ibex-ast2700_defconfig
>  create mode 100644 include/configs/ibex_ast2700.h

Hi Chia-Wei,

Could you also provide proper document under ${u-boot}/doc/board regarding 
how to build and run U-boot-SPL on AST2700?

Other than that, LGTM.

Reviewed-by: Leo Yu-Chi Liang <ycliang at andestech.com>

Best regards,
Leo


More information about the U-Boot mailing list