drm/bridge: tc358768: Add atomic_get_input_bus_fmts() implementation
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Thu, 30 Mar 2023 09:59:41 +0000 (11:59 +0200)
committerRobert Foss <rfoss@kernel.org>
Tue, 25 Apr 2023 13:57:36 +0000 (15:57 +0200)
commitcec5ccef85bd0128cf895612de54a9d21d2015d0
tree7b90266e34a7c08c6d288ab857bfca7849908acd
parentb2751a4c5b5a7dcdfcea437f403c94a018cda5c9
drm/bridge: tc358768: Add atomic_get_input_bus_fmts() implementation

Add atomic_get_input_bus_fmts() implementation, tc358768 has a parallel
RGB input interface with the actual bus format depending on the amount
of parallel input data lines.

Without this change when the tc358768 is used with less than 24bit the
color mapping is completely wrong.

Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230330095941.428122-7-francesco@dolcini.it
drivers/gpu/drm/bridge/tc358768.c