Add different domain in dts node for sbi boot and disable
gmac1 node.
make DEVICE_TREE=starfive_jh7110-amp to build
uboot amp image.
Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
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>
to fix vf2 kernel 6.6 mipi bug #9706 (startup crash or mipi cannot display)
-add mipi remove process to solve bug of mipi display
-drop dc interrupt of vf2 uboot to solve startup crash
Signed-off-by: Shengyang Chen <shengyang.chen@starfivetech.com>
Change the default fdt file from "jh7110-visionfive-v2.dtb"
to "jh7110-starfive-visionfive-2-v1.3b.dtb", for sync with
linux mainline.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
If gmac_conf_new = 1, apply the new gmac configuration in linux v6.6+.
If gmac_conf_new = 0, apply the old gmac configuration.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
With this patch, you can specify dtb to bootup kernel,
using fdtdir in ${boot_syslinux_conf}.
Generally boot_syslinux_conf=extlinux/extlinux.conf
Signed-off-by: Yingpeng Liu <yingpeng.liu@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
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>
Make the code be compatible with the StarFive Devkits board.
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
Signed-off-by: Shengyang Chen <shengyang.chen@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
As drivers/video/raydium-rm68200-starfive.c is renamed to
drivers/video/starfive_seeed_panel.c, change the dts accordingly.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
Signed-off-by: Shengyang Chen <shengyang.chen@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
Signed-off-by: Shengyang Chen <shengyang.chen@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
For the devkit board, PCIe sideband signals
are controled by external gpios, use gpio
direct control instead of pinctrl.
Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
In order to dynamically adjust the phy clock delay configuration, so
move ytphy_of_config function call to startup function.
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
For devkit HW design, there is not GPIO specific
for the usb controller overcurrent signal.
Config the sys iomux register to hardwire this
signal, so that the usb controller can work normally.
Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
Correct the parent of i2c clocks and add full i2c clocks.
The code mainly is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Add a defconfig file for StarFive JH7110 Devkits board.
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Add device tree for StarFive JH7110 Devkits board.
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
To be compatible with the Devkits board.
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
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>
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>
Make the code be compatible with the StarFive VisionFive 2 board.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Make the code be compatible with the StarFive VisionFive 2 board.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.
Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Make the code be compatible with the StarFive VisionFive 2 board.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.
Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Make the code be compatible with the StarFive VisionFive 2 board.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Rename CONFIG_SYS_DEF_EEPROM_ADDR to CONFIG_SYS_I2C_EEPROM_ADDR
based on current usage.
Convert CONFIG_SYS_I2C_EEPROM_BUS, CONFIG_SYS_I2C_EEPROM_ADDR_LEN,
CONFIG_SYS_EEPROM_SIZE, CONFIG_SYS_EEPROM_PAGE_WRITE_BITS and
CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS to Kconfig.
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
This patch fixs parse_numeric_param issue on some platfrom which has
different sizes of int and long, like riscv64.
On riscv64, int is 4 bytes, but long is 8 bytes.
on this situation:
ulong addr = parse_numeric_param(argv[index]);
if argv[index] is "0x80000000", this "ulong addr" will be
0xffffffff80000000.
Signed-off-by: Jianlong.Huang <jianlong.huang@starfivetech.com>
Co-developed-by: Wei Fu <wefu@redhat.com>
Signed-off-by: Wei Fu <wefu@redhat.com>
This adds support for new RISCV_EFI_BOOT_PROTOCOL to
communicate the boot hart ID to bootloader/kernel on RISC-V
UEFI platforms.
The specification of the protocol is hosted at:
https://github.com/riscv-non-isa/riscv-uefi
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Add a defconfig file for StarFive VisionFive 2 board.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Add device tree for StarFive VisionFive 2 board.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
To be compatible with the VisionFive 2 board.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>