[media] coda: add support for native order firmware files with Freescale header
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 17 Feb 2016 13:21:10 +0000 (11:21 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Mar 2016 10:31:44 +0000 (07:31 -0300)
commita1a87fa3a0cf8c9d3c5939c6311621ac3dbcb0da
tree7c34ac641c03430a2657eff80abe6311306b123d
parent5eba1726e17926d325d7f4efb1593d582bda4dcc
[media] coda: add support for native order firmware files with Freescale header

Freescale distribute their VPU firmware files with a 16 byte header
in BIT processor native order. This patch allows to detect the header
and to reorder the firmware on the fly.
With this patch it should be possible to use the distributed
vpu_fw_imx{53,6q,6d}.bin files directly after renaming them to
v4l-coda*-imx{53,6q,6dl}.bin.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/coda/coda-common.c