summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/starfive/visionfive2/starfive_visionfive2.c9
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