powerpc/83xx: gianfar_ptp: select 1588 clock source through dts file
authorAida Mynzhasova <aida.mynzhasova@skitlab.ru>
Wed, 25 Sep 2013 07:24:23 +0000 (11:24 +0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Sep 2013 18:49:47 +0000 (14:49 -0400)
commit894116bd0e9b7749a0c4b6c62dec13c2a0ccef68
treea3e9709ce7d977964417ed27e531763fa7526e5a
parent559835ea7292e2f09304d81eda16f4209433245e
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: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/fsl-tsec-phy.txt
drivers/net/ethernet/freescale/gianfar_ptp.c