aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh4a/setup-sh7343.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/setup-sh7343.c')
-rw-r--r--arch/sh/kernel/cpu/sh4a/setup-sh7343.c42
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
15static 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
29static struct platform_device iic0_device = {
30 .name = "i2c-sh_mobile",
31 .num_resources = ARRAY_SIZE(iic0_resources),
32 .resource = iic0_resources,
33};
34
35static 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
49static struct platform_device iic1_device = {
50 .name = "i2c-sh_mobile",
51 .num_resources = ARRAY_SIZE(iic1_resources),
52 .resource = iic1_resources,
53};
54
15static struct plat_sci_port sci_platform_data[] = { 55static 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
34static struct platform_device *sh7343_devices[] __initdata = { 74static struct platform_device *sh7343_devices[] __initdata = {
75 &iic0_device,
76 &iic1_device,
35 &sci_device, 77 &sci_device,
36}; 78};
37 79