aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/mach-migor/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/boards/mach-migor/setup.c')
-rw-r--r--arch/sh/boards/mach-migor/setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c
index 7bd365ad2d06..e499ee384d58 100644
--- a/arch/sh/boards/mach-migor/setup.c
+++ b/arch/sh/boards/mach-migor/setup.c
@@ -304,6 +304,7 @@ static void camera_power_off(void)
304 ctrl_outb(ctrl_inb(PORT_PTDR) & ~0x08, PORT_PTDR); 304 ctrl_outb(ctrl_inb(PORT_PTDR) & ~0x08, PORT_PTDR);
305} 305}
306 306
307#ifdef CONFIG_I2C
307static unsigned char camera_ov772x_magic[] = 308static unsigned char camera_ov772x_magic[] =
308{ 309{
309 0x09, 0x01, 0x0c, 0x10, 0x0d, 0x41, 0x0e, 0x01, 310 0x09, 0x01, 0x0c, 0x10, 0x0d, 0x41, 0x0e, 0x01,
@@ -391,6 +392,7 @@ static struct platform_device migor_camera_device = {
391 .platform_data = &ov772x_info, 392 .platform_data = &ov772x_info,
392 }, 393 },
393}; 394};
395#endif /* CONFIG_I2C */
394 396
395static struct sh_mobile_ceu_info sh_mobile_ceu_info = { 397static struct sh_mobile_ceu_info sh_mobile_ceu_info = {
396 .flags = SOCAM_MASTER | SOCAM_DATAWIDTH_8 | SOCAM_PCLK_SAMPLE_RISING \ 398 .flags = SOCAM_MASTER | SOCAM_DATAWIDTH_8 | SOCAM_PCLK_SAMPLE_RISING \
@@ -429,7 +431,9 @@ static struct platform_device *migor_devices[] __initdata = {
429 &sh_keysc_device, 431 &sh_keysc_device,
430 &migor_lcdc_device, 432 &migor_lcdc_device,
431 &migor_ceu_device, 433 &migor_ceu_device,
434#ifdef CONFIG_I2C
432 &migor_camera_device, 435 &migor_camera_device,
436#endif
433 &migor_nor_flash_device, 437 &migor_nor_flash_device,
434 &migor_nand_flash_device, 438 &migor_nand_flash_device,
435}; 439};