diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2012-05-07 23:00:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-15 15:15:14 -0400 |
commit | 2564f67bc8d56e5c7fc2970f80f41f2d38db3e21 (patch) | |
tree | b0ed4782c50977a700705f457683bc021c4120ee /drivers/media/video | |
parent | fec0f72f5f7bceb75234417999a149abe24da347 (diff) |
[media] V4L2: sh_mobile_ceu: manage lower 8bit bus
CAMCR::DTIF feild controls camera bus as upper8bit/16bit/lower8bit.
This patch manages unmanaged lower 8bit bus
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/sh_mobile_ceu_camera.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/video/sh_mobile_ceu_camera.c b/drivers/media/video/sh_mobile_ceu_camera.c index 61f7f91de931..0baaf94db7e0 100644 --- a/drivers/media/video/sh_mobile_ceu_camera.c +++ b/drivers/media/video/sh_mobile_ceu_camera.c | |||
@@ -870,11 +870,13 @@ static int sh_mobile_ceu_set_bus_param(struct soc_camera_device *icd) | |||
870 | 870 | ||
871 | value |= common_flags & V4L2_MBUS_VSYNC_ACTIVE_LOW ? 1 << 1 : 0; | 871 | value |= common_flags & V4L2_MBUS_VSYNC_ACTIVE_LOW ? 1 << 1 : 0; |
872 | value |= common_flags & V4L2_MBUS_HSYNC_ACTIVE_LOW ? 1 << 0 : 0; | 872 | value |= common_flags & V4L2_MBUS_HSYNC_ACTIVE_LOW ? 1 << 0 : 0; |
873 | value |= pcdev->is_16bit ? 1 << 12 : 0; | ||
874 | 873 | ||
875 | /* CSI2 mode */ | 874 | if (pcdev->pdata->csi2) /* CSI2 mode */ |
876 | if (pcdev->pdata->csi2) | ||
877 | value |= 3 << 12; | 875 | value |= 3 << 12; |
876 | else if (pcdev->is_16bit) | ||
877 | value |= 1 << 12; | ||
878 | else if (pcdev->pdata->flags & SH_CEU_FLAG_LOWER_8BIT) | ||
879 | value |= 2 << 12; | ||
878 | 880 | ||
879 | ceu_write(pcdev, CAMCR, value); | 881 | ceu_write(pcdev, CAMCR, value); |
880 | 882 | ||