]> 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)
commit4c526f74053e15d4acab2e6f3a1369bba87e9e82
treefb898baeeacc4684606dbaae27a53d0446ff20f8
parent910748256d1c073bf508c64ce7cc2a39cb7e6fe5
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