[media] coda: clear registers in coda_hw_init
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 23 May 2013 13:42:56 +0000 (10:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 3 Jun 2013 19:01:52 +0000 (16:01 -0300)
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/coda.c

index 109b9389c0c95addbd1f68f4e7b6ddad20ccea80..ba99e2fb0f85ff7df1b059f804b020cb7d3d4c95 100644 (file)
@@ -1753,6 +1753,10 @@ static int coda_hw_init(struct coda_dev *dev)
                }
        }
 
+       /* Clear registers */
+       for (i = 0; i < 64; i++)
+               coda_write(dev, 0, CODA_REG_BIT_CODE_BUF_ADDR + i * 4);
+
        /* Tell the BIT where to find everything it needs */
        coda_write(dev, dev->workbuf.paddr,
                      CODA_REG_BIT_WORK_BUF_ADDR);