Noah Glovsky | cc93ce7 | 2016-04-19 15:43:17 -0600 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; version 2 of the License. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
Vladimir Serbinenko | 55f3e2f | 2015-05-29 22:07:29 +0200 | [diff] [blame] | 14 | #include <device/device.h> |
| 15 | #include <drivers/intel/gma/int15.h> |
| 16 | #include <southbridge/intel/bd82x6x/pch.h> |
| 17 | #include <ec/acpi/ec.h> |
| 18 | #include <console/console.h> |
| 19 | |
| 20 | static void mainboard_init(device_t dev) |
| 21 | { |
| 22 | RCBA32(0x38c8) = 0x00002005; |
| 23 | RCBA32(0x38c4) = 0x00800000; |
| 24 | RCBA32(0x38c0) = 0x00000007; |
Vladimir Serbinenko | 55f3e2f | 2015-05-29 22:07:29 +0200 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | static void mainboard_enable(device_t dev) |
| 28 | { |
| 29 | dev->ops->init = mainboard_init; |
| 30 | |
Vladimir Serbinenko | d57fb2d | 2015-10-10 14:21:36 +0200 | [diff] [blame] | 31 | install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_EDP, GMA_INT15_PANEL_FIT_DEFAULT, GMA_INT15_BOOT_DISPLAY_DEFAULT, 0); |
Vladimir Serbinenko | 55f3e2f | 2015-05-29 22:07:29 +0200 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | struct chip_operations mainboard_ops = { |
| 35 | .enable_dev = mainboard_enable, |
| 36 | }; |