]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Enable timesync clock-out feature for PPS support on X540
authorJacob E Keller <jacob.e.keller@intel.com>
Tue, 1 May 2012 05:24:41 +0000 (05:24 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 10 May 2012 05:55:39 +0000 (22:55 -0700)
commita151b0ae569979a9c1f5e0c6d709e14a7627a5f2
treeae40cf0a91fbbc89c331b8019cc22a2f4f2950cc
parent408dd47e1c74cc8504920d0993c882ec6bcd7918
ixgbe: Enable timesync clock-out feature for PPS support on X540

This patch enables the PPS system in the PHC framework, by enabling
the clock-out feature on the X540 device. Causes the SDP0 to be set as
a 1Hz clock. Also configures the timesync interrupt cause in order to
report each pulse to the PPS via the PHC framework, which can be used
for general system clock synchronization. (This allows a stable method
for tuning the general system time via the on-board SYSTIM register
based clock.)

Signed-off-by: Jacob E Keller <jacob.e.keller@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h