From 1b3a6e4b1489af477cfff1b1df4a37ccdb75f20d Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Sun, 18 Dec 2016 16:05:15 +0100 Subject: [PATCH] mb/google/slippy: Hook up libgfxinit Both HDMI and eDP work (simultaneously). TESTED on Acer C720 (peppy). Change-Id: Ifc4e3c187bcabd8965d9586237a52b440bfa7f20 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/17916 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- src/mainboard/google/slippy/Kconfig | 1 + src/mainboard/google/slippy/Makefile.inc | 3 +++ src/mainboard/google/slippy/gma-mainboard.ads | 26 +++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 src/mainboard/google/slippy/gma-mainboard.ads diff --git a/src/mainboard/google/slippy/Kconfig b/src/mainboard/google/slippy/Kconfig index 045d6a8c0b..0413cd846a 100644 --- a/src/mainboard/google/slippy/Kconfig +++ b/src/mainboard/google/slippy/Kconfig @@ -17,6 +17,7 @@ config BOARD_GOOGLE_BASEBOARD_SLIPPY select INTEL_DP if (BOARD_GOOGLE_FALCO || BOARD_GOOGLE_PEPPY) select INTEL_DDI if (BOARD_GOOGLE_FALCO || BOARD_GOOGLE_PEPPY) select INTEL_INT15 + select MAINBOARD_HAS_LIBGFXINIT if BOARD_GOOGLE_BASEBOARD_SLIPPY diff --git a/src/mainboard/google/slippy/Makefile.inc b/src/mainboard/google/slippy/Makefile.inc index 8c95ba115e..53e8dffd85 100644 --- a/src/mainboard/google/slippy/Makefile.inc +++ b/src/mainboard/google/slippy/Makefile.inc @@ -23,4 +23,7 @@ smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c romstage-y += variants/$(VARIANT_DIR)/romstage.c subdirs-y += variants/$(VARIANT_DIR) + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads + CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/include diff --git a/src/mainboard/google/slippy/gma-mainboard.ads b/src/mainboard/google/slippy/gma-mainboard.ads new file mode 100644 index 0000000000..1fc3906fed --- /dev/null +++ b/src/mainboard/google/slippy/gma-mainboard.ads @@ -0,0 +1,26 @@ +-- +-- Copyright (C) 2016 Arthur Heymans arthur@aheymans.xyz +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- + +with HW.GFX.GMA; + +use HW.GFX.GMA; + +private package GMA.Mainboard is + + ports : constant Port_List := + (Digital1, + Internal, + others => Disabled); + +end GMA.Mainboard;