Lines Matching +full:sync +full:- +full:2
1 /* SPDX-License-Identifier: GPL-2.0 */
26 dev_info(priv->dev, format, ## __VA_ARGS__); \
32 dev_err(priv->dev, format, ## __VA_ARGS__); \
38 dev_dbg(priv->dev, format, ## __VA_ARGS__); \
44 dev_notice(priv->dev, format, ## __VA_ARGS__); \
60 #define CPSW_SLAVE_PORTS_NUM 2
105 #define CPSW_RX_VLAN_ENCAP BIT(2)
110 #define CPSW_FIFO_RATE_LIMIT_MODE (2 << 16)
115 #define CPSW_CMINTMIN_CNT 2
119 #define IRQ_NUM 2
127 #define CPSW_FIFO_SHAPERS_NUM (CPSW_TC_NUM - 1)
132 #define CPSW_RX_VLAN_ENCAP_HDR_PRIO_MSK GENMASK(2, 0)
185 #define CPSW1_TS_CTL 0x14 /* Time Sync Control */
186 #define CPSW1_TS_SEQ_LTYPE 0x18 /* Time Sync Sequence ID Offset and Msg Type */
187 #define CPSW1_TS_VLAN 0x1c /* Time Sync VLAN1 and VLAN2 */
196 #define CPSW2_TS_SEQ_MTYPE 0x1c /* Time Sync Sequence ID Offset and Msg Type */
215 #define VLAN_LTYPE2_EN BIT(21) /* VLAN LTYPE 2 enable */
218 #define TS_107 BIT(15) /* Tyme Sync Dest IP Address 107 */
219 #define TS_320 BIT(14) /* Time Sync Dest Port 320 enable */
220 #define TS_319 BIT(13) /* Time Sync Dest Port 319 enable */
221 #define TS_132 BIT(12) /* Time Sync Dest IP Addr 132 enable */
222 #define TS_131 BIT(11) /* Time Sync Dest IP Addr 131 enable */
223 #define TS_130 BIT(10) /* Time Sync Dest IP Addr 130 enable */
224 #define TS_129 BIT(9) /* Time Sync Dest IP Addr 129 enable */
225 #define TS_TTL_NONZERO BIT(8) /* Time Sync Time To Live Non-zero enable */
226 #define TS_ANNEX_F_EN BIT(6) /* Time Sync Annex F enable */
227 #define TS_ANNEX_D_EN BIT(4) /* Time Sync Annex D enable */
228 #define TS_LTYPE2_EN BIT(3) /* Time Sync LTYPE 2 enable */
229 #define TS_LTYPE1_EN BIT(2) /* Time Sync LTYPE 1 enable */
230 #define TS_TX_EN BIT(1) /* Time Sync Transmit Enable */
231 #define TS_RX_EN BIT(0) /* Time Sync Receive Enable */
252 #define TS_SEQ_ID_OFFSET_SHIFT (16) /* Time Sync Sequence ID Offset */
254 #define TS_MSG_TYPE_EN_SHIFT (0) /* Time Sync Message Type Enable */
257 /* The PTP event messages - Sync, Delay_Req, Pdelay_Req, and Pdelay_Resp. */
258 #define EVENT_MSG_BITS ((1<<0) | (1<<1) | (1<<2) | (1<<3))
318 return readl_relaxed(slave->regs + offset); in slave_read()
323 writel_relaxed(val, slave->regs + offset); in slave_write()
396 #define ndev_to_cpsw(ndev) (((struct cpsw_priv *)netdev_priv(ndev))->cpsw)