summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSamin Guo <samin.guo@starfivetech.com>2022-11-01 04:59:05 +0300
committerSamin Guo <samin.guo@starfivetech.com>2022-11-01 13:54:21 +0300
commitbd7deb0588459f36cf774ed58a419a7efbc9d5e4 (patch)
treedb3939676589cd3852ab48ec57908ccacb918ac1 /arch
parent460fe5dd0b3a288eb58bee6874683288bef671ce (diff)
downloadu-boot-bd7deb0588459f36cf774ed58a419a7efbc9d5e4.tar.xz
board:starfive:evb: add jh7110_gmac_sel_tx_to_rgmii
JH7110B needs switch gmac0/1 tx to rgmii phy. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/include/asm/arch-jh7110/jh7110-regs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/arch-jh7110/jh7110-regs.h b/arch/riscv/include/asm/arch-jh7110/jh7110-regs.h
index 4b29d03d26..6a2b67bb3c 100644
--- a/arch/riscv/include/asm/arch-jh7110/jh7110-regs.h
+++ b/arch/riscv/include/asm/arch-jh7110/jh7110-regs.h
@@ -25,8 +25,16 @@
#define SYS_SYSCON_144 0x90U
#define GMAC5_0_SEL_I_SHIFT 0x12U
#define GMAC5_0_SEL_I_MASK 0x1C0000U
+#define GMAC5_0_CLK_TX_SHIFT 0x14
+#define GMAC5_0_CLK_RX_SHIFT 0x1C
+#define GMAC5_0_CLK_TX_BIT 0x18
+#define GMAC5_0_CLK_TX_MASK 0x1000000U
#define GMAC5_1_SEL_I_SHIFT 0x2U
#define GMAC5_1_SEL_I_MASK 0x1CU
+#define GMAC5_1_CLK_TX_SHIFT 0x1A4
+#define GMAC5_1_CLK_RX_SHIFT 0x19C
+#define GMAC5_1_CLK_TX_BIT 0x18
+#define GMAC5_1_CLK_TX_MASK 0x1000000U
/*usb cfg*/
#define STG_SYSCON_4 0x4U