Commit f11c9c2f authored by Paul Mundt's avatar Paul Mundt

sh: update smc91x platform data for se7206.

Follows the se7722 change.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 1e0f50ae
...@@ -3,12 +3,13 @@ ...@@ -3,12 +3,13 @@
* linux/arch/sh/boards/se/7206/setup.c * linux/arch/sh/boards/se/7206/setup.c
* *
* Copyright (C) 2006 Yoshinori Sato * Copyright (C) 2006 Yoshinori Sato
* Copyright (C) 2007 Paul Mundt * Copyright (C) 2007 - 2008 Paul Mundt
* *
* Hitachi 7206 SolutionEngine Support. * Hitachi 7206 SolutionEngine Support.
*/ */
#include <linux/init.h> #include <linux/init.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/smc91x.h>
#include <asm/se7206.h> #include <asm/se7206.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/machvec.h> #include <asm/machvec.h>
...@@ -16,8 +17,9 @@ ...@@ -16,8 +17,9 @@
static struct resource smc91x_resources[] = { static struct resource smc91x_resources[] = {
[0] = { [0] = {
.start = 0x300, .name = "smc91x-regs",
.end = 0x300 + 0x020 - 1, .start = PA_SMSC + 0x300,
.end = PA_SMSC + 0x300 + 0x020 - 1,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
...@@ -27,9 +29,18 @@ static struct resource smc91x_resources[] = { ...@@ -27,9 +29,18 @@ static struct resource smc91x_resources[] = {
}, },
}; };
static struct smc91x_platdata smc91x_info = {
.flags = SMC91X_USE_16BIT,
};
static struct platform_device smc91x_device = { static struct platform_device smc91x_device = {
.name = "smc91x", .name = "smc91x",
.id = -1, .id = -1,
.dev = {
.dma_mask = NULL,
.coherent_dma_mask = 0xffffffff,
.platform_data = &smc91x_info,
},
.num_resources = ARRAY_SIZE(smc91x_resources), .num_resources = ARRAY_SIZE(smc91x_resources),
.resource = smc91x_resources, .resource = smc91x_resources,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment