ramips: mt7620: add rgmii delays support
[openwrt/staging/mkresin.git] / target / linux / ramips / files-4.14 / drivers / net / ethernet / mediatek / gsw_mt7620.h
index 555a586c405eb92706a1bcdeb6d59331e353fecc..03d030446a53c8261bfc4eb41f708a4ae914fcff 100644 (file)
 #define GSW_REG_IMR            0x7008
 #define GSW_REG_ISR            0x700c
 #define GSW_REG_GPC1           0x7014
+#define GSW_REG_GPC2           0x701c
+
+#define GSW_REG_GPCx_TXDELAY   BIT(3)
+#define GSW_REG_GPCx_RXDELAY   BIT(2)
 
 #define GSW_REG_MAC_P0_MCR     0x100
 #define GSW_REG_MAC_P1_MCR     0x200