OSDN Git Service

net: macb: Add 64 bit addressing support for GEM
authorHarini Katakam <harini.katakam@xilinx.com>
Tue, 9 Aug 2016 07:45:53 +0000 (13:15 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Aug 2016 00:38:15 +0000 (17:38 -0700)
commitfff8019a08b60dce0c7f2858ebe44c5b84ed493b
tree96d1ebc5b353dff0242452cc08dca08ec44a849e
parent054c67d1c82afde13e475cdd8b7117a5e40bebb1
net: macb: Add 64 bit addressing support for GEM

This patch adds support for 64 bit addressing and BDs.
-> Enable 64 bit addressing in DMACFG register.
-> Set DMA mask when design config register shows support for 64 bit addr.
-> Add new BD words for higher address when 64 bit DMA support is present.
-> Add and update TBQPH and RBQPH for MSB of BD pointers.
-> Change extraction and updation of buffer addresses to use
64 bit address.
-> In gem_rx extract address in one place insted of two and use a
separate flag for RXUSED.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/cadence/macb.h