igb: enable auxiliary PHC functions for the i210
The i210 device offers a number of special PTP Hardware Clock features on the Software Defined Pins (SDPs). This patch adds support for two of the possible functions, namely time stamping external events, and periodic output signals. The assignment of PHC functions to the four SDP can be freely chosen by the user. Signed-off-by: Richard Cochran <richardcochran@gmail.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
00c65578b4
commit
720db4ffd0
@@ -343,6 +343,9 @@ struct hwmon_buff {
|
||||
};
|
||||
#endif
|
||||
|
||||
#define IGB_N_EXTTS 2
|
||||
#define IGB_N_PEROUT 2
|
||||
#define IGB_N_SDP 4
|
||||
#define IGB_RETA_SIZE 128
|
||||
|
||||
/* board specific private data structure */
|
||||
@@ -439,6 +442,12 @@ struct igb_adapter {
|
||||
u32 tx_hwtstamp_timeouts;
|
||||
u32 rx_hwtstamp_cleared;
|
||||
|
||||
struct ptp_pin_desc sdp_config[IGB_N_SDP];
|
||||
struct {
|
||||
struct timespec start;
|
||||
struct timespec period;
|
||||
} perout[IGB_N_PEROUT];
|
||||
|
||||
char fw_version[32];
|
||||
#ifdef CONFIG_IGB_HWMON
|
||||
struct hwmon_buff *igb_hwmon_buff;
|
||||
|
Reference in New Issue
Block a user