sh_eth: add R8A77781 support
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 27 Apr 2013 10:44:24 +0000 (10:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Apr 2013 18:24:54 +0000 (14:24 -0400)
Add support for another ARM member of the R-Car family, R-Car M1A, also known as
R8A77781 -- it will share the code with previously added R8A77790.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/Kconfig
drivers/net/ethernet/renesas/sh_eth.c

index 24c2305..bed9841 100644 (file)
@@ -8,7 +8,8 @@ config SH_ETH
                (CPU_SUBTYPE_SH7710 || CPU_SUBTYPE_SH7712 || \
                 CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7619 || \
                 CPU_SUBTYPE_SH7724 || CPU_SUBTYPE_SH7734 || \
-                CPU_SUBTYPE_SH7757 || ARCH_R8A7740 || ARCH_R8A7779)
+                CPU_SUBTYPE_SH7757 || ARCH_R8A7740 || \
+                ARCH_R8A7778 || ARCH_R8A7779)
        select CRC32
        select NET_CORE
        select MII
index b8e52cd..e46da1e 100644 (file)
@@ -342,7 +342,7 @@ static void sh_eth_select_mii(struct net_device *ndev)
 #endif
 
 /* There is CPU dependent code */
-#if defined(CONFIG_ARCH_R8A7779)
+#if defined(CONFIG_ARCH_R8A7778) || defined(CONFIG_ARCH_R8A7779)
 #define SH_ETH_RESET_DEFAULT   1
 static void sh_eth_set_duplex(struct net_device *ndev)
 {
@@ -370,7 +370,7 @@ static void sh_eth_set_rate(struct net_device *ndev)
        }
 }
 
-/* R8A7779 */
+/* R8A7778/9 */
 static struct sh_eth_cpu_data sh_eth_my_cpu_data = {
        .set_duplex     = sh_eth_set_duplex,
        .set_rate       = sh_eth_set_rate,