summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/cadence/Makefile
diff options
context:
space:
mode:
authorRafal Ozieblo <rafalo@cadence.com>2017-06-29 09:14:16 +0300
committerDavid S. Miller <davem@davemloft.net>2017-06-30 20:11:42 +0300
commitab91f0a9b5f4b9b5b341fdc0ed457121e69c20e1 (patch)
tree5bcc4aab1d4509c2fbe87e37859c3005edcf658b /drivers/net/ethernet/cadence/Makefile
parentb83f1527d098c04424832b0a59d75046e26bfff1 (diff)
downloadlinux-ab91f0a9b5f4b9b5b341fdc0ed457121e69c20e1.tar.xz
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>
Diffstat (limited to 'drivers/net/ethernet/cadence/Makefile')
-rw-r--r--drivers/net/ethernet/cadence/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cadence/Makefile b/drivers/net/ethernet/cadence/Makefile
index 31ea6e34147a..1d66ddb68969 100644
--- a/drivers/net/ethernet/cadence/Makefile
+++ b/drivers/net/ethernet/cadence/Makefile
@@ -3,5 +3,9 @@
#
macb-y := macb_main.o
+ifeq ($(CONFIG_MACB_USE_HWSTAMP),y)
+macb-y += macb_ptp.o
+endif
+
obj-$(CONFIG_MACB) += macb.o
obj-$(CONFIG_MACB_PCI) += macb_pci.o