net: igb: implement high frequency periodic output signals
Subsystems (3)
PATCH 1/1 net: igb: implement high frequency periodic output signals
In addition to interrupt driven target time output events, the i210 also has two programmable clock outputs. These clocks support periods between 16 nanoseconds and 140 milliseconds. This patch implements the periodic output function using the clock outputs when possible, falling back to the target time for longer periods.
--- drivers/net/ethernet/intel/igb/e1000_regs.h | 2 + drivers/net/ethernet/intel/igb/igb_ptp.c | 72 +++++++++++++++++++++-------- 2 files changed, 54 insertions(+), 20 deletions(-)
drivers/net/ethernet/intel/igb/e1000_regs.h +2 -0
@@ -104,6 +104,8 @@#define E1000_TRGTTIMH0 0x0B648/* Target Time Register 0 High - RW */ #define E1000_TRGTTIML1 0x0B64C/* Target Time Register 1 Low - RW */ #define E1000_TRGTTIMH1 0x0B650/* Target Time Register 1 High - RW */ +#define E1000_FREQOUT0 0x0B654/* Frequency Out 0 Control Register - RW */ +#define E1000_FREQOUT1 0x0B658/* Frequency Out 1 Control Register - RW */ #define E1000_AUXSTMPL0 0x0B65C/* Auxiliary Time Stamp 0 Register Low - RO */ #define E1000_AUXSTMPH0 0x0B660/* Auxiliary Time Stamp 0 Register High - RO */ #define E1000_AUXSTMPL1 0x0B664/* Auxiliary Time Stamp 1 Register Low - RO */
drivers/net/ethernet/intel/igb/igb_ptp.c +52 -20
126 lines not on this page · raw message
Signature · 1 line
2.1.4
David Miller
maintainerFrom: Richard Cochran <[email protected]>
Date: Tue, 7 Jul 2015 16:41:42 +0200
Quoted 7 lines
In addition to interrupt driven target time output events, the i210 also has two programmable clock outputs. These clocks support periods between 16 nanoseconds and 140 milliseconds. This patch implements the periodic output function using the clock outputs when possible, falling back to the target time for longer periods.
Signed-off-by Richard Cochran <[email protected]>
I assume I will get this via the Intel folks in a future pull request.
Quoted 5 lines · David Miller
From: Richard Cochran <[email protected]>
Date: Tue, 7 Jul 2015 16:41:42 +0200Quoted 2 lines
In addition to interrupt driven target time output events, the i210 also has two programmable clock outputs. These clocks support
Quoted 8 lines
periods
Quoted 5 lines
between 16 nanoseconds and 140 milliseconds. This patch implements the periodic output function using the clock outputs when possible, falling back to the target time for longer periods.
Signed-off-by Richard Cochran <[email protected]>I assume I will get this via the Intel folks in a future pull request.
Correct, I will be adding it to my queue.
Richard- FYI for the future, could you at least CC [email protected] on the Intel wired LAN patches. It helps me keep track of patches against our drivers. Thanks!