linux-stable/drivers/gpu/drm/tiny
Thomas Zimmermann d3533a8af4 drm/fb-helper: Replace bpp/depth parameter by color mode
Replace the combination of bpp and depth with a single color-mode
argument. Handle special cases in simpledrm and ofdrm. Hard-code
XRGB8888 as fallback format for cases where no given format works.

The color-mode argument accepts the same values as the kernel's video
parameter. These are mostly bpp values between 1 and 32. The exceptions
are 15, which has a color depth of 15 and a bpp value of 16; and 32,
which has a color depth of 24 and a bpp value of 32.

v4:
	* add back lost test for bpp_specified (Maira)
	* add Fixes tag (Daniel)
v3:
	* fix ofdrm build (Maxime)
v2:
	* minimize changes (Daniel)
	* use drm_driver_legacy_fb_format() (Daniel)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Maíra Canal <mcanal@igalia.com> # vc4 and vkms
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Fixes: 37c90d589d ("drm/fb-helper: Fix single-probe color-format selection")
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Javier Martinez Canillas <javierm@redhat.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230106112324.22055-1-tzimmermann@suse.de
2023-01-06 14:21:56 +01:00
..
arcpgu.c drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
bochs.c drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
cirrus.c drm/cirrus: Decouple fbdev bpp value from color depth 2022-11-24 14:07:52 +01:00
gm12u320.c drm: gm12u320: Remove #ifdef guards for PM related functions 2022-12-12 13:07:03 +00:00
hx8357d.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00
ili9163.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00
ili9225.c drm/mipi-dbi: Move drm_dev_{enter, exit}() out from fb_dirty functions 2022-12-05 14:21:18 +01:00
ili9341.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00
ili9486.c drm/tiny: ili9486: Do not assume 8-bit only SPI controllers 2023-01-02 11:02:08 +01:00
Kconfig drm/ofdrm: Depend on CONFIG_MMU 2022-11-03 10:17:53 +01:00
Makefile drm/ofdrm: Add ofdrm for Open Firmware framebuffers 2022-10-14 09:49:47 +02:00
mi0283qt.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00
ofdrm.c drm/fb-helper: Replace bpp/depth parameter by color mode 2023-01-06 14:21:56 +01:00
panel-mipi-dbi.c drm/tiny: panel-mipi-dbi: Read I/O supply from DT 2022-12-14 14:58:09 +01:00
repaper.c drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
simpledrm.c drm/fb-helper: Replace bpp/depth parameter by color mode 2023-01-06 14:21:56 +01:00
st7586.c drm/mipi-dbi: Move drm_dev_{enter, exit}() out from fb_dirty functions 2022-12-05 14:21:18 +01:00
st7735r.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00