Browse Source

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>
Samin Guo 1 year ago
parent
commit
9b8509bfef
1 changed files with 7 additions and 0 deletions
  1. 7 0
      board/starfive/visionfive2/spl.c

+ 7 - 0
board/starfive/visionfive2/spl.c

@@ -100,6 +100,13 @@ void board_init_f(ulong dummy)
 	clrsetbits_le32(AON_IOMUX_BASE + 0x84, 0x3, BIT(0) & 0x3);
 	clrsetbits_le32(AON_IOMUX_BASE + 0x88, 0x3, BIT(0) & 0x3);
 
+	/* Improved GMAC1 TX I/O PAD capability */
+	clrsetbits_le32(SYS_IOMUX_BASE + 0x26c, 0x3, BIT(0) & 0x3);
+	clrsetbits_le32(SYS_IOMUX_BASE + 0x270, 0x3, BIT(0) & 0x3);
+	clrsetbits_le32(SYS_IOMUX_BASE + 0x274, 0x3, BIT(0) & 0x3);
+	clrsetbits_le32(SYS_IOMUX_BASE + 0x278, 0x3, BIT(0) & 0x3);
+	clrsetbits_le32(SYS_IOMUX_BASE + 0x27c, 0x3, BIT(0) & 0x3);
+
 	/*set GPIO to 3.3v*/
 	setbits_le32(SYS_SYSCON_BASE + 0xC, 0x0);