diff options
author | Nico Huber <nico.h@gmx.de> | 2017-06-09 18:57:07 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2017-06-15 06:23:42 +0200 |
commit | a1f842d158dfd1fea833b8f290c6f11063a783c2 (patch) | |
tree | 5c3df56ca94217afa291aee4b0ff7c0e8042bec9 /src/drivers/xgi/common/XGI_main.c | |
parent | e8f6569ab3944a7d6645a38f03acaf38852612be (diff) |
drivers/xgi: Fix usage of NGI Kconfig options
This driver reinvented MAINBOARD_DO_NATIVE_VGA_INIT in a very special
way: If it wasn't set, perform native gfx init in textmode, if it was
set, perform native gfx init in linear framebuffer mode. Test for
LINEAR_FRAMEBUFFER instead and make the native gfx init optional.
Also, make Kconfig reflect the actual behaviour.
Change-Id: If20fd1f5b0f4127b426e8ff94acc61fcd4eb49af
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/20131
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/drivers/xgi/common/XGI_main.c')
-rw-r--r-- | src/drivers/xgi/common/XGI_main.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/drivers/xgi/common/XGI_main.c b/src/drivers/xgi/common/XGI_main.c index 8978607d04..b0b92d9d9f 100644 --- a/src/drivers/xgi/common/XGI_main.c +++ b/src/drivers/xgi/common/XGI_main.c @@ -590,8 +590,6 @@ check_memory: /* --------------------- SetMode routines ------------------------- */ -#if IS_ENABLED(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) - static void XGIfb_pre_setmode(struct xgifb_video_info *xgifb_info) { u8 cr30 = 0, cr31 = 0; @@ -863,5 +861,3 @@ static void XGIfb_post_setmode(struct xgifb_video_info *xgifb_info) } } } - -#endif |