Skip to contentSkip to conversation

firmware: coreboot: framebuffer: Allow building with simpledrm

PATCH In review Alper Nebi Yasak 2 participants 2 messages Jul 25, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware: coreboot: framebuffer: Allow building with simpledrm

The coreboot framebuffer driver registers a "simple-framebuffer" device based on the information from the firmware, after checking that it's compatible with the formats listed in simplefb.h. It was added before simpledrm, and its Kconfig marked as dependent on the simplefb driver.

The simpledrm driver can also handle "simple-framebuffer" devices and the coreboot framebuffer works fine with it on a 'Lick' Chromebook. Allow building the coreboot framebuffer driver with simpledrm as well.

---

 drivers/firmware/google/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/google/Kconfig +1 -1
index 1bc7cbf2f65d..41b78f5cb735 100644
@@ -59,7 +59,7 @@ config GOOGLE_MEMCONSOLE_X86_LEGACY
 
 config GOOGLE_FRAMEBUFFER_COREBOOT
 	tristate "Coreboot Framebuffer"
-	depends on FB_SIMPLE
+	depends on FB_SIMPLE || DRM_SIMPLEDRM
 	depends on GOOGLE_COREBOOT_TABLE
 	help
 	  This option enables the kernel to search for a framebuffer in
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw

(administrative note: I doubt [email protected] is interested in receiving linux kernel driver patches)

Quoted 10 lines · Alper Nebi Yasak

The coreboot framebuffer driver registers a "simple-framebuffer" device based on the information from the firmware, after checking that it's compatible with the formats listed in simplefb.h. It was added before simpledrm, and its Kconfig marked as dependent on the simplefb driver.

The simpledrm driver can also handle "simple-framebuffer" devices and the coreboot framebuffer works fine with it on a 'Lick' Chromebook. Allow building the coreboot framebuffer driver with simpledrm as well.