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)
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>

No differences found