blob: 144fde7f2e0f369c66ba00133ab07b9c31c21925 [file] [log] [blame]
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +01001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2007-2009 coresystems GmbH
5 * Copyright (C) 2011-2012 Google Inc.
Vladimir Serbinenkob2939f72014-01-22 17:12:35 +01006 * Copyright (C) 2014 Vladimir Serbinenko
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +01007 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; version 2 of the License.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010016 */
17
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010018#include <device/device.h>
Vladimir Serbinenkoa2a906e2014-09-01 01:41:37 +020019#include <drivers/intel/gma/int15.h>
Vladimir Serbinenko91175bb2014-01-23 09:06:50 +010020#include <ec/lenovo/h8/h8.h>
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010021
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010022// mainboard_enable is executed as first thing after
23// enumerate_buses().
24
Elyes HAOUAS64b759e2018-05-05 09:11:32 +020025static void mainboard_enable(struct device *dev)
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010026{
Patrick Rudolphc670a412017-04-28 17:28:32 +020027 install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS,
28 GMA_INT15_PANEL_FIT_DEFAULT,
29 GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010030}
31
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010032struct chip_operations mainboard_ops = {
33 .enable_dev = mainboard_enable,
34};