diff options
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7366.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7366.c b/arch/sh/kernel/cpu/sh4a/setup-sh7366.c index f97ea8e0acf5..add99e4f335f 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7366.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7366.c | |||
@@ -14,6 +14,26 @@ | |||
14 | #include <linux/serial.h> | 14 | #include <linux/serial.h> |
15 | #include <linux/serial_sci.h> | 15 | #include <linux/serial_sci.h> |
16 | 16 | ||
17 | static struct resource iic_resources[] = { | ||
18 | [0] = { | ||
19 | .name = "IIC", | ||
20 | .start = 0x04470000, | ||
21 | .end = 0x04470017, | ||
22 | .flags = IORESOURCE_MEM, | ||
23 | }, | ||
24 | [1] = { | ||
25 | .start = 96, | ||
26 | .end = 99, | ||
27 | .flags = IORESOURCE_IRQ, | ||
28 | }, | ||
29 | }; | ||
30 | |||
31 | static struct platform_device iic_device = { | ||
32 | .name = "i2c-sh_mobile", | ||
33 | .num_resources = ARRAY_SIZE(iic_resources), | ||
34 | .resource = iic_resources, | ||
35 | }; | ||
36 | |||
17 | static struct plat_sci_port sci_platform_data[] = { | 37 | static struct plat_sci_port sci_platform_data[] = { |
18 | { | 38 | { |
19 | .mapbase = 0xffe00000, | 39 | .mapbase = 0xffe00000, |
@@ -34,6 +54,7 @@ static struct platform_device sci_device = { | |||
34 | }; | 54 | }; |
35 | 55 | ||
36 | static struct platform_device *sh7366_devices[] __initdata = { | 56 | static struct platform_device *sh7366_devices[] __initdata = { |
57 | &iic_device, | ||
37 | &sci_device, | 58 | &sci_device, |
38 | }; | 59 | }; |
39 | 60 | ||