]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm: shmobile: Switch to drm_crtc_init_with_planes()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 23 May 2023 15:31:35 +0000 (17:31 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 24 May 2023 12:00:47 +0000 (14:00 +0200)
commit5afe82398ffe5eac5678e74ed2bc24fc95edc2b5
tree596708d2cabcfd7e7155435e450fc4c65597bf79
parent2a98bad77970103fec992dabba6fad417693c849
drm: shmobile: Switch to drm_crtc_init_with_planes()

The SH-Mobile DRM driver uses the legacy drm_crtc_init(), which
advertizes only the formats in safe_modeset_formats[] (XR24 and AR24) as
being supported.

Switch to drm_crtc_init_with_planes(), and advertize all supported
(A)RGB modes, so we can use RGB565 as the default mode for the console.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/2098de3d33bc479a8569da7dcbafdb685ff0a13a.1684854992.git.geert+renesas@glider.be
drivers/gpu/drm/shmobile/shmob_drm_crtc.c