media: rcar-csi2: Rework macros to access AFE lanes
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 12 Jun 2025 17:59:02 +0000 (19:59 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 16 Jun 2025 06:52:14 +0000 (08:52 +0200)
commitc927b7b5acfa48471959fb3da9bcc37a11202406
treeb34487446d519cb38c49a7a65fe1049da03d89a1
parent797567e81d201ee478f8efa5004804374fc2cbaf
media: rcar-csi2: Rework macros to access AFE lanes

Each AFE lane has a set of control and offset registers. The registers
themself are undocumented but later datasheets program more of them with
magic values. Before exploding the driver with more defines to name them
all rework the AFE ones to be able to address all controls and offsets.

Also move a stray define that is out of sequence.

There is no functional change.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tested-by: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Link: https://lore.kernel.org/r/20250612175904.1126717-3-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/renesas/rcar-csi2.c