Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
26 lines
712 B
C
26 lines
712 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Renesas R-Car Gen4 gPTP device driver
|
|
*
|
|
* Copyright (C) 2022 Renesas Electronics Corporation
|
|
*/
|
|
|
|
#ifndef __RCAR_GEN4_PTP_H__
|
|
#define __RCAR_GEN4_PTP_H__
|
|
|
|
#include <linux/ptp_clock_kernel.h>
|
|
|
|
struct rcar_gen4_ptp_private {
|
|
void __iomem *addr;
|
|
struct ptp_clock *clock;
|
|
struct ptp_clock_info info;
|
|
spinlock_t lock; /* For multiple registers access */
|
|
s64 default_addend;
|
|
bool initialized;
|
|
};
|
|
|
|
int rcar_gen4_ptp_register(struct rcar_gen4_ptp_private *ptp_priv, u32 rate);
|
|
int rcar_gen4_ptp_unregister(struct rcar_gen4_ptp_private *ptp_priv);
|
|
struct rcar_gen4_ptp_private *rcar_gen4_ptp_alloc(struct platform_device *pdev);
|
|
|
|
#endif /* #ifndef __RCAR_GEN4_PTP_H__ */
|