blob: 654b1de4766c48e1e4f9d8027baa42fb10bcae70 [file] [log] [blame]
Stefan Reinauer6651da32012-04-27 23:16:30 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2007-2009 coresystems GmbH
5 * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Stefan Reinauer6651da32012-04-27 23:16:30 +020015 */
16
17#include <types.h>
18#include <string.h>
19#include <device/device.h>
20#include <device/device.h>
21#include <device/pci_def.h>
22#include <device/pci_ops.h>
23#include <console/console.h>
Vladimir Serbinenkoa2a906e2014-09-01 01:41:37 +020024#include <drivers/intel/gma/int15.h>
Stefan Reinauer6651da32012-04-27 23:16:30 +020025#include <pc80/mc146818rtc.h>
26#include <arch/acpi.h>
27#include <arch/io.h>
28#include <arch/interrupt.h>
Stefan Reinauer3e4e3032013-03-20 14:08:04 -070029#include <boot/coreboot_tables.h>
Stefan Reinauer6651da32012-04-27 23:16:30 +020030#include <southbridge/intel/bd82x6x/pch.h>
Aaron Durbinb0f81512016-07-25 21:31:41 -050031#include <vendorcode/google/chromeos/chromeos.h>
Stefan Reinauer6651da32012-04-27 23:16:30 +020032
Stefan Reinauer6651da32012-04-27 23:16:30 +020033// mainboard_enable is executed as first thing after
34// enumerate_buses().
35
36static void mainboard_enable(device_t dev)
37{
Aaron Durbinb0f81512016-07-25 21:31:41 -050038 dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;
Vladimir Serbinenkoa2a906e2014-09-01 01:41:37 +020039 install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_EDP, GMA_INT15_PANEL_FIT_CENTERING, GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);
Stefan Reinauer6651da32012-04-27 23:16:30 +020040}
41
42struct chip_operations mainboard_ops = {
Stefan Reinauer6651da32012-04-27 23:16:30 +020043 .enable_dev = mainboard_enable,
44};