[RFC 0/5] riscv: add support for Milk-V Mars board
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Sun Mar 3 14:01:17 CET 2024
The Milk-V Mars board is technically very close to the StarFive
VisionFive 2 board.
With this patch series the VisionFive 2 U-Boot SPL will detect that it
is runing on a Milk-V board and patch the device-tree accordingly.
This is the same approach that has been taken to handle the differences
between the Visionfive 2 1.2B and 1.3A revisions.
An alternative approach would use a separate defconfig and separate board
files. As this would incur a higher effort I chose the SPL approach.
Heinrich Schuchardt (5):
eeprom: starfive: function get_product_id_from_eeprom()
riscv: set fdtfile on Milk-V Mars
board: starfive: support Milk-V Mars board
riscv: starfive: avoid including common.h
doc: describe Milk-V Mars board
arch/riscv/include/asm/arch-jh7110/eeprom.h | 9 ++
board/starfive/visionfive2/spl.c | 102 +++++++++++++++---
.../visionfive2/starfive_visionfive2.c | 44 +++++---
.../visionfive2/visionfive2-i2c-eeprom.c | 9 +-
doc/board/starfive/index.rst | 1 +
doc/board/starfive/milk-v_mars.rst | 93 ++++++++++++++++
6 files changed, 230 insertions(+), 28 deletions(-)
create mode 100644 doc/board/starfive/milk-v_mars.rst
--
2.43.0
More information about the U-Boot
mailing list