OSDN Git Service

net: dsa: mv88e6xxx: add support for event capture
authorBrandon Streiff <brandon.streiff@ni.com>
Wed, 14 Feb 2018 00:07:47 +0000 (01:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Feb 2018 19:33:37 +0000 (14:33 -0500)
commit4eb3be2937670aecf8bbd52a95b6e9238a9bd7aa
treed0167d7ea61919806a34b82682bd98fd8d90790f
parenta73ccd610690505df3a5b282c32f2f4c4e729d49
net: dsa: mv88e6xxx: add support for event capture

This patch adds support for configuring mv88e6xxx GPIO lines as PTP
pins, so that they may be used for time stamping external events or for
periodic output.

Checkpatch and reverse Christmas tree fixes by Andrew Lunn

Periodic output removed by Richard Cochran, until a better abstraction
of a VCO is added to Linux in general.

Signed-off-by: Brandon Streiff <brandon.streiff@ni.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/ptp.c
drivers/net/dsa/mv88e6xxx/ptp.h