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)
commite58f6f4fb4eada7867014bfaec898f03afbce5c2
tree366172a9c3501cb903a488fbecf9f461ed351bf3
parent3f3f0960aff951c5df6e42ce292d1593a2520646
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