summaryrefslogtreecommitdiff
path: root/include/configs/starfive-visionfive2.h
AgeCommit message (Collapse)AuthorFilesLines
2023-08-16riscv: starfive: vf2: Add VF2_SDK_BOOTENVSamin Guo1-0/+10
Add BOOTENV for visionfive 2 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: vf2: remove unused BOOTENVSamin Guo1-101/+0
These bootenvs do not apply with multiple boots Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-08-16riscv: starfive: vf2: remove CHIPA_SET_FORCESamin Guo1-10/+0
CHIPA_SET_FORCE is for debug and no need any more. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-07-10board: starfive: vf2: Adjust the CMA size adaptivelySamin Guo1-1/+34
Adaptively adjust the CMA size according to the DDR size Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-07-10board: starfive: vf2: Optimize environment variablesSamin Guo1-5/+4
Optimized environment variables for debian boot Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-07-10borad: starfive: vf2: Resize the address spaceSamin Guo1-22/+11
Readjust the address space for 1G DDR Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-07-07borad: starfive: vf2: Optimized kernel_comp_addr_r and kernel_comp_sizeSamin Guo1-2/+2
Usually, kernel_comp_size only need 0x4000000. Optimize kernel_comp_addr_r for better compatibility with 1G DDR situations. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-06-02board: starfive: jh7110: Add support for 1.25GHz chipsMason Huo1-30/+30
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-05-31VisionFive 2: Add default device tree overlay addressVF2_v3.0.4MichaIng1-0/+1
This is needed for device tree overlays to work when adding them via "fdtoverlays /path/to/overlay.dtbo" to extlinux.conf. Of course this can be also set in uEnv.txt, but this U-Boot build reads that environment file from partition 3 with FAT filesystem only, which makes this an unnecessary limitation. Also, this variable is listed as mandatory in upstream U-Boot docs: https://github.com/u-boot/u-boot/blob/master/doc/develop/distro.rst#required-environment-variables To allow using device tree overlays on the VisionFive 2, including the one shipped with StarFive's own kernel build, via extlinux in a generic and upstream-compatible way, this variable is hereby added. The used address is sufficiently distant from the initramfs address, also in case 0x48100000 is used (override via uEnv.txt in StarFive's Debian image). Signed-off-by: MichaIng <micha@dietpi.com>
2023-05-31VisionFive 2: Add default compressed kernel addressMichaIng1-0/+2
The default U-Boot environment does not provide kernel_comp_addr_r and kernel_comp_size, needed when using a compressed kernel image. These variables are listed as mandatory in upstream U-Boot to allow this feature without needed user configuration: https://github.com/u-boot/u-boot/blob/master/doc/develop/distro.rst#required-environment-variables The values are taken from the uEnv.txt shipped by StarFive's own Debian images, which does use a gzip-compressed kernel image hence proven to be valid. Adding those values to the U-Boot default environment allows them to be removed from the dedicated uEnv.txt and enables support for compressed kernel images independent of the used uEnv.txt or whether one is used at all. Signed-off-by: MichaIng <micha@dietpi.com>
2023-05-02Added booting from nvme support for debianClement1-8/+28
Signed-off-by: Clement <clement@starfivetech.com>
2023-04-07board: starfive: jh7110: Modify cpu voltage set commandsMason Huo1-2/+9
Update the cpu voltage set commands per binning information from OTP. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-03-30configs: starfive: add nvme boot commandshanlong.li1-17/+32
add nvme boot command Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2023-03-19Merge branch 'CR_4117_vf2_sysboot_add_cpuvolset' into 'vf2-devel'andy.hu1-0/+1
CR_4117: Added cpu_vol_set to distro sysboot flow See merge request sbc/u-boot!42
2023-03-19Merge branch 'CR_3910_Add_cpu_vol_mason.huo' into 'vf2-devel'andy.hu1-1/+15
CR_3910 board: starfive: jh7110: Add 1.1 & 1.02v max cpu voltage See merge request sbc/u-boot!39
2023-03-17Added cpu_vol_set to distro sysboot flowClement1-0/+1
Signed-off-by: Clement <clement@starfivetech.com>
2023-03-17display: update uboot logo display function:keith.zhao1-0/+4
1. the current default support 8bpp bitmap expansion to 8, 16, 24, 32bpp bitmap 2. Set the logo display position to center from the upper left corner by default 3. Optimize the logo replacement process Signed-off-by: keith <keith.zhao@starfivetech.com>
2023-03-15board:riscv:jh7110: modify config for starfive JH7110 boardkeith.zhao1-1/+3
add board_late_init to init display memory config the bitmap picture Signed-off-by: keith.zhao<keith.zhao@statfivetech.com>
2023-03-09board: starfive: jh7110: Add 1.1 & 1.02v max cpu voltageMason Huo1-1/+15
Add two more binning IC types, and set add their max cpu voltage accordingly. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-03-03pci: Remove power pin per VF2 HW designMason Huo1-0/+2
Remove the power pin for VF2, the PCIe power pin is hard wired to high. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-02-28board: starfive: jh7110: Add cpu voltage set commandsMason Huo1-0/+26
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-24CR_3534: board:starfive:visionfive2: restructure load_distro_uenvJun Yuan Tan1-8/+3
Moving forward, partition 2 will not be used as boot partition for Debian image. Hence, remove the if else structure and only sets partition 3 as boot partition. Signed-off-by: Jun Yuan Tan <junyuan.tan@starfivetech.com>
2023-02-23CR_3534: board:starfive:visionfive2 change fatbootpart to default 1:3Clement1-9/+9
added backslash to prevent extra word to the parameter Signed-off-by: Clement <clement@starfivetech.com>
2023-02-22board:starfive:visionfive2: remove bootdir that cause extra /bootClement1-8/+8
Signed-off-by: Clement <clement@starfivetech.com>
2023-02-21board:starfive:visionfive2: Configure sysboot to find rootfs partitionJun Yuan Tan1-1/+8
'load_distro_uenv' will now search for uEnv.txt in the boot partition to determine which rootfs partition to boot (either p3 or p4). Signed-off-by: Jun Yuan Tan <junyuan.tan@starfivetech.com>
2022-12-27board:starfive:visionfive2: fix vf2 set memory for 4G and 8G dynamicallyClement1-4/+3
set memory for both 8G and 4G depending on board information Signed-off-by: Clement <clement@starfivetech.com>
2022-12-16board:starfive:visionfive2: configure vf2 for sysboot methodClement1-0/+29
Dynamically edit dtb to load correct hardware information and uses sysboot method to boot to distro Signed-off-by: Clement <clement@starfivetech.com>
2022-11-09borad:jh7110:vf2: Modify ramdisk_addr_r/pxefile_addr_r/scriptaddrSamin Guo1-4/+4
The jh7110 ddr starts from 0x40000000. Using 0x80000000 may cause the CMA space to fail Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-11-03riscv:starfive:jh7110: change gmac0 tx delay to 0x9 for 1.2A.Samin Guo1-0/+1
0x9 will better match 1.2A gmac0 tx in 1000M Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-11-03board:starfive:visionfive2: Adaptive mem size in linux.Samin Guo1-0/+7
Visionfive2 has a 2/4/8G version. You need to read eeprom information in uboot to obtain the size of mem, and modify the size of mem in linux dts. Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03board:starfive:visionfive2: Support using env to detect board versionSamin Guo1-0/+33
JH7110A do not need tx_inverted by YT8531 phy, you need to read the chip version to determine whether to use it. Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03board: starfive: move eeprom macro definitionYanhong Wang1-38/+0
Move eeprom macro definition form h file to c. Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
2022-11-03Support boot from grubJianlong Huang1-11/+32
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03Support scan to boot from sd card or emmcJianlong Huang1-0/+15
Get bootmode, if bootmode is flash, then default boot from sd card. Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03configs: starfive_visionfive2_defconfig: Support saveenvJianlong Huang1-3/+0
Add saveenv config to Support saveenv Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03add ID_EEPROM supoort for VisionFive2Jianlong Huang1-0/+38
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03board: starfive: Support visionfive2Jianlong Huang1-0/+143
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>