* [U-Boot] [PATCH 2/3 v2] net: sh-eth: add support for SH7753
@ 2013-12-18 7:04 Shimoda, Yoshihiro
2013-12-18 7:52 ` Nobuhiro Iwamatsu
0 siblings, 1 reply; 2+ messages in thread
From: Shimoda, Yoshihiro @ 2013-12-18 7:04 UTC (permalink / raw)
To: u-boot
SH7753 has two fast ethernet controllers and two gigabit ethernet
controllers. It is similar to SH7757.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
about v2:
- The patch doesn't remove the CONFIG_CPU_SH7752.
drivers/net/sh_eth.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/net/sh_eth.h b/drivers/net/sh_eth.h
index 8aa7109..331c07c 100644
--- a/drivers/net/sh_eth.h
+++ b/drivers/net/sh_eth.h
@@ -287,7 +287,9 @@ static const u16 sh_eth_offset_fast_sh4[SH_ETH_MAX_REGISTER_OFFSET] = {
#if defined(CONFIG_CPU_SH7763) || defined(CONFIG_CPU_SH7734)
#define SH_ETH_TYPE_GETHER
#define BASE_IO_ADDR 0xfee00000
-#elif defined(CONFIG_CPU_SH7757) || defined(CONFIG_CPU_SH7752)
+#elif defined(CONFIG_CPU_SH7757) || \
+ defined(CONFIG_CPU_SH7752) || \
+ defined(CONFIG_CPU_SH7753)
#if defined(CONFIG_SH_ETHER_USE_GETHER)
#define SH_ETH_TYPE_GETHER
#define BASE_IO_ADDR 0xfee00000
@@ -356,7 +358,9 @@ enum DMAC_T_BIT {
/* GECMR */
enum GECMR_BIT {
-#if defined(CONFIG_CPU_SH7757) || defined(CONFIG_CPU_SH7752)
+#if defined(CONFIG_CPU_SH7757) || \
+ defined(CONFIG_CPU_SH7752) || \
+ defined(CONFIG_CPU_SH7753)
GECMR_1000B = 0x20, GECMR_100B = 0x01, GECMR_10B = 0x00,
#else
GECMR_1000B = 0x01, GECMR_100B = 0x04, GECMR_10B = 0x00,
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH 2/3 v2] net: sh-eth: add support for SH7753
2013-12-18 7:04 [U-Boot] [PATCH 2/3 v2] net: sh-eth: add support for SH7753 Shimoda, Yoshihiro
@ 2013-12-18 7:52 ` Nobuhiro Iwamatsu
0 siblings, 0 replies; 2+ messages in thread
From: Nobuhiro Iwamatsu @ 2013-12-18 7:52 UTC (permalink / raw)
To: u-boot
Hi,
Applied, thanks.
Nobuhiro
2013/12/18 Shimoda, Yoshihiro <yoshihiro.shimoda.uh@renesas.com>:
> SH7753 has two fast ethernet controllers and two gigabit ethernet
> controllers. It is similar to SH7757.
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> ---
> about v2:
> - The patch doesn't remove the CONFIG_CPU_SH7752.
>
> drivers/net/sh_eth.h | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/sh_eth.h b/drivers/net/sh_eth.h
> index 8aa7109..331c07c 100644
> --- a/drivers/net/sh_eth.h
> +++ b/drivers/net/sh_eth.h
> @@ -287,7 +287,9 @@ static const u16 sh_eth_offset_fast_sh4[SH_ETH_MAX_REGISTER_OFFSET] = {
> #if defined(CONFIG_CPU_SH7763) || defined(CONFIG_CPU_SH7734)
> #define SH_ETH_TYPE_GETHER
> #define BASE_IO_ADDR 0xfee00000
> -#elif defined(CONFIG_CPU_SH7757) || defined(CONFIG_CPU_SH7752)
> +#elif defined(CONFIG_CPU_SH7757) || \
> + defined(CONFIG_CPU_SH7752) || \
> + defined(CONFIG_CPU_SH7753)
> #if defined(CONFIG_SH_ETHER_USE_GETHER)
> #define SH_ETH_TYPE_GETHER
> #define BASE_IO_ADDR 0xfee00000
> @@ -356,7 +358,9 @@ enum DMAC_T_BIT {
>
> /* GECMR */
> enum GECMR_BIT {
> -#if defined(CONFIG_CPU_SH7757) || defined(CONFIG_CPU_SH7752)
> +#if defined(CONFIG_CPU_SH7757) || \
> + defined(CONFIG_CPU_SH7752) || \
> + defined(CONFIG_CPU_SH7753)
> GECMR_1000B = 0x20, GECMR_100B = 0x01, GECMR_10B = 0x00,
> #else
> GECMR_1000B = 0x01, GECMR_100B = 0x04, GECMR_10B = 0x00,
> --
> 1.7.1
>
--
Nobuhiro Iwamatsu
iwamatsu at {nigauri.org / debian.org}
GPG ID: 40AD1FA6
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-18 7:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-18 7:04 [U-Boot] [PATCH 2/3 v2] net: sh-eth: add support for SH7753 Shimoda, Yoshihiro
2013-12-18 7:52 ` Nobuhiro Iwamatsu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.