net: phy: broadcom: Add Broadcom PTP hooks to bcm-phy-lib
authorJonathan Lemon <jonathan.lemon@gmail.com>
Wed, 22 Jun 2022 05:04:52 +0000 (22:04 -0700)
committerDom Cobley <popcornmix@gmail.com>
Fri, 24 Jun 2022 10:20:56 +0000 (11:20 +0100)
commit5b51935478c0bdba69c43bf9a79c03205991482d
tree7e565cb29809bd9b19d67be3625e70af3516c07a
parent4c757673acfabe87d1a7fbb85b6381d8a8afcd3a
net: phy: broadcom: Add Broadcom PTP hooks to bcm-phy-lib

Add 'struct bcm_ptp_private' to bcm54xx_phy_priv which points to
an optional PTP structure attached to the PHY.  This is allocated
on probe if PHY PTP support is configured, and if the driver supports
PTP for the specified PHY.

Add the bcm_ptp_probe(), bcm_ptp_config_init() and bcn_ptp_stop()
API functions to the bcm-phy library.

Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/bcm-phy-lib.h
drivers/net/phy/broadcom.c