diff options
author | Anatolij Gustschin <agust@denx.de> | 2012-09-27 18:05:27 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-11-22 08:36:50 -0500 |
commit | b6f50b49b9712f49c377e9e3587906e27bea39d0 (patch) | |
tree | 732369ee8c06c319e0660279ba816e69521d2ace /arch/arm/mach-pxa | |
parent | d0bac768fbe274f60d41d759c76f7ba2b2e98aeb (diff) |
[media] mt9v022: set y_skip_top field to zero as default
Set "y_skip_top" to zero and revise comment as I do not see this line
corruption on two different mt9v022 setups. The first read-out line
is perfectly fine. Add mt9v022 platform data configuring y_skip_top
for platforms that have issues with the first read-out line. Set
y_skip_top to 1 for pcm990 board.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/pcm990-baseboard.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/pcm990-baseboard.c b/arch/arm/mach-pxa/pcm990-baseboard.c index 113c57a03565..fb7f1d1627dc 100644 --- a/arch/arm/mach-pxa/pcm990-baseboard.c +++ b/arch/arm/mach-pxa/pcm990-baseboard.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/i2c/pxa-i2c.h> | 26 | #include <linux/i2c/pxa-i2c.h> |
27 | #include <linux/pwm_backlight.h> | 27 | #include <linux/pwm_backlight.h> |
28 | 28 | ||
29 | #include <media/mt9v022.h> | ||
29 | #include <media/soc_camera.h> | 30 | #include <media/soc_camera.h> |
30 | 31 | ||
31 | #include <linux/platform_data/camera-pxa.h> | 32 | #include <linux/platform_data/camera-pxa.h> |
@@ -468,6 +469,10 @@ static struct i2c_board_info __initdata pcm990_i2c_devices[] = { | |||
468 | }, | 469 | }, |
469 | }; | 470 | }; |
470 | 471 | ||
472 | static struct mt9v022_platform_data mt9v022_pdata = { | ||
473 | .y_skip_top = 1, | ||
474 | }; | ||
475 | |||
471 | static struct i2c_board_info pcm990_camera_i2c[] = { | 476 | static struct i2c_board_info pcm990_camera_i2c[] = { |
472 | { | 477 | { |
473 | I2C_BOARD_INFO("mt9v022", 0x48), | 478 | I2C_BOARD_INFO("mt9v022", 0x48), |
@@ -480,6 +485,7 @@ static struct soc_camera_link iclink[] = { | |||
480 | { | 485 | { |
481 | .bus_id = 0, /* Must match with the camera ID */ | 486 | .bus_id = 0, /* Must match with the camera ID */ |
482 | .board_info = &pcm990_camera_i2c[0], | 487 | .board_info = &pcm990_camera_i2c[0], |
488 | .priv = &mt9v022_pdata, | ||
483 | .i2c_adapter_id = 0, | 489 | .i2c_adapter_id = 0, |
484 | .query_bus_param = pcm990_camera_query_bus_param, | 490 | .query_bus_param = pcm990_camera_query_bus_param, |
485 | .set_bus_param = pcm990_camera_set_bus_param, | 491 | .set_bus_param = pcm990_camera_set_bus_param, |