Skip to contentSkip to conversation

coda: add Freescale firmware compatibility location

git:media_tree/master Fabio Estevam 1 participant 1 message Feb 3, 2017 1 message not in the archive Media (V4L/DVB)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 61 lines · Mauro Carvalho Chehab

This is an automatic generated email to let you know that the following patch were queued:

Subject: [media] coda: add Freescale firmware compatibility location
Author:  Baruch Siach <[email protected]>
Date:    Sun Jan 15 08:33:53 2017 -0200

The Freescale provided imx-vpu looks for firmware files under /lib/firmware/vpu by default. Make coda look there for firmware files to ease the update path.

 drivers/media/platform/coda/coda-common.c | 4 ++++
 drivers/media/platform/coda/coda.h        | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

---

drivers/media/platform/coda/coda-common.c +4 -0
index a918b294adef..eb6548f46cba 100644
@@ -2221,6 +2221,7 @@ static const struct coda_devtype coda_devdata[] = {
        [CODA_IMX27] = {
                .firmware     = {
                        "vpu_fw_imx27_TO2.bin",
+                       "vpu/vpu_fw_imx27_TO2.bin",
                        "v4l-codadx6-imx27.bin"
                },
                .product      = CODA_DX6,
@@ -2234,6 +2235,7 @@ static const struct coda_devtype coda_devdata[] = {
        [CODA_IMX53] = {
                .firmware     = {
                        "vpu_fw_imx53.bin",
+                       "vpu/vpu_fw_imx53.bin",
                        "v4l-coda7541-imx53.bin"
                },
                .product      = CODA_7541,
@@ -2248,6 +2250,7 @@ static const struct coda_devtype coda_devdata[] = {
        [CODA_IMX6Q] = {
                .firmware     = {
                        "vpu_fw_imx6q.bin",
+                       "vpu/vpu_fw_imx6q.bin",
                        "v4l-coda960-imx6q.bin"
                },
                .product      = CODA_960,
@@ -2262,6 +2265,7 @@ static const struct coda_devtype coda_devdata[] = {
        [CODA_IMX6DL] = {
                .firmware     = {
                        "vpu_fw_imx6d.bin",
+                       "vpu/vpu_fw_imx6d.bin",
                        "v4l-coda960-imx6dl.bin"
                },
                .product      = CODA_960,
drivers/media/platform/coda/coda.h +0 -0
index 7ed79eb774e7..4b831c91ae4a 100644

drivers/media/platform/coda/coda.h enum coda_product { · line 56

Quoted 8 lines
drivers/media/platform/coda/coda.h +1 -1
@@ -50,7 +50,7 @@ enum coda_product {
 struct coda_video_device;
 
 struct coda_devtype {
-       char                    *firmware[2];
+       char                    *firmware[3];
        enum coda_product       product;
        const struct coda_codec *codecs;
        unsigned int            num_codecs;

I think there was an issue pointed out by Philipp on this patch.