]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: qcom: camss: csiphy-3ph: Use an offset variable to find common control regs
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Mon, 13 Jan 2025 04:31:23 +0000 (10:01 +0530)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 6 Feb 2025 12:49:31 +0000 (13:49 +0100)
commite6e267c820709dfc16448bc8def6242deb5dc7c9
treef14024734a0d7525ad6c089f021c47d7425d0d6f
parentfbce0ca24c3a171cdbbc88d59a2ec91809edc976
media: qcom: camss: csiphy-3ph: Use an offset variable to find common control regs

New versions of the CSIPHY locate the control registers at offset 0x1000
not offset 0x800.

Provide a variable to base an offset from for the purposes of redirecting
the base offset for the new PHY regs layout.

The existing setup bases from 0x800, the new from 0x1000 with some of the
'EXT' registers dropped but the lower-order lane config regs at offset 0x00
and up the same as before.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c
drivers/media/platform/qcom/camss/camss-csiphy.h