diff options
author | Atlas Luo <atlas.luo@starfivetech.com> | 2025-09-15 10:20:26 +0300 |
---|---|---|
committer | Atlas Luo <atlas.luo@starfivetech.com> | 2025-09-15 10:20:26 +0300 |
commit | c4c67bb66ae6f41c98537d18cf5c3abc8b97b8e4 (patch) | |
tree | 40ed4718687acfff454da8b8fdf00e9750602f6e /board/starfive | |
parent | 32bcc481f0024c37ce6f6ca7ac55898b9bb24510 (diff) | |
parent | ca8220836b68e917a4070f68d4ab0709f361426e (diff) | |
download | u-boot-JH7110_VisionFive2_devel.tar.xz |
Merge branch 'CR_20240_usb_dts_hal.feng' into 'jh7110-master'HEADJH7110_VF2_6.12_v6.0.0JH7110_VisionFive2_devel
CR_20240_usb_dts_hal.feng
See merge request sdk/u-boot!117
Diffstat (limited to 'board/starfive')
-rw-r--r-- | board/starfive/visionfive2/starfive_visionfive2.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/board/starfive/visionfive2/starfive_visionfive2.c b/board/starfive/visionfive2/starfive_visionfive2.c index 2b1f4f87e0..a58d3e164b 100644 --- a/board/starfive/visionfive2/starfive_visionfive2.c +++ b/board/starfive/visionfive2/starfive_visionfive2.c @@ -441,11 +441,17 @@ int board_late_init(void) int ret, offset; u8 mac0[6], mac1[6]; u64 share_ram_addr; - ulong vf2_board_type; + ulong vf2_board_type = env_get_ulong("vf2_board_type", 10, 0); get_boot_mode(); get_mmc_size_from_eeprom(); + if (vf2_board_type == 2) { + /* gpio62 output low level for switching usb to host by default */ + SYS_IOMUX_DOEN(62, LOW); + SYS_IOMUX_DOUT(62, 0); + } + jh7110_gmac_init(get_chip_type(), get_board_type()); /* * save the memory info by environment variable in u-boot, @@ -459,7 +465,6 @@ int board_late_init(void) if (ret) return ret; - vf2_board_type = env_get_ulong("vf2_board_type", 10, 0); if (vf2_board_type == 2) ret = video_bmp_display(dev, (ulong)&vf2_lite_bmp_logo_bitmap[0], BMP_ALIGN_CENTER, BMP_ALIGN_CENTER, true); else |