summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-11-29board: starfive: Add TARGET_STARFIVE_VISIONFIVE2 to KconfigHal Feng1-3/+3
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-11-29riscv: cpu: jh7110: Add EEPROM supportHal Feng1-0/+14
Add a header to easily use the EEPROM interface. 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-11-29board: starfive: Add StarFive VisionFive 2 board supportHal Feng11-455/+1954
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-10-18Merge branch 'CR_7842_fix_lenovo_udisk_crash_minda' into 'jh7110-master'andy.hu2-6/+20
CR_7842 usb: fix TRB_TRANSFER return null pointer issue See merge request sdk/u-boot!73
2023-10-18usb: fix TRB_TRANSFER return null pointer issueMinda Chen2-6/+20
xhci_wait_for_event() wait TRB_TRANSFER may return null pointer, shoud checkit avoid crash. Read usb device info maybe failed, should check it and do not register usb device. uboot should rescan usb device and register. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-10-11Merge branch 'usb_fix_duplicate_device_minda' into 'jh7110-master'andy.hu1-0/+3
CR7345 usb: hub: Do NOT add device if portchanged over current bit is set See merge request sdk/u-boot!72
2023-10-10usb: hub: Do NOT add device if portchanged over current bit is setMinda Chen1-0/+3
USB hub should not add the usb devices if over current bit is set in portchange. For later usb_scan_port will still return with error and rescan and add device again. it will generate dulplicated device and cause crash issue. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-09-13Merge branch 'CR_7124_PCIe_Kevin.xie' into 'jh7110-master'andy.hu2-6/+47
CR 7124 PCIe dts & driver: Modified reset & link wait timing for better compatbility. See merge request sdk/u-boot!71
2023-09-13Merge branch 'CR_7420_vf2_fastboot_Xingyu.Wu' into 'jh7110-master'andy.hu1-2/+2
CR_7420_vf2_fastboot_Xingyu.Wu See merge request sdk/u-boot!70
2023-09-13Merge branch 'CR_5472_uboot_mmc0_log_keith.zhao' into 'jh7110-master'andy.hu1-3/+0
CR 5472 vout: logo: emmc log show many times See merge request sdk/u-boot!69
2023-09-11drivers: pci: Update reset & link wait timing as spec required.Kevin.xie1-4/+45
1. Modified reset assert duration to 100ms. 2. Wait 10-100 ms for link training. 3. If link is up, delay 100ms before doing any configuration space access. Reference spec: PCIe Base Spec r6.0 & CEM 2.0. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2023-09-11riscv: dts: Add link state register to PCIe syscon nodes.Kevin.xie1-2/+2
Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2023-09-11cmd: fastboot: Fix failure to enter fastbootXingyu Wu1-2/+2
Only USB host and device are same IP and should be changed mode with initialization before fastboot in Devkits. Add the target of Devkits to math the board. Fixes: 67df54127e38 ("cmd: fastboot: Add presetting on StarFive SoC before fastboot") Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-09-08vout: logo: emmc log show many timesKeith Zhao1-3/+0
the vout clocks on enable status, when no connecters (hdmi or mipi) this will cause emmc init many times need to closed the vout clocks Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
2023-09-07Merge branch 'CR_4615_add_fastboot_Xingyu.Wu' into 'jh7110-master'andy.hu10-1/+167
CR_4615_add_fastboot_Xingyu.Wu See merge request sdk/u-boot!68
2023-09-07common: autoboot: Add auto-fastboot on StarFive SoCXingyu Wu4-1/+75
Add auto-fastboot function before autoboot on StarFive SoC and add a config to enable or disable this. In the auto-fastboot, it check a environment flag of 'fb_sf_completed' first. The flag is NULL and then the fastboot will work. The flag will be set from USB tool to indicate done after flashing the image. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-09-07cmd: fastboot: Add presetting on StarFive SoC before fastbootXingyu Wu1-0/+8
Add the presetting about usb as device in fastboot function. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-09-07drivers: fastboot: Fix the error of writing sparse file with fastbootXingyu Wu3-0/+18
Add config for max block size to write in MMC with sparse file. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-09-07drivers: fastboot: Add logical-block-size in getvar commandXingyu Wu2-0/+19
Add a new parameter to get "logical-block-size" in getvar command. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-09-07driver: fastboot: Add new flag to load image file without partitionXingyu Wu1-0/+47
Add new flag to load image file to preset address without partition. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-09-06Merge branch 'CR_7250_add_usb_device_in_u_boot_minda' into 'jh7110-master'andy.hu3-2/+62
CR_7250 usb: cdns: Add USB device support See merge request sdk/u-boot!67
2023-09-05dts: usb: Add starfive,usb2-only to zeroMinda Chen1-0/+1
Add starfive,usb2-only to zero in evb board. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-08-31usb: cdns: Add USB device supportMinda Chen2-2/+61
Add USB device support. Add dr_num_mode for changing the dr mode number, For changing the strings cause issues. For devkits, If using device, need to changed starfive,usb2-only to 1 and dr_num_mode to 2. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-08-30Merge branch 'CR_7199_add_usb_host_minda' into 'jh7110-master'andy.hu3-13/+246
CR_7199 usb: cdns3: starfive: Add usb driver to support for JH7110 See merge request sdk/u-boot!66
2023-08-30Merge branch 'CR_7136_fix_usb_device_xfer_timeout_minda' into 'jh7110-master'andy.hu1-4/+6
CR_7136 usb: cdns3: Set the SS EP config bit by usb SS speed See merge request sdk/u-boot!65
2023-08-25dts: usb: Add USB 3.0 clock dts.Minda Chen1-0/+15
Add evb USB 3.0 clock dts. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-08-25dts: starfive: devkits: Update usb device tree nodeYanhong Wang1-4/+8
Updated USB Device Tree Node to support USB Device functionality and is consistent with Kernel. Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com> Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-08-25usb: cdns3: starfive: Add usb driver to support for JH7110Yanhong Wang1-9/+223
Add usb driver to support for jh7110. Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com> Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-08-23usb: cdns3: Set the SS EP config bit by usb SS speedMinda Chen1-4/+6
Set SS EP config bit by USB SS speed. Avoid transfer timeout. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-08-16Merge branch 'CR_6370_nvme_sd_boot_samin.guo' into 'jh7110-master'andy.hu3-18/+131
CR6370: riscv: starfive: evb: Optimize boot logic(sd/nvme) See merge request sdk/u-boot!64
2023-08-16riscv: starfive: jh7110-evb: Optimize boot commandsSamin Guo1-1/+2
- Optimize boot commands for jh7110-evb - Add CONFIG_DEFAULT_FDT_FILE for debian boot Signed-off-by: Samin Guo <samin.guo@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-08-16riscv: starfive: evb: Add EVB_SDK_BOOTENVSamin Guo1-0/+10
Add BOOTENV for jh7110 evb Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-08-16riscv: starfive: jh7110: Add JH7110_XX_BOOTENSamin Guo1-0/+111
Add JH7110_DISTRO_BOOTEN/JH7110_SDK_BOOTEN for debian/sdk boot on JH7110 SOC. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-08-16riscv: starfive: evb: remove unused bootenvSamin Guo1-17/+0
will be replaced by the new bootenv Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-07-28Merge branch 'CR_6806_MMC_evb_william.qiu' into 'jh7110-master'andy.hu2-0/+13
CR_6806: spl: starfive: modify driver strength and slew rate See merge request sdk/u-boot!63
2023-07-28riscv: dts: starfive: limit cclk_in frequencyWilliam Qiu1-0/+2
The frequency of cclk_in is limited to 50M, so that it does not do internal part frequency and goes by-pass mode. And delete syscon node. Signed-off-by: William Qiu <william.qiu@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-26Merge branch 'CR_6570_SDBOOT_u-boot_william.qiu' into 'jh7110-master'andy.hu4-2/+113
CR_6570: mmc: starfive: add HS200 support See merge request sdk/u-boot!62
2023-07-26defconfig: starfive: enable HS200 supportWilliam Qiu1-0/+2
enable HS200 support. Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2023-07-26gpio: starfive: Add SET_DS/SET_PULL/SET_SLEW supportSamin Guo1-1/+23
SET_DS/SET_PULL/SET_SLEW can configure the properties of the GPIO Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-07-26Merge branch 'CR_6728_multi_pcis_minda' into 'jh7110-master'andy.hu1-8/+8
CR_6728 pci: Get te correct config addr to support multi PCI See merge request sdk/u-boot!61
2023-07-26mmc: starfive: fix mmc device power-up sequenceWilliam Qiu2-0/+27
fix mmc device power-up sequence. Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2023-07-26mmc: starfive: add HS200 supportWilliam Qiu2-1/+61
Add tuning and other related code to the driver to support HS200 mode. Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2023-07-26pci: Getw correct config addr to support multi PCIMinda Chen1-8/+8
subtract the root bus number to get the correct config addr. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-07-20Merge branch 'CR6648_dram_init_smain.guo' into 'jh7110-master'andy.hu3-3/+7
CR_6648: board: starfive: evb: use dram_init in spl See merge request sdk/u-boot!60
2023-07-20board: starfive: evb: use dram_init in splSamin Guo3-3/+7
dram_init call fdtdec_setup_mem_size_base, so starfive_ddr.c do not need it. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-07-20Merge branch 'CR_6604_1G_DDR_SYNC_samin.guo' into 'jh7110-master'andy.hu9-108/+2809
CR6604:dram: jh7110: sync from devkits/vf2 See merge request sdk/u-boot!59
2023-07-19Merge branch 'CR_6572_evb_uboot_hdmi_blank_panel_keith.zhao' into ↵andy.hu5-12/+176
'jh7110-master' CR 6572 uboot: hdmi logo causes kernel hdmi unstable See merge request sdk/u-boot!58
2023-07-19board: starfive: evb: Add dynamic CMA adjustment schemeSamin Guo2-0/+46
Synchronize from vf2 to the dynamic CMA scheme Signed-off-by: Samin Guo <samin.guo@starfivetech.com>