summaryrefslogtreecommitdiff
path: root/board/ti/j784s4/j784s4.env
diff options
context:
space:
mode:
authorSiddharth Vadapalli <s-vadapalli@ti.com>2023-08-21 11:05:53 +0530
committerUdit Kumar <u-kumar1@ti.com>2023-09-29 22:07:25 +0530
commit7b05d6f21a2e3bf4ad546715139986bcd98f7628 (patch)
tree4d6ce3eaf629486c379fc2ac5f4ee5d8333ce6f8 /board/ti/j784s4/j784s4.env
parentd428fb483e01311a3d755bc6cfad11eafb5d32e8 (diff)
board: ti: j784s4: Add support to reset Ethernet PHY
The Ethernet PHY on the QSGMII daughtercard connected to the ENET Expansion 1 Slot on J784S4 EVM has to be powered on and reset for use by Ethernet Switch Firmware (EthFw). This can be achieved using gpio commands. Since EthFw has to be loaded at U-Boot on the MCU2_0 core, the "dorprocboot" environment variable is set for such usecase. Thus, run the commands to power on and reset the Ethernet PHY conditionally based on the value of the "dorprocboot" variable using gpio commands. Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com> Acked-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
Diffstat (limited to 'board/ti/j784s4/j784s4.env')
-rw-r--r--board/ti/j784s4/j784s4.env13
1 files changed, 13 insertions, 0 deletions
diff --git a/board/ti/j784s4/j784s4.env b/board/ti/j784s4/j784s4.env
index 916f376bea..651abea8e2 100644
--- a/board/ti/j784s4/j784s4.env
+++ b/board/ti/j784s4/j784s4.env
@@ -28,6 +28,19 @@ bootpart=1:2
bootdir=/boot
rd_spec=-
+#if CONFIG_TARGET_J784S4_A72_EVM
+do_main_cpsw0_qsgmii_phyinit=1
+init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17;
+ gpio clear gpio@22_16
+main_cpsw0_qsgmii_phyinit=
+ if test $board_name = j784s4; then
+ do_main_cpsw0_qsgmii_phyinit=1; else
+ do_main_cpsw0_qsgmii_phyinit=0; fi;
+ if test ${do_main_cpsw0_qsgmii_phyinit} -eq 1 && test ${dorprocboot} -eq 1 && test ${boot} = mmc; then
+ run init_main_cpsw0_qsgmii_phy;
+ fi;
+#endif
+
rproc_fw_binaries= 2 /lib/firmware/j784s4-main-r5f0_0-fw 3 /lib/firmware/j784s4-main-r5f0_1-fw 4 /lib/firmware/j784s4-main-r5f1_0-fw 5 /lib/firmware/j784s4-main-r5f1_1-fw 6 /lib/firmware/j784s4-main-r5f2_0-fw 7 /lib/firmware/j784s4-main-r5f2_1-fw 8 /lib/firmware/j784s4-c71_0-fw 9 /lib/firmware/j784s4-c71_1-fw 10 /lib/firmware/j784s4-c71_2-fw 11 /lib/firmware/j784s4-c71_3-fw
splashfile=ti.gz