public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] SH7619 add ethernet controler support
@ 2008-07-02  2:20 Yoshinori Sato
  2008-07-02  2:32 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Yoshinori Sato @ 2008-07-02  2:20 UTC (permalink / raw)
  To: linux-sh

- Add EtherC + PHY resource define.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

diff --git a/arch/sh/kernel/cpu/sh2/setup-sh7619.c b/arch/sh/kernel/cpu/sh2/setup-sh7619.c
index cc530f4..56e5878 100644
--- a/arch/sh/kernel/cpu/sh2/setup-sh7619.c
+++ b/arch/sh/kernel/cpu/sh2/setup-sh7619.c
@@ -96,8 +96,32 @@ static struct platform_device sci_device = {
 	},
 };
 
+static struct resource eth_resources[] = {
+	[0] = {
+		.start = 0xfb000000,
+		.end =   0xfb0001c8,
+		.flags = IORESOURCE_MEM,
+	},
+	[1] = {
+		.start = 85,
+		.end = 85,
+		.flags = IORESOURCE_IRQ,
+	},
+};
+
+static struct platform_device eth_device = {
+	.name = "sh-eth",
+	.id	= -1,
+	.dev = {
+		.platform_data = (void *)1,
+	},
+	.num_resources = ARRAY_SIZE(eth_resources),
+	.resource = eth_resources,
+};
+
 static struct platform_device *sh7619_devices[] __initdata = {
 	&sci_device,
+	&eth_device,
 };
 
 static int __init sh7619_devices_setup(void)

-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] SH7619 add ethernet controler support
  2008-07-02  2:20 [PATCH] SH7619 add ethernet controler support Yoshinori Sato
@ 2008-07-02  2:32 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2008-07-02  2:32 UTC (permalink / raw)
  To: linux-sh

On Tue, Jul 01, 2008 at 10:20:24PM -0400, Yoshinori Sato wrote:
> - Add EtherC + PHY resource define.
> 
> Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
> 
Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-02  2:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-02  2:20 [PATCH] SH7619 add ethernet controler support Yoshinori Sato
2008-07-02  2:32 ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox