mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
net: mscc: ocelot: add wave programming registers definitions
Add wave programming registers definitions for Ocelot platforms. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3007bc7321
commit
94aca08244
@ -313,6 +313,8 @@ static const u32 vsc9959_ptp_regmap[] = {
|
||||
REG(PTP_PIN_TOD_SEC_MSB, 0x000004),
|
||||
REG(PTP_PIN_TOD_SEC_LSB, 0x000008),
|
||||
REG(PTP_PIN_TOD_NSEC, 0x00000c),
|
||||
REG(PTP_PIN_WF_HIGH_PERIOD, 0x000014),
|
||||
REG(PTP_PIN_WF_LOW_PERIOD, 0x000018),
|
||||
REG(PTP_CFG_MISC, 0x0000a0),
|
||||
REG(PTP_CLK_CFG_ADJ_CFG, 0x0000a4),
|
||||
REG(PTP_CLK_CFG_ADJ_FREQ, 0x0000a8),
|
||||
|
@ -239,6 +239,8 @@ static const u32 ocelot_ptp_regmap[] = {
|
||||
REG(PTP_PIN_TOD_SEC_MSB, 0x000004),
|
||||
REG(PTP_PIN_TOD_SEC_LSB, 0x000008),
|
||||
REG(PTP_PIN_TOD_NSEC, 0x00000c),
|
||||
REG(PTP_PIN_WF_HIGH_PERIOD, 0x000014),
|
||||
REG(PTP_PIN_WF_LOW_PERIOD, 0x000018),
|
||||
REG(PTP_CFG_MISC, 0x0000a0),
|
||||
REG(PTP_CLK_CFG_ADJ_CFG, 0x0000a4),
|
||||
REG(PTP_CLK_CFG_ADJ_FREQ, 0x0000a8),
|
||||
|
@ -385,6 +385,8 @@ enum ocelot_reg {
|
||||
PTP_PIN_TOD_SEC_MSB,
|
||||
PTP_PIN_TOD_SEC_LSB,
|
||||
PTP_PIN_TOD_NSEC,
|
||||
PTP_PIN_WF_HIGH_PERIOD,
|
||||
PTP_PIN_WF_LOW_PERIOD,
|
||||
PTP_CFG_MISC,
|
||||
PTP_CLK_CFG_ADJ_CFG,
|
||||
PTP_CLK_CFG_ADJ_FREQ,
|
||||
|
@ -17,6 +17,8 @@
|
||||
#define PTP_PIN_TOD_SEC_MSB_RSZ PTP_PIN_CFG_RSZ
|
||||
#define PTP_PIN_TOD_SEC_LSB_RSZ PTP_PIN_CFG_RSZ
|
||||
#define PTP_PIN_TOD_NSEC_RSZ PTP_PIN_CFG_RSZ
|
||||
#define PTP_PIN_WF_HIGH_PERIOD_RSZ PTP_PIN_CFG_RSZ
|
||||
#define PTP_PIN_WF_LOW_PERIOD_RSZ PTP_PIN_CFG_RSZ
|
||||
|
||||
#define PTP_PIN_CFG_DOM BIT(0)
|
||||
#define PTP_PIN_CFG_SYNC BIT(2)
|
||||
|
Loading…
Reference in New Issue
Block a user