net: sh_eth: add support R8A7740
Subsystems (6)
Shimoda, Yoshihiro
reviewerPATCH 1/1 net: sh_eth: add support R8A7740
The R8A7740 has a Gigabit Ethernet MAC. This patch supports it.
Signed-off-by Yoshihiro Shimoda <[email protected]>
--- drivers/net/ethernet/renesas/Kconfig | 7 +- drivers/net/ethernet/renesas/sh_eth.c | 114 ++++++++++++++++++++++++++++++++- drivers/net/ethernet/renesas/sh_eth.h | 5 +- 3 files changed, 120 insertions(+), 6 deletions(-)
drivers/net/ethernet/renesas/Kconfig +4 -3
@@ -4,11 +4,11 @@ config SH_ETH tristate "Renesas SuperH Ethernet support" - depends on SUPERH && \ + depends on (SUPERH || ARCH_SHMOBILE) && \ (CPU_SUBTYPE_SH7710 || CPU_SUBTYPE_SH7712 || \ CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7619 || \ CPU_SUBTYPE_SH7724 || CPU_SUBTYPE_SH7734 || \ - CPU_SUBTYPE_SH7757) + CPU_SUBTYPE_SH7757 || ARCH_R8A7740) select CRC32 select NET_CORE select MII
@@ -17,4 +17,5 @@ config SH_ETH ---help--- Renesas SuperH Ethernet device driver. This driver supporting CPUs are: - - SH7619, SH7710, SH7712, SH7724, SH7734, SH7763 and SH7757. + - SH7619, SH7710, SH7712, SH7724, SH7734, SH7763, SH7757, + and R8A7740.
drivers/net/ethernet/renesas/sh_eth.c +113 -1
132 lines not on this page · raw message
drivers/net/ethernet/renesas/sh_eth.h +3 -2
@@ -372,7 +372,7 @@ static const u16 sh_eth_offset_fast_sh3_sh2[SH_ETH_MAX_REGISTER_OFFSET] = { };/* Driver's parameters */ -#if defined(CONFIG_CPU_SH4 ) +#if defined(CONFIG_CPU_SH4 ) || defined(CONFIG_ARCH_SHMOBILE )#define SH4_SKB_RX_ALIGN 32#else #define SH2_SH3_SKB_RX_ALIGN 2
@@ -381,7 +381,8 @@ static const u16 sh_eth_offset_fast_sh3_sh2[SH_ETH_MAX_REGISTER_OFFSET] = {/* * Register's bits */ -#if defined(CONFIG_CPU_SUBTYPE_SH7734 ) || defined(CONFIG_CPU_SUBTYPE_SH7763 ) +#if defined(CONFIG_CPU_SUBTYPE_SH7734 ) || defined(CONFIG_CPU_SUBTYPE_SH7763 ) ||\ + defined(CONFIG_ARCH_R8A7740 )/* EDSR */ enum EDSR_BIT { EDSR_ENT = 0x01, EDSR_ENR = 0x02,
Signature · 1 line
1.7.1
Hi
Quoted 4 lines
The R8A7740 has a Gigabit Ethernet MAC. This patch supports it.
Signed-off-by Yoshihiro Shimoda <[email protected]>---
This patch works well on R8A7740/Armadillo800eva board
Tested-by Kuninori Morimoto <[email protected]>
Best regards
---
Kuninori Morimoto
From: Kuninori Morimoto <[email protected]>
Date: Wed, 04 Apr 2012 21:53:12 -0700 (PDT)
Quoted 8 lines
Quoted 4 lines
The R8A7740 has a Gigabit Ethernet MAC. This patch supports it.
Signed-off-by Yoshihiro Shimoda <[email protected]>---
This patch works well on R8A7740/Armadillo800eva board
Tested-by Kuninori Morimoto <[email protected]>
Applied, thanks.