drm: rp1: rp1-vec: Allow non-standard modes with various crops
authorNick Hollinghurst <nick.hollinghurst@raspberrypi.com>
Thu, 11 Jan 2024 12:13:03 +0000 (12:13 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:30 +0000 (11:35 +0000)
commit915c9c945ca02319b1e9788975fa74417d4a6b02
tree6380c364cfca0bb1f13127c4a900bfebc3a99c7e
parent80793205142570bcb9259cf6962d956b8fc89258
drm: rp1: rp1-vec: Allow non-standard modes with various crops

Tweak sync timings in the advertised modelines.

Accept other, custom modes, provided they fit within the active
area of one of the existing hardware-supported TV modes.

Instead of always padding symmetrically, try to respect the user's
[hv]sync_start values, allowing the image to be shifted around
the screen (to fine-tune overscan correction).

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_hw.c