]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Enable support for timesync gpio output
authorNithin Sujir <nsujir@broadcom.com>
Mon, 29 Jul 2013 20:58:38 +0000 (13:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jul 2013 06:38:52 +0000 (23:38 -0700)
commit63cb956c1f2321b489d5320fad873d0ff5b6dcea
treea60ad7edf04f1881225b8e4eb04fd3f394221c24
parentaba2664ae18f54c760aca09f08e126d1844eb491
tg3: Enable support for timesync gpio output

The PTP_CAPABLE tg3 devices have a gpio output that is toggled when the
free running counter matches a watchdog value. This patch adds support
to set the watchdog and enable this feature.

Since the output is controlled via bits in the EAV_REF_CLCK_CTL
register, we have to read-modify-write it when we stop/resume.

Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/broadcom/tg3.h