aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/mach-ap325rxa/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/boards/mach-ap325rxa/setup.c')
-rw-r--r--arch/sh/boards/mach-ap325rxa/setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-ap325rxa/setup.c b/arch/sh/boards/mach-ap325rxa/setup.c
index 7fa74462bd9f..9c71603d29a2 100644
--- a/arch/sh/boards/mach-ap325rxa/setup.c
+++ b/arch/sh/boards/mach-ap325rxa/setup.c
@@ -165,6 +165,7 @@ static struct platform_device lcdc_device = {
165 }, 165 },
166}; 166};
167 167
168#ifdef CONFIG_I2C
168static unsigned char camera_ncm03j_magic[] = 169static unsigned char camera_ncm03j_magic[] =
169{ 170{
170 0x87, 0x00, 0x88, 0x08, 0x89, 0x01, 0x8A, 0xE8, 171 0x87, 0x00, 0x88, 0x08, 0x89, 0x01, 0x8A, 0xE8,
@@ -234,6 +235,7 @@ static struct platform_device camera_device = {
234 .platform_data = &camera_info, 235 .platform_data = &camera_info,
235 }, 236 },
236}; 237};
238#endif /* CONFIG_I2C */
237 239
238static struct sh_mobile_ceu_info sh_mobile_ceu_info = { 240static struct sh_mobile_ceu_info sh_mobile_ceu_info = {
239 .flags = SOCAM_PCLK_SAMPLE_RISING | SOCAM_HSYNC_ACTIVE_HIGH | 241 .flags = SOCAM_PCLK_SAMPLE_RISING | SOCAM_HSYNC_ACTIVE_HIGH |
@@ -270,7 +272,9 @@ static struct platform_device *ap325rxa_devices[] __initdata = {
270 &ap325rxa_nor_flash_device, 272 &ap325rxa_nor_flash_device,
271 &lcdc_device, 273 &lcdc_device,
272 &ceu_device, 274 &ceu_device,
275#ifdef CONFIG_I2C
273 &camera_device, 276 &camera_device,
277#endif
274}; 278};
275 279
276static struct i2c_board_info __initdata ap325rxa_i2c_devices[] = { 280static struct i2c_board_info __initdata ap325rxa_i2c_devices[] = {