* [PATCH 1/2] sh_eth Add SH7619 support (platform)
@ 2008-08-06 23:53 Yoshinori Sato
2008-08-08 5:25 ` Nobuhiro Iwamatsu
2008-08-08 5:53 ` Paul Mundt
0 siblings, 2 replies; 3+ messages in thread
From: Yoshinori Sato @ 2008-08-06 23:53 UTC (permalink / raw)
To: linux-sh
Add EDMAC endian infomation.
arch/sh/boards/mach-se/770x/setup.c | 10 ++++++++--
arch/sh/kernel/cpu/sh2/setup-sh7619.c | 9 ++++++++-
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/arch/sh/boards/mach-se/770x/setup.c b/arch/sh/boards/mach-se/770x/setup.c
index 9123d96..5f5af82 100644
--- a/arch/sh/boards/mach-se/770x/setup.c
+++ b/arch/sh/boards/mach-se/770x/setup.c
@@ -13,6 +13,7 @@
#include <asm/io.h>
#include <asm/smc37c93x.h>
#include <asm/heartbeat.h>
+#include <asm/sh_eth.h>
/*
* Configure the Super I/O chip
@@ -129,11 +130,16 @@ static struct resource sh_eth0_resources[] = {
},
};
+static struct sh_eth_plat_data eth_platform_data = {
+ .phy = PHY_ID,
+ .edmac_endian = EDMAC_LITTLE_ENDIAN,
+};
+
static struct platform_device sh_eth0_device = {
.name = "sh-eth",
.id = 0,
.dev = {
- .platform_data = PHY_ID,
+ .platform_data = ð_platform_data,
},
.num_resources = ARRAY_SIZE(sh_eth0_resources),
.resource = sh_eth0_resources,
@@ -156,7 +162,7 @@ static struct platform_device sh_eth1_device = {
.name = "sh-eth",
.id = 1,
.dev = {
- .platform_data = PHY_ID,
+ .platform_data = ð_platform_data,
},
.num_resources = ARRAY_SIZE(sh_eth1_resources),
.resource = sh_eth1_resources,
diff --git a/arch/sh/kernel/cpu/sh2/setup-sh7619.c b/arch/sh/kernel/cpu/sh2/setup-sh7619.c
index 56e5878..1f006e1 100644
--- a/arch/sh/kernel/cpu/sh2/setup-sh7619.c
+++ b/arch/sh/kernel/cpu/sh2/setup-sh7619.c
@@ -12,6 +12,8 @@
#include <linux/serial.h>
#include <linux/serial_sci.h>
+#include <asm/sh_eth.h>
+
enum {
UNUSED = 0,
@@ -109,11 +111,16 @@ static struct resource eth_resources[] = {
},
};
+static struct sh_eth_plat_data eth_platform_data = {
+ .phy = 1,
+ .edmac_endian = EDMAC_BIG_ENDIAN,
+};
+
static struct platform_device eth_device = {
.name = "sh-eth",
.id = -1,
.dev = {
- .platform_data = (void *)1,
+ .platform_data = ð_platform_data,
},
.num_resources = ARRAY_SIZE(eth_resources),
.resource = eth_resources,
--
1.5.6.3
--
Yoshinori Sato
<ysato@users.sourceforge.jp>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] sh_eth Add SH7619 support (platform)
2008-08-06 23:53 [PATCH 1/2] sh_eth Add SH7619 support (platform) Yoshinori Sato
@ 2008-08-08 5:25 ` Nobuhiro Iwamatsu
2008-08-08 5:53 ` Paul Mundt
1 sibling, 0 replies; 3+ messages in thread
From: Nobuhiro Iwamatsu @ 2008-08-08 5:25 UTC (permalink / raw)
To: linux-sh
Yoshinori Sato wrote:
> Add EDMAC endian infomation.
>
> arch/sh/boards/mach-se/770x/setup.c | 10 ++++++++--
> arch/sh/kernel/cpu/sh2/setup-sh7619.c | 9 ++++++++-
> 2 files changed, 16 insertions(+), 3 deletions(-)
>
Acked-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] sh_eth Add SH7619 support (platform)
2008-08-06 23:53 [PATCH 1/2] sh_eth Add SH7619 support (platform) Yoshinori Sato
2008-08-08 5:25 ` Nobuhiro Iwamatsu
@ 2008-08-08 5:53 ` Paul Mundt
1 sibling, 0 replies; 3+ messages in thread
From: Paul Mundt @ 2008-08-08 5:53 UTC (permalink / raw)
To: linux-sh
On Wed, Aug 06, 2008 at 07:53:31PM -0400, Yoshinori Sato wrote:
> Add EDMAC endian infomation.
>
> arch/sh/boards/mach-se/770x/setup.c | 10 ++++++++--
> arch/sh/kernel/cpu/sh2/setup-sh7619.c | 9 ++++++++-
> 2 files changed, 16 insertions(+), 3 deletions(-)
>
I'll apply this and Iwamatsu-san's mach-sh7763rdp sh_eth bits once the
EDMAC endian bits hit mainline.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-08 5:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06 23:53 [PATCH 1/2] sh_eth Add SH7619 support (platform) Yoshinori Sato
2008-08-08 5:25 ` Nobuhiro Iwamatsu
2008-08-08 5:53 ` Paul Mundt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox