net: lan966x: Change the PTP pin used to read/write the PHC.
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Wed, 27 Apr 2022 06:51:24 +0000 (08:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Apr 2022 11:03:18 +0000 (12:03 +0100)
To read/write a value to a PHC, it is required to use a PTP pin.
Currently it is used pin 5, but change to pin 7 as is the last pin.
All the other pins will have different functions.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/lan966x_ptp.c

index 0a1041d..3e455a3 100644 (file)
@@ -16,7 +16,7 @@
  */
 #define LAN966X_1PPB_FORMAT            3480517749LL
 
-#define TOD_ACC_PIN            0x5
+#define TOD_ACC_PIN            0x7
 
 enum {
        PTP_PIN_ACTION_IDLE = 0,