Commit graph

14643 commits

Author SHA1 Message Date
172b47f620 Update u-boot to 3.0.4 release 2023-06-06 00:23:55 +08:00
ce3fd04a79
Merge branch 'starfive-tech:JH7110_VisionFive2_devel' into Star64 2023-06-05 22:33:48 +08:00
Andy Hu
7778152612 Merge tag 'JH7110_515_SDK_v4.8.2' into vf2-devel 2023-04-28 11:22:44 +08:00
Yanhong Wang
fe8426ebb0 board: starfive: copyright: Standardize the copyright format
Unify the content format of the copyright section

Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
2023-04-23 11:19:47 +08:00
c71fa7376f Add Star64 Board Support (Copied from VF2) 2023-04-16 07:17:57 +08:00
andy.hu
66e4af9302 Merge branch 'CR_4563_memcpy_samin.guo' into 'vf2-devel'
CR4563:   Configure the l2 prefetcher parameter

See merge request sbc/u-boot!47
2023-04-07 15:21:02 +00:00
andy.hu
e4e25e8532 Merge branch 'CR_3910_Modify_cpu_vol_mason.huo' into 'vf2-devel'
CR_3910  Modify cpu voltage set commands

See merge request sbc/u-boot!48
2023-04-07 15:20:08 +00:00
ah
656e49f3f7 Merge tag 'JH7110_515_SDK_v4.7.0' into vf2-devel
version JH7110_515_SDK_v4.7.0 for JH7110 EVB board

1. #3910: u-boot: update cpu voltage set commands per binning information from OTP
2. #4563: u-boot: configure the l2 prefetcher
2023-04-07 23:06:17 +08:00
andy.hu
6f85c682b9 Merge branch 'CR_4563_memcpy_samin.guo' into 'jh7110-master'
CR4563:Configure the l2 prefetcher parameter

See merge request sdk/u-boot!48
2023-04-07 11:30:48 +00:00
Mason Huo
fcbb415e06 board: starfive: jh7110: Modify cpu voltage set commands
Update the cpu voltage set commands per
binning information from OTP.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-04-07 10:30:39 +08:00
Mason Huo
c8f3d1842a board: starfive: jh7110: Modify cpu voltage set commands
Update the cpu voltage set commands per
binning information from OTP.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-04-07 09:57:01 +08:00
Samin Guo
d72ca8695b board: starfive: jh7110-vf2: remove l2 pretcher in borad cfg
It should be configured in L2.

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-04-03 11:44:56 +08:00
Samin Guo
0c7da4bebe board: starfive: jh7110-evb: remove l2 pretcher in borad cfg
It should be configured in L2.

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-04-03 11:26:35 +08:00
andy.hu
1d1c7237f2 Merge branch 'CR_3910_Add_cpu_vol_mason.huo' into 'vf2-devel'
CR_3910 board: starfive: jh7110: Add 1.1 & 1.02v max cpu voltage

See merge request sbc/u-boot!39
2023-03-19 09:17:18 +00:00
Andy Hu
d72f5788df Merge tag 'JH7110_515_SDK_v4.5.1' into vf2-devel
version JH7110_515_SDK_v4.5.1 for JH7110 EVB board

1. #4094: u-boot: update uboot logo display function
2. #3910: u-boot: add 1.1 & 1.02v max cpu voltage to enhance cpu binning voltage type
2023-03-19 17:14:03 +08:00
andy.hu
6be2d0ba53 Merge branch 'CR_4094_evb_515_uboot_logo_keith.zhao' into 'jh7110-master'
CR_4094 display: update uboot logo display function:

See merge request sdk/u-boot!42
2023-03-17 10:29:01 +00:00
keith.zhao
fc2ce6b33e CR_4094 display: update uboot logo display function: 2023-03-17 10:29:01 +00:00
keith.zhao
551417313a display: update uboot logo display function:
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-17 10:42:47 +08:00
keith.zhao
02a3a4e50f board:riscv:jh7110: modify config for starfive JH7110 board
add board_late_init to init display memory
config the bitmap picture

Signed-off-by: keith.zhao<keith.zhao@statfivetech.com>
2023-03-15 02:10:22 -07:00
Mason Huo
98b917bd0c board: starfive: jh7110: Add 1.1 & 1.02v max cpu voltage
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-09 16:57:41 +08:00
Mason Huo
2f68eec8b4 board: starfive: jh7110: Add 1.1 & 1.02v max cpu voltage
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-09 16:21:32 +08:00
Andy Hu
76a21be82b Merge tag 'JH7110_515_SDK_v4.4.0' into vf2-devel
version JH7110_515_SDK_v4.4.0 for JH7110 EVB board

1. #3696: uboot: adjust cpu vol through reading cpu information from otp
2023-03-03 10:56:18 +08:00
Mason Huo
8847bc69aa board: starfive: jh7110: Add cpu voltage set commands
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-28 18:56:09 +08:00
mason.huo
be22331391 board: starfive: jh7110: Add cpu voltage set commands
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-28 17:39:45 +08:00
Andy Hu
3e2efaef09 Revert "Merge tag 'JH7110_515_SDK_v4.3.0' into vf2-devel"
This reverts commit 5d4dcdb90d, reversing
changes made to da9a5b042e.
2023-02-24 10:09:03 +08:00
Andy Hu
5d4dcdb90d Merge tag 'JH7110_515_SDK_v4.3.0' into vf2-devel
version JH7110_515_SDK_v4.3.0 for JH7110 EVB board
1. Fix hibernation issue: mmc
2. #3345 uboot: support mipi dsi display logo
3. #3145 linux: pci: Add PHY settings in pcie host driver.
4. #3349 linux: crypto: Remove AES key zeroization
5. #3477 spl_tool add LICENSE file
2023-02-20 10:33:53 +08:00
keith.zhao
e8f2e8b73c board:riscv:jh7110: modify config for starfive JH7110 board
add board_late_init to init display memory
config the bitmap picture

Signed-off-by:keith.zhao<keith.zhao@statfivetech.com>
2023-02-16 22:14:52 -08:00
Yanhong Wang
274d5c2829 configs: starfive-jh7110: update the value of CONFIG_SYS_MALLOC_F_LEN
Update the value of CONFIG_SYS_MALLOC_F_LEN from 0x8000 to 0x10000.

Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
2023-01-09 15:21:14 +08:00
Andy Hu
39d244aa2d Merge tag 'JH7110_515_SDK_v4.0.0-rc1' into vf2-devel
version JH7110_515_SDK_v4.0.0-rc1 for JH7110 EVB board
1. #2828 support linux perf tool
2. #3049 merge hibernation branch to SDK
3. #2708 uboot support vout clk driver
4. #3006 uboot handle OTP return value
5. #2969, #3039 venc jpu fix futex issue
2023-01-07 22:41:19 +08:00
Yanhong Wang
4db1f73604 misc: OTP: Starfive-jh7110: update the return value of starfive_otp_read
Update the return value to match the function prototype definition.

Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
2023-01-03 10:24:26 +08:00
Andy Hu
7f2ab48f30 Merge tag 'JH7110_515_SDK_v3.5.1' into vf2-devel
version JH7110_515_SDK_v3.5.1 for JH7110 EVB board
2022-12-19 15:02:16 +08:00
Samin Guo
7d9dc1ff10 board:starfive:vf2: Set the CPU default frequency to 1000MHz
Set to 1000M to ensure the CPU can work normally under 0.8V voltage

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-12-19 11:41:08 +08:00
Samin Guo
699c0a8034 board:starfive:jh7110: Set the CPU default frequency to 1000MHz
Set to 1000M to ensure the CPU can work normally under 0.8V`
voltage

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-12-16 13:58:17 +08:00
Jianlong Huang
5ac796ddda board:starfive:Visionfive2 Remove uart0/sdio0/sdio1
Visionfive2 Remove uart0/sdio0/sdio1

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-27 13:26:40 +08:00
Jianlong Huang
61bf5e0495 Merge tag 'JH7110_515_SDK_v3.2.0' into vf2-devel
version JH7110_515_SDK_v3.2.0 for JH7110 EVB board
2022-11-26 15:48:28 +08:00
Jianlong Huang
4cc82557a5 board:starfive:Remove usb/sdio0/sdio1 gpio init
Remove usb/sdio0/sdio1 gpio init.

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-23 11:39:26 +08:00
Jianlong Huang
fb41a40982 board:starfive:Modify GPIO_SD_SHIFT to GPIO_DS_SHIFT
Modify GPIO_SD_SHIFT to GPIO_DS_SHIFT.
Fix jh7110_gpio_init function.

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-20 11:38:37 +08:00
Jianlong Huang
226b62f65e board:starfive:Add gpio init
Fixing don't detect wm8960 occasionally
Set scl/sda gpio output enable
Set drive strength to 12mA
Set gpio pull up

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-18 18:00:30 +08:00
Jianlong Huang
c42307e563 qspi: improve qspi speed
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03 16:31:42 +08:00
Samin Guo
2a54b81bca board:starfive:visionfive2: setenv uboot_fdt_addr
It is more convenient to dynamically modify uboot dts

Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03 16:31:42 +08:00
Samin Guo
b249d3bac3 board:starfive:visionfive2: Modify jh7110_gmac_init
JH7110B(chip_vision B) need switch gmac tx clk to rgmii phy.

Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03 16:31:42 +08:00
Samin Guo
48c7e4f1d0 board:starfive:visionfive2: add get_chip_type
Read the chip model from the eerpom and setenv "chip_vision"

Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03 16:31:42 +08:00
Samin Guo
d4b261737e board:starfive:visionfive2: add jh7110_gmac_sel_tx_to_rgmii
JH7110B needs switch gmac0/1 tx to rgmii phy.

Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03 16:31:42 +08:00
Samin Guo
9b8509bfef spl:starfive:jh7110: Improved GMAC1 TX I/O PAD capability
JH7110B requires a higher IOPAD capability in 1000M mode.

Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03 16:31:42 +08:00
Samin Guo
b949c9b66c spl:starfive:jh7110: Improved GMAC0 TX I/O PAD capability
JH7110B requires a higher IOPAD capability in 1000M mode.

Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03 16:31:42 +08:00
Yanhong Wang
d4cfd564c2 board: starfive: visionfive2: add memory_addr and memory_size environment variable
In order to compatible visionfive2 board with different version,so the
memory size information read from eeprom. and save to environment
variable. The value which saved in environment variable  will be used
to update the memory node in dts.

Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
2022-11-03 16:31:42 +08:00
Yanhong Wang
0cb0bb697c SPL: starfive: jh7110: add i2c init in SPL
Add basic init before used by other modules in SPL.

Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
2022-11-03 16:31:42 +08:00
Yanhong Wang
1fefd07925 board: starfive: move eeprom macro definition
Move eeprom macro definition form h file to c.

Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
2022-11-03 16:31:41 +08:00
Jianlong Huang
a25a1eb135 board: starfive: Add interface to get data from eeprom
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03 16:31:41 +08:00
Jianlong Huang
bdae9f6eae spl: starfive: jh7110: switch pll2 to 1188M
Switch the pll2 clk to 1188M with the comm pll interface on JH7110.

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03 16:31:41 +08:00