summaryrefslogtreecommitdiff
path: root/board/starfive
AgeCommit message (Collapse)AuthorFilesLines
2025-09-15board: starfive: visionfive: Switch to USB host by defaultHal Feng1-2/+7
Output gpio62 low for switching to USB host by default. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2025-09-08board: starfive: visionfive: Fix sdio0 bus-width if the board is VF2 Lite ↵Hal Feng1-0/+24
eMMC version Set sdio0 bus-width to 8 when using VF2 Lite eMMC version. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2025-09-05Merge branch 'CR_20104_eeprom_hal.feng' into 'jh7110-master'Atlas Luo1-1/+4
CR_20104_eeprom_hal.feng See merge request sdk/u-boot!112
2025-09-05board: starfive: visionfive: Add VF2 Lite logo and display itHal Feng2-1/+13464
Add VF2 Lite logo and display it. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2025-09-05eeprom: starfive: Fix the crash when eeprom data is not correctHal Feng1-1/+4
Avoid the product_id is NULL. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2025-08-25board: starfive: visionfive: Add VF2 Lite eMMC version fdt configurationHal Feng1-0/+1
Get emmc size from eeprom and add VF2 Lite eMMC version fdt configuration. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2025-08-25eeprom: starfive: Add function get_mmc_size_from_eeprom()Hal Feng1-0/+18
Export a function get_mmc_size_from_eeprom() to read the eMMC size. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2025-08-15Support VF2 CM / Lite board automaticallyHal Feng3-2/+22
Supprot selecting DT according to eeprom information. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2025-08-11eeprom: starfive: Update eeprom data format version to 3Hal Feng2-11/+59
Add wifi_bt field in ATOM4. Add "mac wifi_bt <?>" command. Update eeprom data format version to 3. Add VisionFive 2 Lite support. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2025-08-11board: starfive: visionfive2: Move get_vf2_board_type() to eeprom driverHal Feng2-30/+30
Move get_vf2_board_type() to eeprom driver and export it. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2025-06-10board: starfive: visionfive: Add VisionFive 2 CM / Lite board recognitionHal Feng1-0/+35
Add vf2_board_type env variable to identify VF2, VF2 CM and VF2 Lite. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2025-06-09eeprom: starfive: Add function get_product_id_from_eeprom()Hal Feng1-0/+8
Export a function get_product_id_from_eeprom() to read the product ID. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-12-06board: starfive: visionfive2: show message when read eepromZiv Xu1-1/+6
show message when read eeprom Signed-off-by: Ziv Xu <ziv.xu@starfivetech.com>
2024-07-05Merge branch 'CR_12375_amp_misc_minda' into 'jh7110-master'andy.hu2-0/+4
CR_12375 board: AMP: Add chip type and board type to share ram See merge request sdk/u-boot!86
2024-07-03board: AMP: Add chip type and board type to share ramMinda Chen2-0/+4
Add chip type and board type to rtos share ram. So RTOS side can get chip type set gmac configuration. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2024-06-27board :starfive: devkits: add jtag supportZiv Xu2-0/+27
Signed-off-by: Ziv Xu <ziv.xu@starfivetech.com>
2024-05-21spl: amp: Enable devkits UART2 and move rtos image to memoryMinda Chen1-0/+35
Enable devkits UART2 for rtos and move rtos image to running memory. The image size is 832KB. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2024-05-21amp: Set devkits mac addr to share ram while one gmac is disable.Minda Chen1-2/+20
In AMP case, one GMAC is moved to RTOS side. u-boot dts node is disabled, RTOS need to get the MAC address. So u-boot write the MAC address to share RAM. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2024-04-29amp: Set mac addr to share ram while one gmac is disable.Minda Chen1-1/+19
In AMP case, one GMAC is moved to RTOS side. u-boot dts node is disabled, RTOS need to get the MAC address. So u-boot write the MAC address to share RAM. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2024-04-26spl: amp: Enable UART2 and move rtos image to memoryMinda Chen1-0/+34
Enable UART2 for rtos and move rtos image to running memory. The image size is 832KB. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2024-02-23Merge branch 'CR_9208_VF2_EEPROM_ziv.xu' into 'jh7110-master'andy.hu1-1/+1
CR_9208_VF2_EEPROM_ziv.xu See merge request sdk/u-boot!77
2024-02-07board: starfive: Add the default cpu max voltageMason Huo3-3/+8
The system will read cpu info from OTP, but if the OTP read fails or OTP driver is not enabled, then the cpu voltage script will fail to delete cpu frequencies node in dts file. Add the default cpu max voltage to avoid these corner cases. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2024-02-06board: starfive: visionfive: change eeprom write pagesizeZiv Xu1-1/+1
change eeprom write pagesize Signed-off-by: Ziv Xu <ziv.xu@starfivetech.com>
2023-11-29board: starfive: Add StarFive Devkits board supportHal Feng6-0/+1475
Add board support for StarFive Devkits. The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29board: starfive: Add StarFive VisionFive 2 board supportHal Feng9-304/+1580
Add board support for StarFive VisionFive 2. The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-08-16riscv: starfive: evb: add get_boot_modeSamin Guo1-0/+8
add get_boot_mode function to support Multi-device boot Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-07-28spl: starfive: modify driver strength and slew rateWilliam Qiu1-0/+11
Set eMMC/sd clk's DR to 2 and set its SR to 1. Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2023-07-19board: starfive: evb: Add dynamic CMA adjustment schemeSamin Guo1-0/+8
Synchronize from vf2 to the dynamic CMA scheme Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-07-19board: starfive: evb: Add resize-ddr functionSamin Guo1-0/+47
Add board-level resize-DDR function for evb Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-06-05board: starfive: jh7110: Add support for 1.25GHz chipsMason Huo1-11/+3
Remove max cpu voltages: 1.12v, 1.10v, 1.08v. Set the cpu max frequency to 1.25G per OTP value. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-04-23board: starfive: copyright: Standardize the copyright formatYanhong Wang6-6/+6
Unify the content format of the copyright section Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
2023-04-07Merge branch 'CR_4563_memcpy_samin.guo' into 'jh7110-master'andy.hu1-22/+0
CR4563:Configure the l2 prefetcher parameter See merge request sdk/u-boot!48
2023-04-07board: starfive: jh7110: Modify cpu voltage set commandsMason Huo1-7/+11
Update the cpu voltage set commands per binning information from OTP. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-04-03board: starfive: jh7110-evb: remove l2 pretcher in borad cfgSamin Guo1-22/+0
It should be configured in L2. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-03-17Merge branch 'CR_4094_evb_515_uboot_logo_keith.zhao' into 'jh7110-master'andy.hu1-1/+2
CR_4094 display: update uboot logo display function: See merge request sdk/u-boot!42
2023-03-17CR_4094 display: update uboot logo display function:keith.zhao1-1/+2
2023-03-09board: starfive: jh7110: Add 1.1 & 1.02v max cpu voltageMason Huo1-1/+9
Add two more binning IC types, and set add their max cpu voltage accordingly. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-02-28board: starfive: jh7110: Add cpu voltage set commandsmason.huo1-0/+36
Get the binning information from OTP, and set change the cpu max voltage accordingly. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-02-17board:riscv:jh7110: modify config for starfive JH7110 boardkeith.zhao1-0/+20
add board_late_init to init display memory config the bitmap picture Signed-off-by:keith.zhao<keith.zhao@statfivetech.com>
2023-01-03misc: OTP: Starfive-jh7110: update the return value of starfive_otp_readYanhong Wang2-2/+2
Update the return value to match the function prototype definition. Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
2022-12-16board:starfive:jh7110: Set the CPU default frequency to 1000MHzSamin Guo1-2/+2
Set to 1000M to ensure the CPU can work normally under 0.8V` voltage Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-11-23board:starfive:Remove usb/sdio0/sdio1 gpio initJianlong Huang1-21/+0
Remove usb/sdio0/sdio1 gpio init. Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-02driver:qspi: Switch the QSPI parent clock to pll0Samin Guo1-1/+4
Switch the QSPI parent clock to pll0 to improve the QSPI speed Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-11-01spl:starfive:jh7110: Improved GMAC0/1 TX I/O PAD capabilitySamin Guo1-15/+30
JH7110B requires a higher IOPAD capability in 1000M mode. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-11-01board:starfive:evb: add get_chip_typeSamin Guo1-1/+27
Read the chip model from the rgpio3 and setenv "chip_vision" 1: jh7110B 0: JH7110A defalut: JH7110A Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-11-01board:starfive:evb: add jh7110_gmac_sel_tx_to_rgmiiSamin Guo1-0/+18
JH7110B needs switch gmac0/1 tx to rgmii phy. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-10-18spl: starfive: jh7110: switch pll2 to 1188MYan Hong Wang1-165/+11
Switch the pll2 clk to 1188M with the comm pll interface on JH7110. Signed-off-by: Yan Hong Wang <yanhong.wang@starfivetech.com>
2022-10-18spl:jh7110: Modify cpu frequency should be before switching pllsamin1-3/+3
Signed-off-by: samin <samin.guo@starfivetech.com>
2022-10-18spl:starfive: Add support for different CPU frequencies.samin1-0/+157
The cpu uses 1.25G by default. Lists of frequencies(MHz): -375/500/625/750/875/1000/1250 -1375/1500/1625/1750/1800 Note: Some frequencies require voltage regulation. Signed-off-by: samin <samin.guo@starfivetech.com>
2022-10-18spl:starfive: remove function spl_cpu_fre_150/125samin1-33/+0
replace them with spl_cpu_set_rate. Signed-off-by: samin <samin.guo@starfivetech.com>