diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-07-04 23:31:46 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-07-28 05:10:33 -0400 |
commit | 7549079d846651ee24150a24f9bb3b6e06ae67db (patch) | |
tree | a5950c853c116d34ccd254714f3f6206240beb3a /arch/sh | |
parent | 6bdfb22a8e1ffa37ae4ad35b87cb02958d1901e5 (diff) |
sh: add SuperH Mobile I2C platform data to sh7343
This patch adds platform data for two I2C channels to the sh7343.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7343.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7343.c b/arch/sh/kernel/cpu/sh4a/setup-sh7343.c index 6d4f50cd4aaf..612002e9b261 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7343.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7343.c | |||
@@ -12,6 +12,46 @@ | |||
12 | #include <linux/serial.h> | 12 | #include <linux/serial.h> |
13 | #include <linux/serial_sci.h> | 13 | #include <linux/serial_sci.h> |
14 | 14 | ||
15 | static struct resource iic0_resources[] = { | ||
16 | [0] = { | ||
17 | .name = "IIC0", | ||
18 | .start = 0x04470000, | ||
19 | .end = 0x04470017, | ||
20 | .flags = IORESOURCE_MEM, | ||
21 | }, | ||
22 | [1] = { | ||
23 | .start = 96, | ||
24 | .end = 99, | ||
25 | .flags = IORESOURCE_IRQ, | ||
26 | }, | ||
27 | }; | ||
28 | |||
29 | static struct platform_device iic0_device = { | ||
30 | .name = "i2c-sh_mobile", | ||
31 | .num_resources = ARRAY_SIZE(iic0_resources), | ||
32 | .resource = iic0_resources, | ||
33 | }; | ||
34 | |||
35 | static struct resource iic1_resources[] = { | ||
36 | [0] = { | ||
37 | .name = "IIC1", | ||
38 | .start = 0x04750000, | ||
39 | .end = 0x04750017, | ||
40 | .flags = IORESOURCE_MEM, | ||
41 | }, | ||
42 | [1] = { | ||
43 | .start = 44, | ||
44 | .end = 47, | ||
45 | .flags = IORESOURCE_IRQ, | ||
46 | }, | ||
47 | }; | ||
48 | |||
49 | static struct platform_device iic1_device = { | ||
50 | .name = "i2c-sh_mobile", | ||
51 | .num_resources = ARRAY_SIZE(iic1_resources), | ||
52 | .resource = iic1_resources, | ||
53 | }; | ||
54 | |||
15 | static struct plat_sci_port sci_platform_data[] = { | 55 | static struct plat_sci_port sci_platform_data[] = { |
16 | { | 56 | { |
17 | .mapbase = 0xffe00000, | 57 | .mapbase = 0xffe00000, |
@@ -32,6 +72,8 @@ static struct platform_device sci_device = { | |||
32 | }; | 72 | }; |
33 | 73 | ||
34 | static struct platform_device *sh7343_devices[] __initdata = { | 74 | static struct platform_device *sh7343_devices[] __initdata = { |
75 | &iic0_device, | ||
76 | &iic1_device, | ||
35 | &sci_device, | 77 | &sci_device, |
36 | }; | 78 | }; |
37 | 79 | ||