Skip to content

Commit

Permalink
net/macb: enable scatter-gather feature and set DMA burst length for …
Browse files Browse the repository at this point in the history
…sama5d4 gem

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Cyrille Pitchen authored and David S. Miller committed Jul 25, 2014
1 parent d58c86e commit 4b7b0e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/ethernet/cadence/macb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2005,13 +2005,19 @@ static struct macb_config sama5d3_config = {
.dma_burst_length = 16,
};

static struct macb_config sama5d4_config = {
.caps = 0,
.dma_burst_length = 4,
};

static const struct of_device_id macb_dt_ids[] = {
{ .compatible = "cdns,at32ap7000-macb" },
{ .compatible = "cdns,at91sam9260-macb" },
{ .compatible = "cdns,macb" },
{ .compatible = "cdns,pc302-gem", .data = &pc302gem_config },
{ .compatible = "cdns,gem", .data = &pc302gem_config },
{ .compatible = "atmel,sama5d3-gem", .data = &sama5d3_config },
{ .compatible = "atmel,sama5d4-gem", .data = &sama5d4_config },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, macb_dt_ids);
Expand Down

0 comments on commit 4b7b0e4

Please sign in to comment.