• Rafal Ozieblo's avatar
    net: macb: Add hardware PTP support · ab91f0a9
    Rafal Ozieblo authored
    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: default avatarRafal Ozieblo <rafalo@cadence.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ab91f0a9
macb_main.c 91.3 KB