]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: macb: Add hardware PTP support
authorRafal Ozieblo <rafalo@cadence.com>
Thu, 29 Jun 2017 06:14:16 +0000 (07:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Jun 2017 17:11:42 +0000 (13:11 -0400)
commitab91f0a9b5f4b9b5b341fdc0ed457121e69c20e1
tree5bcc4aab1d4509c2fbe87e37859c3005edcf658b
parentb83f1527d098c04424832b0a59d75046e26bfff1
net: macb: Add hardware PTP support

This patch is based on original Harini's patch and Andrei's patch,
implemented in a separate file to ease the review/maintanance
and integration with other platforms.

This driver supports GEM-GXL:
- Register ptp clock framework
- Initialize PTP related registers
- HW time stamp on the PTP Ethernet packets are received using the
  SO_TIMESTAMPING API. Time stamps are obtained from the dma buffer
  descriptors
- add macb_ptp to compilation chain

Signed-off-by: Rafal Ozieblo <rafalo@cadence.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/Makefile
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c
drivers/net/ethernet/cadence/macb_ptp.c [new file with mode: 0755]