]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/sysfb: corebootdrm: Add DRM driver for coreboot framebuffers
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 Feb 2026 15:56:21 +0000 (16:56 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 20 Feb 2026 13:38:24 +0000 (14:38 +0100)
commita29a1f0ec8d69ee917a9d4c84b844df0decff0ef
tree991d11fc4d9e50cff28951fd79bbb09105413562
parentb3728905dca29ea4e00c0587f27c3a637b13b2d8
drm/sysfb: corebootdrm: Add DRM driver for coreboot framebuffers

Add corebootdrm, a DRM driver for coreboot framebuffers. The driver
supports a pre-initialized framebuffer with various packed RGB formats.
The driver code is fairly small and uses the same logic as the other
sysfb drivers. Most of the implementation comes from existing sysfb
helpers.

Until now, coreboot relied on simpledrm or simplefb for boot-up graphics
output. Initialize the platform device for corebootdrm in the same place
in framebuffer_probe(). With a later commit, the simple-framebuffer should
be removed.

v4:
- sort include statements (Tzung-Bi)
v3:
- comment on _HAS_LFB semantics (Tzung-Bi)
- fix typo in commit description (Tzung-Bi)
- comment on simple-framebuffer being obsolete for coreboot
v2:
- reimplement as platform driver
- limit resources and mappings to known framebuffer memory; no
  page alignment
- create corebootdrm device from coreboot framebuffer code

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Julius Werner <jwerner@chromium.org>
Acked-by: Tzung-Bi Shih <tzungbi@kernel.org> # coreboot
Link: https://patch.msgid.link/20260217155836.96267-12-tzimmermann@suse.de
drivers/firmware/google/Kconfig
drivers/firmware/google/framebuffer-coreboot.c
drivers/gpu/drm/sysfb/Kconfig
drivers/gpu/drm/sysfb/Makefile
drivers/gpu/drm/sysfb/corebootdrm.c [new file with mode: 0644]
include/linux/coreboot.h