|
@@ -353,6 +353,11 @@ static int periodic_output(struct dp83640_clock *clock,
|
|
ext_write(0, phydev, PAGE4, PTP_TDR, sec >> 16); /* sec[31:16] */
|
|
ext_write(0, phydev, PAGE4, PTP_TDR, sec >> 16); /* sec[31:16] */
|
|
ext_write(0, phydev, PAGE4, PTP_TDR, pwidth & 0xffff); /* ns[15:0] */
|
|
ext_write(0, phydev, PAGE4, PTP_TDR, pwidth & 0xffff); /* ns[15:0] */
|
|
ext_write(0, phydev, PAGE4, PTP_TDR, pwidth >> 16); /* ns[31:16] */
|
|
ext_write(0, phydev, PAGE4, PTP_TDR, pwidth >> 16); /* ns[31:16] */
|
|
|
|
+ /* Triggers 0 and 1 has programmable pulsewidth2 */
|
|
|
|
+ if (trigger < 2) {
|
|
|
|
+ ext_write(0, phydev, PAGE4, PTP_TDR, pwidth & 0xffff);
|
|
|
|
+ ext_write(0, phydev, PAGE4, PTP_TDR, pwidth >> 16);
|
|
|
|
+ }
|
|
|
|
|
|
/*enable trigger*/
|
|
/*enable trigger*/
|
|
val &= ~TRIG_LOAD;
|
|
val &= ~TRIG_LOAD;
|