aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2023-08-28 23:44:52 +0100
committerDaniel Golle <daniel@makrotopia.org>2023-09-04 23:00:35 +0100
commita2ffbc8d1604bf0e71962c76ec4e7feec5fda102 (patch)
treed4e1fed589754c0312451afd1bfc2366639b5efb
parentd052d409a0689574b798cb6544ec6c7edd88d38f (diff)
downloadupstream-a2ffbc8d1604bf0e71962c76ec4e7feec5fda102.tar.gz
upstream-a2ffbc8d1604bf0e71962c76ec4e7feec5fda102.tar.bz2
upstream-a2ffbc8d1604bf0e71962c76ec4e7feec5fda102.zip
arm-trusted-firmware-mediatek: enable built-in 2.5G PHY on MT7988
Always enable built-in 2.5G PHY on MT7988 for now, so that it can be used. In future it would be nice to be able to switch power and MDIO access via address 0 at run-time in Linux, both, to be able to use external PHYs at address 0 and to reduce power consumption on systems not using the built-in 2.5G PHY. Signed-off-by: Daniel Golle <daniel@makrotopia.org> (cherry picked from commit 33046d2a471ed687404a617c356b9cdf5652c2d6)
-rw-r--r--package/boot/arm-trusted-firmware-mediatek/patches/001-mt7988-enable-2p5g-phy.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/boot/arm-trusted-firmware-mediatek/patches/001-mt7988-enable-2p5g-phy.patch b/package/boot/arm-trusted-firmware-mediatek/patches/001-mt7988-enable-2p5g-phy.patch
new file mode 100644
index 0000000000..d377bd8433
--- /dev/null
+++ b/package/boot/arm-trusted-firmware-mediatek/patches/001-mt7988-enable-2p5g-phy.patch
@@ -0,0 +1,11 @@
+--- a/plat/mediatek/mt7988/bl2/bl2_plat_init.c
++++ b/plat/mediatek/mt7988/bl2/bl2_plat_init.c
+@@ -90,6 +90,8 @@ static void mtk_i2p5g_phy_init(void)
+ * clear bit 22 to use external MDIO.
+ */
+ mmio_setbits_32(GBE_TOP_REG, I2P5G_MDIO);
++ /* Internal 2.5Gphy power on sequence */
++ eth_2p5g_phy_mtcmos_ctrl(true);
+ }
+
+ static void mt7988_i2c_init(void)