]> git.ipfire.org Git - thirdparty/u-boot.git/commit
panel: Lightweight support of get_modes()
authorMarkus Schneider-Pargmann (TI.com) <msp@baylibre.com>
Mon, 5 Jan 2026 09:36:27 +0000 (10:36 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 16 Jan 2026 15:07:28 +0000 (09:07 -0600)
commit36829e951bfeddb7b2e9eaa93223d646577fcc02
treeb0b5d0b6f1612334b038d1f032ada685e70ee5bc
parent60f5170c1fe2a438e36b71eea0237ca166e6ef23
panel: Lightweight support of get_modes()

Linux uses get_modes() to fetch all available panel modes from the
driver. This is also used to fetch the modes from Linux's simple panel
implementation where a list of drm_display_mode structs is used to
define the different possible panels.

To make our work easier, create a compatible way of fetching and
defining these modes in u-boot. get_modes() fetches the available modes
from the panel driver. The get_display_timing() call maps the
drm_display_mode properties to the display_timing struct. This call now
uses whatever panel operation is available, get_display_timing() or
get_modes().

Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Markus Schneider-Pargmann (TI.com) <msp@baylibre.com>
drivers/video/panel-uclass.c
include/panel.h