diff options
author | Magnus Damm <damm@igel.co.jp> | 2008-10-16 18:50:56 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-17 16:25:56 -0400 |
commit | 2c0a072e3efc17c27566c28028f4b46f79c1f0ca (patch) | |
tree | 312f0e876f7cd60f49cb9dbe57ffb1ff5739658a /drivers/media/video | |
parent | dd54203b485e79b558aa5a7262ee8ddb17d74c98 (diff) |
V4L/DVB (9243): video: add byte swap to sh_mobile_ceu driver
Extend the sh_mobile_ceu driver to enable byte swap. This way bytes
are stored in memory in incoming byte order.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/sh_mobile_ceu_camera.c b/drivers/media/video/sh_mobile_ceu_camera.c index 7a7268c43dc..fa88d382d5b 100644 --- a/drivers/media/video/sh_mobile_ceu_camera.c +++ b/drivers/media/video/sh_mobile_ceu_camera.c | |||
@@ -401,10 +401,10 @@ static int sh_mobile_ceu_set_bus_param(struct soc_camera_device *icd, | |||
401 | * D7, D6, D5, D4, D3, D2, D1, D0 (D7 written to lowest byte) | 401 | * D7, D6, D5, D4, D3, D2, D1, D0 (D7 written to lowest byte) |
402 | * | 402 | * |
403 | * The lowest three bits of CDOCR allows us to do swapping, | 403 | * The lowest three bits of CDOCR allows us to do swapping, |
404 | * right now we swap the data bytes to the following order: | 404 | * using 7 we swap the data bytes to match the incoming order: |
405 | * D1, D0, D3, D2, D5, D4, D7, D6 | 405 | * D0, D1, D2, D3, D4, D5, D6, D7 |
406 | */ | 406 | */ |
407 | ceu_write(pcdev, CDOCR, 0x00000016); | 407 | ceu_write(pcdev, CDOCR, 0x00000017); |
408 | 408 | ||
409 | ceu_write(pcdev, CDWDR, cdwdr_width); | 409 | ceu_write(pcdev, CDWDR, cdwdr_width); |
410 | ceu_write(pcdev, CFWCR, 0); /* keep "datafetch firewall" disabled */ | 410 | ceu_write(pcdev, CFWCR, 0); /* keep "datafetch firewall" disabled */ |