blob: e2e02d46d52224af267ba8241dec19d2a214b72b [file] [log] [blame]
Nicolas Reinecke2bffa8a2015-10-01 15:34:37 +02001/*
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.
16 */
17
18#include <device/device.h>
19#include <drivers/intel/gma/int15.h>
20#include <southbridge/intel/bd82x6x/pch.h>
21#include <ec/lenovo/h8/h8.h>
22
23static void mainboard_init(device_t dev)
24{
25 /* init spi */
26 RCBA32(0x38c8) = 0x00002005;
27 RCBA32(0x38c4) = 0x00802005;
28 RCBA32(0x38c0) = 0x00000007;
29}
30
31static void mainboard_enable(device_t dev)
32{
33 dev->ops->init = mainboard_init;
34
35 install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS,
36 GMA_INT15_PANEL_FIT_DEFAULT,
37 GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);
38}
39
40void h8_mainboard_init_dock(void)
41{
42}
43
44struct chip_operations mainboard_ops = {
45 .enable_dev = mainboard_enable,
46};