Commit 2c0a072e authored by Magnus Damm's avatar Magnus Damm Committed by Mauro Carvalho Chehab

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: default avatarMagnus Damm <damm@igel.co.jp>
Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent dd54203b
...@@ -401,10 +401,10 @@ static int sh_mobile_ceu_set_bus_param(struct soc_camera_device *icd, ...@@ -401,10 +401,10 @@ static int sh_mobile_ceu_set_bus_param(struct soc_camera_device *icd,
* D7, D6, D5, D4, D3, D2, D1, D0 (D7 written to lowest byte) * D7, D6, D5, D4, D3, D2, D1, D0 (D7 written to lowest byte)
* *
* The lowest three bits of CDOCR allows us to do swapping, * The lowest three bits of CDOCR allows us to do swapping,
* right now we swap the data bytes to the following order: * using 7 we swap the data bytes to match the incoming order:
* D1, D0, D3, D2, D5, D4, D7, D6 * D0, D1, D2, D3, D4, D5, D6, D7
*/ */
ceu_write(pcdev, CDOCR, 0x00000016); ceu_write(pcdev, CDOCR, 0x00000017);
ceu_write(pcdev, CDWDR, cdwdr_width); ceu_write(pcdev, CDWDR, cdwdr_width);
ceu_write(pcdev, CFWCR, 0); /* keep "datafetch firewall" disabled */ ceu_write(pcdev, CFWCR, 0); /* keep "datafetch firewall" disabled */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment