forked from pool/u-boot
c5a1053428
1 OBS-URL: https://build.opensuse.org/request/show/405463 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=76
35 lines
1.0 KiB
Diff
35 lines
1.0 KiB
Diff
From f221b548964319c29a74451beef20397c5caf41d Mon Sep 17 00:00:00 2001
|
|
From: Alexander Graf <agraf@suse.de>
|
|
Date: Mon, 6 Jun 2016 17:35:10 +0200
|
|
Subject: [PATCH] efi_loader: gop: Expose fb when 32bpp
|
|
|
|
When we're running in 32bpp mode, expose the frame buffer address
|
|
to our payloads so that Linux efifb can pick it up.
|
|
|
|
Signed-off-by: Alexander Graf <agraf@suse.de>
|
|
---
|
|
lib/efi_loader/efi_gop.c | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
diff --git a/lib/efi_loader/efi_gop.c b/lib/efi_loader/efi_gop.c
|
|
index 46f1569..286ad83 100644
|
|
--- a/lib/efi_loader/efi_gop.c
|
|
+++ b/lib/efi_loader/efi_gop.c
|
|
@@ -183,6 +183,16 @@ int efi_gop_register(void)
|
|
gopobj->mode.info = &gopobj->info;
|
|
gopobj->mode.info_size = sizeof(gopobj->info);
|
|
|
|
+#ifdef CONFIG_DM_VIDEO
|
|
+ if (bpix == VIDEO_BPP32) {
|
|
+#else
|
|
+ if (bpix == LCD_COLOR32) {
|
|
+#endif
|
|
+ /* With 32bit color space we can directly expose the fb */
|
|
+ gopobj->mode.fb_base = fb_base;
|
|
+ gopobj->mode.fb_size = fb_size;
|
|
+ }
|
|
+
|
|
gopobj->info.version = 0;
|
|
gopobj->info.width = col;
|
|
gopobj->info.height = row;
|