Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d88a3ea6 authored by Yoshinori Sato's avatar Yoshinori Sato Committed by Paul Mundt
Browse files

SH7619 add ethernet controler support



- Add EtherC + PHY resource define.

Signed-off-by: default avatarYoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent fafb7a97
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -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)