[media] coda: clear registers in coda_hw_init

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>
This commit is contained in:
Philipp Zabel 2013-05-23 10:42:56 -03:00 committed by Mauro Carvalho Chehab
parent f609222a05
commit 9acf7693b7

View 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 */ /* Tell the BIT where to find everything it needs */
coda_write(dev, dev->workbuf.paddr, coda_write(dev, dev->workbuf.paddr,
CODA_REG_BIT_WORK_BUF_ADDR); CODA_REG_BIT_WORK_BUF_ADDR);