Nicolas Reinecke | 2bffa8a | 2015-10-01 15:34:37 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
| 23 | static void mainboard_init(device_t dev) |
| 24 | { |
| 25 | /* init spi */ |
| 26 | RCBA32(0x38c8) = 0x00002005; |
| 27 | RCBA32(0x38c4) = 0x00802005; |
| 28 | RCBA32(0x38c0) = 0x00000007; |
| 29 | } |
| 30 | |
| 31 | static 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 | |
| 40 | void h8_mainboard_init_dock(void) |
| 41 | { |
| 42 | } |
| 43 | |
| 44 | struct chip_operations mainboard_ops = { |
| 45 | .enable_dev = mainboard_enable, |
| 46 | }; |