drm/modes: Introduce the tv_mode property as a command-line option
authorMaxime Ripard <maxime@cerno.tech>
Thu, 17 Nov 2022 09:28:51 +0000 (10:28 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 24 Nov 2022 11:42:39 +0000 (12:42 +0100)
commite691c9992ae1c731ea67083739823b131c1d88ea
treec063f50d4b20d61092b2fe9f3b078b5d51c10d6e
parentd4613e3e50d34bc30ea384b8bf9560e874451640
drm/modes: Introduce the tv_mode property as a command-line option

Our new tv mode option allows to specify the TV mode from a property.
However, it can still be useful, for example to avoid any boot time
artifact, to set that property directly from the kernel command line.

Let's add some code to allow it, and some unit tests to exercise that code.

Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Tested-by: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com>
Acked-in-principle-or-something-like-that-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://lore.kernel.org/r/20220728-rpi-analog-tv-properties-v10-8-256dad125326@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Documentation/fb/modedb.rst
drivers/gpu/drm/drm_modes.c
drivers/gpu/drm/tests/drm_cmdline_parser_test.c
include/drm/drm_connector.h