]> git.hungrycats.org Git - linux/commit
net: fec: make PPS channel configurable
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Fri, 4 Oct 2024 15:24:19 +0000 (17:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2024 09:41:12 +0000 (10:41 +0100)
commit742ae9253ca8f814cf9608e4a19a35f034de0b9e
tree3150c8d5314272b76aafe57d81a7bcc8fcad3282
parent75d06a0404eebee216a3c5159eee852d646821ac
net: fec: make PPS channel configurable

commit 566c2d83887f0570056833102adc5b88e681b0c7 upstream.

Depending on the SoC where the FEC is integrated into the PPS channel
might be routed to different timer instances. Make this configurable
from the devicetree.

When the related DT property is not present fallback to the previous
default and use channel 0.

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Tested-by: Rafael Beims <rafael.beims@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Csókás, Bence <csokas.bence@prolan.hu>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Csókás, Bence <csokas.bence@prolan.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/freescale/fec_ptp.c