mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
media: rcar-csi2: Move setting of Field Detection Control Register
Later datasheet versions (rev 1.00) clarifies that the FLD register should be set after LINKCNT. Signed-off-by: Niklas Söderlund <[email protected]> Reviewed-by: Ulrich Hecht <[email protected]> Reviewed-by: Kieran Bingham <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
cb5585797a
commit
fdf5de6339
1 changed files with 2 additions and 2 deletions
|
|
@ -519,8 +519,6 @@ static int rcsi2_start_receiver(struct rcar_csi2 *priv)
|
|||
rcsi2_write(priv, PHTC_REG, 0);
|
||||
|
||||
/* Configure */
|
||||
rcsi2_write(priv, FLD_REG, FLD_FLD_NUM(2) | FLD_FLD_EN4 |
|
||||
FLD_FLD_EN3 | FLD_FLD_EN2 | FLD_FLD_EN);
|
||||
rcsi2_write(priv, VCDT_REG, vcdt);
|
||||
if (vcdt2)
|
||||
rcsi2_write(priv, VCDT2_REG, vcdt2);
|
||||
|
|
@ -551,6 +549,8 @@ static int rcsi2_start_receiver(struct rcar_csi2 *priv)
|
|||
rcsi2_write(priv, PHYCNT_REG, phycnt);
|
||||
rcsi2_write(priv, LINKCNT_REG, LINKCNT_MONITOR_EN |
|
||||
LINKCNT_REG_MONI_PACT_EN | LINKCNT_ICLK_NONSTOP);
|
||||
rcsi2_write(priv, FLD_REG, FLD_FLD_NUM(2) | FLD_FLD_EN4 |
|
||||
FLD_FLD_EN3 | FLD_FLD_EN2 | FLD_FLD_EN);
|
||||
rcsi2_write(priv, PHYCNT_REG, phycnt | PHYCNT_SHUTDOWNZ);
|
||||
rcsi2_write(priv, PHYCNT_REG, phycnt | PHYCNT_SHUTDOWNZ | PHYCNT_RSTZ);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue