aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorKuninori Morimoto <morimoto.kuninori@renesas.com>2009-09-09 21:39:37 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-09-11 00:19:02 -0400
commit125ecce6960e3365433ec5c734365a51e88bf3d9 (patch)
treeb1f0f21e0d138bea867080854704e4ea3ba8c05a /arch/sh
parent682f88ab74e55dae55ea3bf30b46f56f71b793bd (diff)
sh: Add I2C device support for EcoVec24
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/boards/mach-ecovec24/setup.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c
index 428d1187ce5c..6721b2516a71 100644
--- a/arch/sh/boards/mach-ecovec24/setup.c
+++ b/arch/sh/boards/mach-ecovec24/setup.c
@@ -324,6 +324,13 @@ static struct platform_device ceu1_device = {
324 }, 324 },
325}; 325};
326 326
327/* I2C device */
328static struct i2c_board_info i2c1_devices[] = {
329 {
330 I2C_BOARD_INFO("r2025sd", 0x32),
331 },
332};
333
327static struct platform_device *ecovec_devices[] __initdata = { 334static struct platform_device *ecovec_devices[] __initdata = {
328 &heartbeat_device, 335 &heartbeat_device,
329 &nor_flash_device, 336 &nor_flash_device,
@@ -506,10 +513,14 @@ static int __init devices_setup(void)
506 gpio_request(GPIO_FN_VIO1_CLK, NULL); 513 gpio_request(GPIO_FN_VIO1_CLK, NULL);
507 platform_resource_setup_memory(&ceu1_device, "ceu1", 4 << 20); 514 platform_resource_setup_memory(&ceu1_device, "ceu1", 4 << 20);
508 515
516 /* enable I2C device */
517 i2c_register_board_info(1, i2c1_devices,
518 ARRAY_SIZE(i2c1_devices));
519
509 return platform_add_devices(ecovec_devices, 520 return platform_add_devices(ecovec_devices,
510 ARRAY_SIZE(ecovec_devices)); 521 ARRAY_SIZE(ecovec_devices));
511} 522}
512device_initcall(devices_setup); 523arch_initcall(devices_setup);
513 524
514static struct sh_machine_vector mv_ecovec __initmv = { 525static struct sh_machine_vector mv_ecovec __initmv = {
515 .mv_name = "R0P7724 (EcoVec)", 526 .mv_name = "R0P7724 (EcoVec)",