aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu
diff options
context:
space:
mode:
authorMagnus Damm <magnus.damm@gmail.com>2008-07-04 23:32:23 -0400
committerPaul Mundt <lethal@linux-sh.org>2008-07-28 05:10:33 -0400
commit0fff76f2da9dd0cd1918822cdc99d0191f9b78cf (patch)
tree836716c476183857c0a5d17cf9be52684d2627da /arch/sh/kernel/cpu
parentda7d3029d1bbcd3d6489f4524056598ec030d3b0 (diff)
sh: add SuperH Mobile I2C platform data to sh7366
This patch adds platform data for the single I2C channel on sh7366. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu')
-rw-r--r--arch/sh/kernel/cpu/sh4a/setup-sh7366.c21
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
17static 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
31static struct platform_device iic_device = {
32 .name = "i2c-sh_mobile",
33 .num_resources = ARRAY_SIZE(iic_resources),
34 .resource = iic_resources,
35};
36
17static struct plat_sci_port sci_platform_data[] = { 37static 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
36static struct platform_device *sh7366_devices[] __initdata = { 56static struct platform_device *sh7366_devices[] __initdata = {
57 &iic_device,
37 &sci_device, 58 &sci_device,
38}; 59};
39 60