net/macb: add config for Atmel sama5d2 SoCs
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Thu, 18 Jun 2015 14:27:23 +0000 (16:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2015 08:24:33 +0000 (01:24 -0700)
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>
drivers/net/ethernet/cadence/macb.c

index 740d04fd222333c8a70fa0a579f4c408b995a093..caeb39561567237261ac0d50befebad666cfbeb3 100644 (file)
@@ -2713,6 +2713,13 @@ static const struct macb_config pc302gem_config = {
        .init = macb_init,
 };
 
+static const struct macb_config sama5d2_config = {
+       .caps = 0,
+       .dma_burst_length = 16,
+       .clk_init = macb_clk_init,
+       .init = macb_init,
+};
+
 static const struct macb_config sama5d3_config = {
        .caps = MACB_CAPS_SG_DISABLED | MACB_CAPS_GIGABIT_MODE_AVAILABLE,
        .dma_burst_length = 16,
@@ -2756,6 +2763,7 @@ static const struct of_device_id macb_dt_ids[] = {
        { .compatible = "cdns,macb" },
        { .compatible = "cdns,pc302-gem", .data = &pc302gem_config },
        { .compatible = "cdns,gem", .data = &pc302gem_config },
+       { .compatible = "atmel,sama5d2-gem", .data = &sama5d2_config },
        { .compatible = "atmel,sama5d3-gem", .data = &sama5d3_config },
        { .compatible = "atmel,sama5d4-gem", .data = &sama5d4_config },
        { .compatible = "cdns,at91rm9200-emac", .data = &emac_config },