diff options
| -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 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 | ||
| 26 | static struct smc911x_platdata smc911x_info = { | ||
| 27 | .flags = SMC911X_USE_32BIT, | ||
| 28 | .irq_flags = IRQF_TRIGGER_LOW, | ||
| 29 | }; | ||
| 30 | |||
| 24 | static struct resource smc9118_resources[] = { | 31 | static 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 | ||
| 44 | static struct mtd_partition ap325rxa_nor_flash_partitions[] = { | 54 | static struct mtd_partition ap325rxa_nor_flash_partitions[] = { |
