aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2008-07-28 06:11:07 -0400
committerPaul Mundt <lethal@linux-sh.org>2008-07-28 06:14:27 -0400
commit4875ea224af0215635f18c2c1b060fb023c7602f (patch)
treeda80e922c8abd1e2057f0836ec06d716a9e8ad4e /arch
parent6968980a1bc0ba56dd8ef21c14577af3f2f9992b (diff)
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.c10
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 db4e37d9c5b2..f8b7859bbdce 100644
--- a/arch/sh/boards/renesas/ap325rxa/setup.c
+++ b/arch/sh/boards/renesas/ap325rxa/setup.c
@@ -12,15 +12,22 @@
12 12
13#include <linux/init.h> 13#include <linux/init.h>
14#include <linux/device.h> 14#include <linux/device.h>
15#include <linux/interrupt.h>
15#include <linux/platform_device.h> 16#include <linux/platform_device.h>
16#include <linux/mtd/physmap.h> 17#include <linux/mtd/physmap.h>
17#include <linux/delay.h> 18#include <linux/delay.h>
18#include <linux/i2c.h> 19#include <linux/i2c.h>
19#include <linux/delay.h> 20#include <linux/delay.h>
21#include <linux/smc911x.h>
20#include <asm/sh_mobile_lcdc.h> 22#include <asm/sh_mobile_lcdc.h>
21#include <asm/io.h> 23#include <asm/io.h>
22#include <asm/clock.h> 24#include <asm/clock.h>
23 25
26static struct smc911x_platdata smc911x_info = {
27 .flags = SMC911X_USE_32BIT,
28 .irq_flags = IRQF_TRIGGER_LOW,
29};
30
24static struct resource smc9118_resources[] = { 31static struct resource smc9118_resources[] = {
25 [0] = { 32 [0] = {
26 .start = 0xb6080000, 33 .start = 0xb6080000,
@@ -39,6 +46,9 @@ static struct platform_device smc9118_device = {
39 .id = -1, 46 .id = -1,
40 .num_resources = ARRAY_SIZE(smc9118_resources), 47 .num_resources = ARRAY_SIZE(smc9118_resources),
41 .resource = smc9118_resources, 48 .resource = smc9118_resources,
49 .dev = {
50 .platform_data = &smc911x_info,
51 },
42}; 52};
43 53
44static struct mtd_partition ap325rxa_nor_flash_partitions[] = { 54static struct mtd_partition ap325rxa_nor_flash_partitions[] = {