net: mscc: ocelot: redefine PTP pins
authorYangbo Lu <yangbo.lu@nxp.com>
Mon, 20 Apr 2020 02:46:47 +0000 (10:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2020 22:38:33 +0000 (15:38 -0700)
There are 5 PTP_PINS register groups on Ocelot switch.
Except the one used for TOD operations, there are still
4 register groups for programmable pins. So redefine the
4 programmable pins.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/soc/mscc/ocelot.h

index 6fd88ee..7d44d35 100644 (file)
@@ -440,10 +440,11 @@ enum ocelot_regfield {
        REGFIELD_MAX
 };
 
-enum ocelot_clk_pins {
-       ALT_PPS_PIN     = 1,
-       EXT_CLK_PIN,
-       ALT_LDST_PIN,
+enum ocelot_ptp_pins {
+       PTP_PIN_0,
+       PTP_PIN_1,
+       PTP_PIN_2,
+       PTP_PIN_3,
        TOD_ACC_PIN
 };