blob: 2a0e45c1827393c56829984c4ee8ea1d32fd8c0b [file] [log] [blame]
Noah Glovskycc93ce72016-04-19 15:43:17 -06001/*
2 * This file is part of the coreboot project.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
Vladimir Serbinenko55f3e2f2015-05-29 22:07:29 +020014#include <device/device.h>
15#include <drivers/intel/gma/int15.h>
16#include <southbridge/intel/bd82x6x/pch.h>
17#include <ec/acpi/ec.h>
18#include <console/console.h>
19
20static void mainboard_init(device_t dev)
21{
22 RCBA32(0x38c8) = 0x00002005;
23 RCBA32(0x38c4) = 0x00800000;
24 RCBA32(0x38c0) = 0x00000007;
Vladimir Serbinenko55f3e2f2015-05-29 22:07:29 +020025}
26
27static void mainboard_enable(device_t dev)
28{
29 dev->ops->init = mainboard_init;
30
Vladimir Serbinenkod57fb2d2015-10-10 14:21:36 +020031 install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_EDP, GMA_INT15_PANEL_FIT_DEFAULT, GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);
Vladimir Serbinenko55f3e2f2015-05-29 22:07:29 +020032}
33
34struct chip_operations mainboard_ops = {
35 .enable_dev = mainboard_enable,
36};