Skip to content

Commit 94aca08

Browse files
yangbolu1991davem330
authored andcommitted
net: mscc: ocelot: add wave programming registers definitions
Add wave programming registers definitions for Ocelot platforms. Signed-off-by: Yangbo Lu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3007bc7 commit 94aca08

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

drivers/net/dsa/ocelot/felix_vsc9959.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ static const u32 vsc9959_ptp_regmap[] = {
313313
REG(PTP_PIN_TOD_SEC_MSB, 0x000004),
314314
REG(PTP_PIN_TOD_SEC_LSB, 0x000008),
315315
REG(PTP_PIN_TOD_NSEC, 0x00000c),
316+
REG(PTP_PIN_WF_HIGH_PERIOD, 0x000014),
317+
REG(PTP_PIN_WF_LOW_PERIOD, 0x000018),
316318
REG(PTP_CFG_MISC, 0x0000a0),
317319
REG(PTP_CLK_CFG_ADJ_CFG, 0x0000a4),
318320
REG(PTP_CLK_CFG_ADJ_FREQ, 0x0000a8),

drivers/net/ethernet/mscc/ocelot_regs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ static const u32 ocelot_ptp_regmap[] = {
239239
REG(PTP_PIN_TOD_SEC_MSB, 0x000004),
240240
REG(PTP_PIN_TOD_SEC_LSB, 0x000008),
241241
REG(PTP_PIN_TOD_NSEC, 0x00000c),
242+
REG(PTP_PIN_WF_HIGH_PERIOD, 0x000014),
243+
REG(PTP_PIN_WF_LOW_PERIOD, 0x000018),
242244
REG(PTP_CFG_MISC, 0x0000a0),
243245
REG(PTP_CLK_CFG_ADJ_CFG, 0x0000a4),
244246
REG(PTP_CLK_CFG_ADJ_FREQ, 0x0000a8),

include/soc/mscc/ocelot.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ enum ocelot_reg {
385385
PTP_PIN_TOD_SEC_MSB,
386386
PTP_PIN_TOD_SEC_LSB,
387387
PTP_PIN_TOD_NSEC,
388+
PTP_PIN_WF_HIGH_PERIOD,
389+
PTP_PIN_WF_LOW_PERIOD,
388390
PTP_CFG_MISC,
389391
PTP_CLK_CFG_ADJ_CFG,
390392
PTP_CLK_CFG_ADJ_FREQ,

include/soc/mscc/ocelot_ptp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#define PTP_PIN_TOD_SEC_MSB_RSZ PTP_PIN_CFG_RSZ
1818
#define PTP_PIN_TOD_SEC_LSB_RSZ PTP_PIN_CFG_RSZ
1919
#define PTP_PIN_TOD_NSEC_RSZ PTP_PIN_CFG_RSZ
20+
#define PTP_PIN_WF_HIGH_PERIOD_RSZ PTP_PIN_CFG_RSZ
21+
#define PTP_PIN_WF_LOW_PERIOD_RSZ PTP_PIN_CFG_RSZ
2022

2123
#define PTP_PIN_CFG_DOM BIT(0)
2224
#define PTP_PIN_CFG_SYNC BIT(2)

0 commit comments

Comments
 (0)