tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / mainboard / lenovo / t530 / mainboard.c
blobc68354c6747aeabaec213130b9b6886cec92383b
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2007-2009 coresystems GmbH
5 * Copyright (C) 2011-2012 Google Inc.
6 * Copyright (C) 2014 Vladimir Serbinenko
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.
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.
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 <pc80/mc146818rtc.h>
26 #include <arch/acpi.h>
27 #include <arch/io.h>
28 #include <arch/interrupt.h>
29 #include <boot/coreboot_tables.h>
30 #include <southbridge/intel/bd82x6x/pch.h>
31 #include <smbios.h>
32 #include <device/pci.h>
33 #include <cbfs.h>
34 #include <pc80/keyboard.h>
35 #include <ec/lenovo/h8/h8.h>
37 static void mainboard_init(device_t dev)
39 RCBA32(0x38c8) = 0x00002005;
40 RCBA32(0x38c4) = 0x00802005;
41 RCBA32(0x38c0) = 0x00000007;
44 // mainboard_enable is executed as first thing after
45 // enumerate_buses().
47 static void mainboard_enable(device_t dev)
49 dev->ops->init = mainboard_init;
51 install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_DEFAULT, GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);
54 void h8_mainboard_init_dock (void)
58 struct chip_operations mainboard_ops = {
59 .enable_dev = mainboard_enable,