diff options
| author | Loic Poulain <loic.poulain@oss.qualcomm.com> | 2026-04-14 20:51:59 +0200 |
|---|---|---|
| committer | Bryan O'Donoghue <bod@kernel.org> | 2026-05-31 09:45:20 +0100 |
| commit | 189c9ef362be65ea587074f0b73e74ac5855cf51 (patch) | |
| tree | 6a22159a87578db99e7e3789b6633fdbe503cd2f /drivers/phy/eswin/git@git.tavy.me:linux.git | |
| parent | 83fcf113ea9a03255d065c27b328ed3c1e816678 (diff) | |
media: qcom: camss: csid-340: Add port-to-interface mapping
The CSID-340 block uses different register offsets for the PIX and RDI
interfaces, but the driver previously indexed these registers directly
with the camss port number. This happened to work for RDI because the
port index matches the RDI register layout, but this assumption breaks
with upcoming PIX interface support
Introduce an explicit port-to-interface mapping and use the mapped iface
index when programming CSID_CFG0 and CSID_CTRL. This replaces the
standalone __csid_ctrl_rdi() helper and simplifies the RDI stream setup
path.
Also correct the CSID_CFG0/CTRL base offsets and clean up the code in
preparation for full PIX path support.
Like RDI, PIX outputs Bayer frames but can also achieve some image
processing such as scaling, cropping and generating statitics (e.g.
histogram), it also offer more flexebility in term of image alignment
and stride. All of that can then later be leveraged to improve
software or hardware frames post-processing.
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Diffstat (limited to 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
