mirror of https://gitee.com/openkylin/linux.git
[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:
parent
f609222a05
commit
9acf7693b7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue