All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [RFC PATCH 1/2] video: add a function to acquire the GraphicDevice of cfb_console
@ 2017-02-07 12:58 Icenowy Zheng
  2017-02-07 12:58 ` [U-Boot] [RFC PATCH 2/2] efi_loader: gop: add support to use cfb_console's framebuffer Icenowy Zheng
  2017-02-10 16:22 ` [U-Boot] [RFC PATCH 1/2] video: add a function to acquire the GraphicDevice of cfb_console Simon Glass
  0 siblings, 2 replies; 6+ messages in thread
From: Icenowy Zheng @ 2017-02-07 12:58 UTC (permalink / raw)
  To: u-boot

Sometimes the GraphicDevice of cfb_console is useful at other place.

Add a function to acquire it, so that the graphics hardware (especially
the framebuffer) can be reused.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
---
 drivers/video/cfb_console.c | 5 +++++
 include/video_fb.h          | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c
index c0b1b8dc17..c80ed1646f 100644
--- a/drivers/video/cfb_console.c
+++ b/drivers/video/cfb_console.c
@@ -2199,3 +2199,8 @@ int video_get_screen_columns(void)
 {
 	return CONSOLE_COLS;
 }
+
+GraphicDevice *video_get_graphic_device(void)
+{
+	return pGD;
+};
diff --git a/include/video_fb.h b/include/video_fb.h
index b008853f30..29f2b24648 100644
--- a/include/video_fb.h
+++ b/include/video_fb.h
@@ -89,4 +89,6 @@ void video_set_lut (
     unsigned char b               /* blue */
     );
 
+GraphicDevice *video_get_graphic_device(void);
+
 #endif /*_VIDEO_FB_H_ */
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [U-Boot] [RFC PATCH 2/2] efi_loader: gop: add support to use cfb_console's framebuffer
@ 2017-02-08  4:50 Icenowy Zheng
  2017-02-08  5:12 ` Simon Glass
  0 siblings, 1 reply; 6+ messages in thread
From: Icenowy Zheng @ 2017-02-08  4:50 UTC (permalink / raw)
  To: u-boot


2017?2?8? 10:44? Bin Meng <bmeng.cn@gmail.com>???
>
> On Tue, Feb 7, 2017 at 8:58 PM, Icenowy Zheng <icenowy@aosc.xyz> wrote: 
> > As cfb_console now can expose its GraphicDevice, use it in the 
> > implementation of EFI GOP protocol, so that the graphics framebuffer can 
> > be passed to EFI applications. 
> > 
> > Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> 
> > --- 
> > 
> > Tested on an Allwinner H3 board with out-of-tree display support. 
> > 
> >? cmd/bootefi.c??????????? |? 2 +- 
> >? lib/efi_loader/Makefile? |? 1 + 
> >? lib/efi_loader/efi_gop.c | 29 ++++++++++++++++++++++++----- 
> >? 3 files changed, 26 insertions(+), 6 deletions(-) 
> > 
>
> Instead of adding support on legacy CFB console driver, can we use the 
> DM video driver instead? 

Many platforms are still using legacy video_hw_init, and may not have the possibility to get ported...

>
> Regards, 
> Bin 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-02-10 16:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-07 12:58 [U-Boot] [RFC PATCH 1/2] video: add a function to acquire the GraphicDevice of cfb_console Icenowy Zheng
2017-02-07 12:58 ` [U-Boot] [RFC PATCH 2/2] efi_loader: gop: add support to use cfb_console's framebuffer Icenowy Zheng
2017-02-08  2:44   ` Bin Meng
2017-02-10 16:22 ` [U-Boot] [RFC PATCH 1/2] video: add a function to acquire the GraphicDevice of cfb_console Simon Glass
2017-02-08  4:50 [U-Boot] [RFC PATCH 2/2] efi_loader: gop: add support to use cfb_console's framebuffer Icenowy Zheng
2017-02-08  5:12 ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.