]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4bba57c87cb32b1127e0bf7dbd685b31bdd563cd
treefb898baeeacc4684606dbaae27a53d0446ff20f8
parentf7fb54ce3fd913eb1233705741350f294256d460
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