]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/83xx: gianfar_ptp: select 1588 clock source through dts file
authorAida Mynzhasova <aida.mynzhasova@skitlab.ru>
Fri, 27 Sep 2013 13:40:27 +0000 (17:40 +0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Oct 2013 04:17:16 +0000 (21:17 -0700)
commite423a787b943fc533b0b0a4c73145d4b0c06a9f9
tree366172a9c3501cb903a488fbecf9f461ed351bf3
parent8836c44c434b10f31b71f2fe3fd9ccfddf140447
powerpc/83xx: gianfar_ptp: select 1588 clock source through dts file

Currently IEEE 1588 timer reference clock source is determined through
hard-coded value in gianfar_ptp driver. This patch allows to select ptp
clock source by means of device tree file node.

For instance:

fsl,cksel = <0>;

for using external (TSEC_TMR_CLK input) high precision timer
reference clock.

Other acceptable values:

<1> : eTSEC system clock
<2> : eTSEC1 transmit clock
<3> : RTC clock input

When this attribute isn't used, eTSEC system clock will serve as
IEEE 1588 timer reference clock.

Signed-off-by: Aida Mynzhasova <aida.mynzhasova@skitlab.ru>
Acked-by: Kumar Gala <galak@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/fsl-tsec-phy.txt
drivers/net/ethernet/freescale/gianfar_ptp.c