提交 3aed74cd 编写于 作者: E Eric Miao 提交者: Russell King

[ARM] pxa: make lubbock to use new smc91x platform data

Signed-off-by: NEric Miao <eric.miao@marvell.com>
Acked-by: NNicolas Pitre <nico@cam.org>
Acked-by: NJeff Garzik <jgarzik@pobox.com>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 52256c0e
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/mtd/mtd.h> #include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h> #include <linux/mtd/partitions.h>
#include <linux/smc91x.h>
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#include <linux/spi/ads7846.h> #include <linux/spi/ads7846.h>
...@@ -284,11 +285,18 @@ static struct resource smc91x_resources[] = { ...@@ -284,11 +285,18 @@ static struct resource smc91x_resources[] = {
}, },
}; };
static struct smc91x_platdata lubbock_smc91x_info = {
.flags = SMC91X_USE_16BIT | SMC91X_NOWAIT | SMC91X_IO_SHIFT_2,
};
static struct platform_device smc91x_device = { static struct platform_device smc91x_device = {
.name = "smc91x", .name = "smc91x",
.id = -1, .id = -1,
.num_resources = ARRAY_SIZE(smc91x_resources), .num_resources = ARRAY_SIZE(smc91x_resources),
.resource = smc91x_resources, .resource = smc91x_resources,
.dev = {
.platform_data = &lubbock_smc91x_info,
},
}; };
static struct resource flash_resources[] = { static struct resource flash_resources[] = {
......
...@@ -48,8 +48,7 @@ ...@@ -48,8 +48,7 @@
#define SMC_CAN_USE_32BIT 0 #define SMC_CAN_USE_32BIT 0
#define SMC_NOWAIT 1 #define SMC_NOWAIT 1
/* The first two address lines aren't connected... */ #define SMC_IO_SHIFT (lp->io_shift)
#define SMC_IO_SHIFT 2
#define SMC_inw(a, r) readw((a) + (r)) #define SMC_inw(a, r) readw((a) + (r))
#define SMC_outw(v, a, r) writew(v, (a) + (r)) #define SMC_outw(v, a, r) writew(v, (a) + (r))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册