From f2dd0499b65149c90c1d3ddaa034b9aaa9850e33 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Sun, 29 Oct 2017 15:42:44 +0100 Subject: libgfxinit: Enable G45 support (for GM45/X4X) Change-Id: Ia637d32ffaa5d280320955d34141eddc8b7df981 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/22222 Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) --- src/northbridge/intel/gm45/gma.c | 7 ++++++- src/northbridge/intel/x4x/gma.c | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src/northbridge/intel') diff --git a/src/northbridge/intel/gm45/gma.c b/src/northbridge/intel/gm45/gma.c index f0171e6133..606170ce73 100644 --- a/src/northbridge/intel/gm45/gma.c +++ b/src/northbridge/intel/gm45/gma.c @@ -35,6 +35,7 @@ #include #include #include +#include #define BASE_FREQUENCY 96000 @@ -770,8 +771,12 @@ static void gma_func0_init(struct device *dev) /* Post VBIOS init */ gma_pm_init_post_vbios(dev, edid_lvds.ascii_string); - if (IS_ENABLED(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT)) + if (IS_ENABLED(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT)) { gma_ngi(dev, &edid_lvds); + } else if (IS_ENABLED(CONFIG_MAINBOARD_USE_LIBGFXINIT)) { + int lightup_ok; + gma_gfxinit(&lightup_ok); + } intel_gma_restore_opregion(); } diff --git a/src/northbridge/intel/x4x/gma.c b/src/northbridge/intel/x4x/gma.c index 6c6f3a2318..f38d64d517 100644 --- a/src/northbridge/intel/x4x/gma.c +++ b/src/northbridge/intel/x4x/gma.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -411,6 +412,9 @@ static void gma_func0_init(struct device *dev) return; } native_init(dev); + } else if (IS_ENABLED(CONFIG_MAINBOARD_USE_LIBGFXINIT)) { + int lightup_ok; + gma_gfxinit(&lightup_ok); } else { pci_dev_init(dev); } -- cgit v1.2.3