Patrick Rudolph | aae6e9c | 2016-12-30 17:02:04 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2008-2009 coresystems GmbH |
| 5 | * Copyright (C) 2016 Patrick Rudolph <siro@das-labor.org> |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License as |
| 9 | * published by the Free Software Foundation; version 2 of |
| 10 | * 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 | |
| 23 | static void mainboard_init(device_t dev) |
| 24 | { |
| 25 | RCBA32(0x38c8) = 0x00000000; |
| 26 | RCBA32(0x38c4) = 0x00000000; |
| 27 | RCBA32(0x38c0) = 0x00000000; |
| 28 | } |
| 29 | |
| 30 | static void mainboard_enable(device_t dev) |
| 31 | { |
| 32 | dev->ops->init = mainboard_init; |
| 33 | |
| 34 | install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_DEFAULT, GMA_INT15_BOOT_DISPLAY_DEFAULT, 0); |
| 35 | } |
| 36 | |
| 37 | void h8_mainboard_init_dock(void) |
| 38 | { |
| 39 | } |
| 40 | |
| 41 | struct chip_operations mainboard_ops = { |
| 42 | .enable_dev = mainboard_enable, |
| 43 | }; |