drm: rp1: Use tv_mode from the command line and fix for Linux 6.6
authorNick Hollinghurst <nick.hollinghurst@raspberrypi.com>
Tue, 23 Jan 2024 18:45:51 +0000 (18:45 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:35 +0000 (11:35 +0000)
commit42cbf3bb51e6b404f8942eb465991717de753711
tree9154f47c76de59a75237f2e2233d7b80227d334c
parentb3d23f70f21ff78ca5e63f70909ff29bd46bf06d
drm: rp1: Use tv_mode from the command line and fix for Linux 6.6

Use the standard enum drm_connector_tv_mode instead of a private
enum and switch from the legacy to the standard tv_mode property.

Remove the module parameter "tv_norm". Instead, get tv_mode from
the command line and make this the connector's default TV mode.

Don't restrict the choice of modes based on tv_mode, but interpret
nonstandard combinations as NTSC or PAL, depending on resolution.
Thus the default tv_mode=NTSC effectively means "Auto".

Tweak the advertised horizontal timings for 625/50 to match Rec.601

Signed-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>
drivers/gpu/drm/rp1/rp1-vec/rp1_vec.c
drivers/gpu/drm/rp1/rp1-vec/rp1_vec.h
drivers/gpu/drm/rp1/rp1-vec/rp1_vec_hw.c