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 0a1041da43842181a16b1df3f23d3be433eb500e..3e455a3fad08b0bd135c0df95886e3e3a7e731b7 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,