Commit 6d0b3657 authored by Paul Mundt's avatar Paul Mundt

sh: rsk7203: Add smc911x platform data.

This hooks up platform data for the SMC9118 on the RSK+7203.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent f934fb19
...@@ -10,13 +10,20 @@ ...@@ -10,13 +10,20 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/platform_device.h> #include <linux/platform_device.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/mtd/physmap.h> #include <linux/mtd/physmap.h>
#include <linux/mtd/map.h> #include <linux/mtd/map.h>
#include <linux/smc911x.h>
#include <asm/machvec.h> #include <asm/machvec.h>
#include <asm/io.h> #include <asm/io.h>
static struct smc911x_platdata smc911x_info = {
.flags = SMC911X_USE_16BIT,
.irq_flags = IRQF_TRIGGER_LOW,
};
static struct resource smc911x_resources[] = { static struct resource smc911x_resources[] = {
[0] = { [0] = {
.start = 0x24000000, .start = 0x24000000,
...@@ -35,6 +42,9 @@ static struct platform_device smc911x_device = { ...@@ -35,6 +42,9 @@ static struct platform_device smc911x_device = {
.id = -1, .id = -1,
.num_resources = ARRAY_SIZE(smc911x_resources), .num_resources = ARRAY_SIZE(smc911x_resources),
.resource = smc911x_resources, .resource = smc911x_resources,
.dev = {
.platform_data = &smc911x_info,
},
}; };
static const char *probes[] = { "cmdlinepart", NULL }; static const char *probes[] = { "cmdlinepart", NULL };
......
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