Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Nicola Corna | 1bea5b7 | 2017-03-03 18:04:48 +0100 | [diff] [blame] | 2 | |
| 3 | #include <device/device.h> |
| 4 | #include <drivers/intel/gma/int15.h> |
| 5 | #include <southbridge/intel/bd82x6x/pch.h> |
| 6 | |
Elyes HAOUAS | 497737b | 2018-05-04 22:00:20 +0200 | [diff] [blame] | 7 | static void mainboard_init(struct device *dev) |
Nicola Corna | 1bea5b7 | 2017-03-03 18:04:48 +0100 | [diff] [blame] | 8 | { |
| 9 | RCBA32(0x38c8) = 0x00002009; |
| 10 | RCBA32(0x38c4) = 0x00802009; |
Nicola Corna | 1bea5b7 | 2017-03-03 18:04:48 +0100 | [diff] [blame] | 11 | } |
| 12 | |
Elyes HAOUAS | 497737b | 2018-05-04 22:00:20 +0200 | [diff] [blame] | 13 | static void mainboard_enable(struct device *dev) |
Nicola Corna | 1bea5b7 | 2017-03-03 18:04:48 +0100 | [diff] [blame] | 14 | { |
| 15 | dev->ops->init = mainboard_init; |
| 16 | |
| 17 | install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, |
| 18 | GMA_INT15_PANEL_FIT_DEFAULT, |
| 19 | GMA_INT15_BOOT_DISPLAY_DEFAULT, 0); |
| 20 | } |
| 21 | |
| 22 | struct chip_operations mainboard_ops = { |
| 23 | .enable_dev = mainboard_enable, |
| 24 | }; |