Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kuninori Morimoto and committed by
Paul Mundt
125ecce6 682f88ab

+12 -1
+12 -1
arch/sh/boards/mach-ecovec24/setup.c
··· 324 324 }, 325 325 }; 326 326 327 + /* I2C device */ 328 + static struct i2c_board_info i2c1_devices[] = { 329 + { 330 + I2C_BOARD_INFO("r2025sd", 0x32), 331 + }, 332 + }; 333 + 327 334 static struct platform_device *ecovec_devices[] __initdata = { 328 335 &heartbeat_device, 329 336 &nor_flash_device, ··· 513 506 gpio_request(GPIO_FN_VIO1_CLK, NULL); 514 507 platform_resource_setup_memory(&ceu1_device, "ceu1", 4 << 20); 515 508 509 + /* enable I2C device */ 510 + i2c_register_board_info(1, i2c1_devices, 511 + ARRAY_SIZE(i2c1_devices)); 512 + 516 513 return platform_add_devices(ecovec_devices, 517 514 ARRAY_SIZE(ecovec_devices)); 518 515 } 519 - device_initcall(devices_setup); 516 + arch_initcall(devices_setup); 520 517 521 518 static struct sh_machine_vector mv_ecovec __initmv = { 522 519 .mv_name = "R0P7724 (EcoVec)",