diff options
author | Wojciech Bieganski <wbieganski@antmicro.com> | 2014-03-04 16:05:13 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2014-03-13 08:07:37 +0100 |
commit | 58e5e10f28230fc9a9815b73948a6678e886550a (patch) | |
tree | 28e72b5f1043b71834e1e723548b81f20e66438f /arch/arm/mach-tegra/board-apalis_t30.c | |
parent | 04ffb571ea3747980fca1b5d3295a7dcd7a77934 (diff) |
OV7670 and TVP5150 drivers added, updated configs
Diffstat (limited to 'arch/arm/mach-tegra/board-apalis_t30.c')
-rw-r--r-- | arch/arm/mach-tegra/board-apalis_t30.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-apalis_t30.c b/arch/arm/mach-tegra/board-apalis_t30.c index f7340b91eb8d..6b2a39e7bcce 100644 --- a/arch/arm/mach-tegra/board-apalis_t30.c +++ b/arch/arm/mach-tegra/board-apalis_t30.c @@ -158,6 +158,48 @@ static struct platform_device soc_camera_adv7180 = { }, }; #endif /* CONFIG_VIDEO_ADV7180 | CONFIG_VIDEO_ADV7180_MODULE */ + +#if defined(CONFIG_SOC_CAMERA_TVP5150) || defined(CONFIG_SOC_CAMERA_TVP5150_MODULE) +static struct i2c_board_info camera_i2c_tvp5150soc = { + I2C_BOARD_INFO("tvp5150soc", 0x5d), +}; + +static struct soc_camera_link iclink_tvp5150soc = { + .board_info = &camera_i2c_tvp5150soc, + .bus_id = -1, /* This must match the .id of tegra_vi01_device */ + .i2c_adapter_id = 2, +}; + +static struct platform_device soc_camera_tvp5150soc = { + .name = "soc-camera-pdrv", + .id = 2, + .dev = { + .platform_data = &iclink_tvp5150soc, + }, +}; +#endif /* CONFIG_SOC_CAMERA_TVP5150 | CONFIG_SOC_CAMERA_TVP5150_MODULE */ + +#if defined(CONFIG_SOC_CAMERA_OV7670SOC) || defined(CONFIG_SOC_CAMERA_OV7670SOC_MODULE) +static struct i2c_board_info camera_i2c_ov7670soc = { + I2C_BOARD_INFO("ov7670soc", 0x21), +}; + +static struct soc_camera_link iclink_ov7670soc = { + .board_info = &camera_i2c_ov7670soc, + .bus_id = -1, /* This must match the .id of tegra_vi01_device */ + .i2c_adapter_id = 2, +}; + +static struct platform_device soc_camera_ov7670soc = { + .name = "soc-camera-pdrv", + .id = 3, + .dev = { + .platform_data = &iclink_ov7670soc, + }, +}; + +#endif /* CONFIG_SOC_CAMERA_OV7670SOC | CONFIG_SOC_CAMERA_OV7670SOC_MODULE */ + #endif /* CONFIG_VIDEO_TEGRA | CONFIG_VIDEO_TEGRA_MODULE */ /* CAN */ @@ -1392,6 +1434,12 @@ static void __init apalis_t30_init(void) #if defined(CONFIG_VIDEO_ADV7180) || defined(CONFIG_VIDEO_ADV7180_MODULE) platform_device_register(&soc_camera_adv7180); #endif +#if defined(CONFIG_SOC_CAMERA_TVP5150) || defined(CONFIG_SOC_CAMERA_TVP5150_MODULE) + platform_device_register(&soc_camera_tvp5150soc); +#endif +#if defined(CONFIG_SOC_CAMERA_OV7670SOC) || defined(CONFIG_SOC_CAMERA_OV7670SOC_MODULE) + platform_device_register(&soc_camera_ov7670soc); +#endif #endif /* CONFIG_VIDEO_TEGRA | CONFIG_VIDEO_TEGRA_MODULE */ tegra_release_bootloader_fb(); |