blob: a36a418833e7db958d90c6616eea587f83d7638f [file] [log] [blame]
Nicolas Reinecke29d358e2015-01-31 19:20:50 +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.
6 * Copyright (C) 2014 Vladimir Serbinenko
7 *
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.
Nicolas Reinecke29d358e2015-01-31 19:20:50 +010016 */
17
18#include <types.h>
19#include <string.h>
20#include <device/device.h>
21#include <device/pci_def.h>
22#include <device/pci_ops.h>
23#include <console/console.h>
24#include <drivers/intel/gma/int15.h>
25#include <arch/acpi.h>
26#include <southbridge/intel/bd82x6x/pch.h>
27#include <smbios.h>
28#include <device/pci.h>
29#include <pc80/keyboard.h>
30#include <ec/lenovo/h8/h8.h>
Nicolas Reinecke29d358e2015-01-31 19:20:50 +010031
Nicolas Reinecke29d358e2015-01-31 19:20:50 +010032static void mainboard_init(device_t dev)
33{
34 /* init spi */
35 RCBA32(0x38c8) = 0x00002005;
36 RCBA32(0x38c4) = 0x00802005;
37 RCBA32(0x38c0) = 0x00000007;
Nicolas Reinecke29d358e2015-01-31 19:20:50 +010038}
39
40static void mainboard_enable(device_t dev)
41{
42 dev->ops->init = mainboard_init;
43
44 install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS,
45 GMA_INT15_PANEL_FIT_DEFAULT,
46 GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);
47}
48
49void h8_mainboard_init_dock(void)
50{
51}
52
53struct chip_operations mainboard_ops = {
54 .enable_dev = mainboard_enable,
55};