diff options
| author | Cyrille Pitchen <cyrille.pitchen@atmel.com> | 2015-06-18 10:27:23 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-06-23 04:24:33 -0400 |
| commit | 5c8fe711c754822c0aa50e325dbfcc624a697c6b (patch) | |
| tree | 7f27aed5275a175c79f07f57d4b1e55fb81677f4 /drivers/net/ethernet/cadence | |
| parent | bb7506c92971a4042d734db183d1a07bcf9a979f (diff) | |
net/macb: add config for Atmel sama5d2 SoCs
Add the compatible string for Atmel sama5d2 SoC family as the configuration
options differ from other instances of the GEM.
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence')
| -rw-r--r-- | drivers/net/ethernet/cadence/macb.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index 740d04fd2223..caeb39561567 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c | |||
| @@ -2713,6 +2713,13 @@ static const struct macb_config pc302gem_config = { | |||
| 2713 | .init = macb_init, | 2713 | .init = macb_init, |
| 2714 | }; | 2714 | }; |
| 2715 | 2715 | ||
| 2716 | static const struct macb_config sama5d2_config = { | ||
| 2717 | .caps = 0, | ||
| 2718 | .dma_burst_length = 16, | ||
| 2719 | .clk_init = macb_clk_init, | ||
| 2720 | .init = macb_init, | ||
| 2721 | }; | ||
| 2722 | |||
| 2716 | static const struct macb_config sama5d3_config = { | 2723 | static const struct macb_config sama5d3_config = { |
| 2717 | .caps = MACB_CAPS_SG_DISABLED | MACB_CAPS_GIGABIT_MODE_AVAILABLE, | 2724 | .caps = MACB_CAPS_SG_DISABLED | MACB_CAPS_GIGABIT_MODE_AVAILABLE, |
| 2718 | .dma_burst_length = 16, | 2725 | .dma_burst_length = 16, |
| @@ -2756,6 +2763,7 @@ static const struct of_device_id macb_dt_ids[] = { | |||
| 2756 | { .compatible = "cdns,macb" }, | 2763 | { .compatible = "cdns,macb" }, |
| 2757 | { .compatible = "cdns,pc302-gem", .data = &pc302gem_config }, | 2764 | { .compatible = "cdns,pc302-gem", .data = &pc302gem_config }, |
| 2758 | { .compatible = "cdns,gem", .data = &pc302gem_config }, | 2765 | { .compatible = "cdns,gem", .data = &pc302gem_config }, |
| 2766 | { .compatible = "atmel,sama5d2-gem", .data = &sama5d2_config }, | ||
| 2759 | { .compatible = "atmel,sama5d3-gem", .data = &sama5d3_config }, | 2767 | { .compatible = "atmel,sama5d3-gem", .data = &sama5d3_config }, |
| 2760 | { .compatible = "atmel,sama5d4-gem", .data = &sama5d4_config }, | 2768 | { .compatible = "atmel,sama5d4-gem", .data = &sama5d4_config }, |
| 2761 | { .compatible = "cdns,at91rm9200-emac", .data = &emac_config }, | 2769 | { .compatible = "cdns,at91rm9200-emac", .data = &emac_config }, |
