blob: f2e6727c8594189166aaa92ac2c49becfd2c8bb7 [file] [log] [blame]
Patrick Georgiac959032020-05-05 22:49:26 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Nicola Corna1bea5b72017-03-03 18:04:48 +01002
3#include <device/device.h>
4#include <drivers/intel/gma/int15.h>
5#include <southbridge/intel/bd82x6x/pch.h>
6
Elyes HAOUAS497737b2018-05-04 22:00:20 +02007static void mainboard_init(struct device *dev)
Nicola Corna1bea5b72017-03-03 18:04:48 +01008{
9 RCBA32(0x38c8) = 0x00002009;
10 RCBA32(0x38c4) = 0x00802009;
Nicola Corna1bea5b72017-03-03 18:04:48 +010011}
12
Elyes HAOUAS497737b2018-05-04 22:00:20 +020013static void mainboard_enable(struct device *dev)
Nicola Corna1bea5b72017-03-03 18:04:48 +010014{
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
22struct chip_operations mainboard_ops = {
23 .enable_dev = mainboard_enable,
24};