ptp_qoriq: support automatic configuration for ptp timer
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 1 Aug 2018 10:05:54 +0000 (18:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Aug 2018 00:11:49 +0000 (17:11 -0700)
commit91305f2812624c0cf7ccbb44133b66d3b24676e4
treefb898baeeacc4684606dbaae27a53d0446ff20f8
parenta16b5da54d1f3a06df642b866779358fc64d00e2
ptp_qoriq: support automatic configuration for ptp timer

This patch is to support automatic configuration for ptp timer.
If required ptp dts properties are not provided, driver could
try to calculate a set of default configurations to initialize
the ptp timer. This makes the driver work for many boards which
don't have the required ptp dts properties in current kernel.
Also the users could set dts properties by themselves according
to their requirement.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_qoriq.c
include/linux/fsl/ptp_qoriq.h