diff options
author | Magnus Damm <damm@igel.co.jp> | 2008-07-28 19:11:07 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-07-28 19:14:27 +0900 |
commit | 4875ea224af0215635f18c2c1b060fb023c7602f (patch) | |
tree | da80e922c8abd1e2057f0836ec06d716a9e8ad4e /arch | |
parent | 6968980a1bc0ba56dd8ef21c14577af3f2f9992b (diff) | |
download | op-kernel-dev-4875ea224af0215635f18c2c1b060fb023c7602f.zip op-kernel-dev-4875ea224af0215635f18c2c1b060fb023c7602f.tar.gz |
sh: Update smc911x platform data for AP325RXA
Pass board specific smc911x parameters using struct smc911x_platdata.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/boards/renesas/ap325rxa/setup.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sh/boards/renesas/ap325rxa/setup.c b/arch/sh/boards/renesas/ap325rxa/setup.c index db4e37d..f8b7859 100644 --- a/arch/sh/boards/renesas/ap325rxa/setup.c +++ b/arch/sh/boards/renesas/ap325rxa/setup.c @@ -12,15 +12,22 @@ #include <linux/init.h> #include <linux/device.h> +#include <linux/interrupt.h> #include <linux/platform_device.h> #include <linux/mtd/physmap.h> #include <linux/delay.h> #include <linux/i2c.h> #include <linux/delay.h> +#include <linux/smc911x.h> #include <asm/sh_mobile_lcdc.h> #include <asm/io.h> #include <asm/clock.h> +static struct smc911x_platdata smc911x_info = { + .flags = SMC911X_USE_32BIT, + .irq_flags = IRQF_TRIGGER_LOW, +}; + static struct resource smc9118_resources[] = { [0] = { .start = 0xb6080000, @@ -39,6 +46,9 @@ static struct platform_device smc9118_device = { .id = -1, .num_resources = ARRAY_SIZE(smc9118_resources), .resource = smc9118_resources, + .dev = { + .platform_data = &smc911x_info, + }, }; static struct mtd_partition ap325rxa_nor_flash_partitions[] = { |