blob: 27d0363e4f7c2abf1b0fc12de066af794f10d14b [file] [log] [blame]
Angel Pons0c58dc62020-04-03 01:21:09 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Mono9b908242014-03-02 18:40:36 +01002
Mono9b908242014-03-02 18:40:36 +01003#include <device/device.h>
Mono9b908242014-03-02 18:40:36 +01004#include <northbridge/intel/i945/i945.h>
Vladimir Serbinenkoa2a906e2014-09-01 01:41:37 +02005#include <drivers/intel/gma/int15.h>
Mono62805e62015-06-07 13:21:59 +02006#include <ec/acpi/ec.h>
Elyes HAOUASbf0970e2019-03-21 11:10:03 +01007
Mono9b908242014-03-02 18:40:36 +01008#define PANEL INT15_5F35_CL_DISPLAY_DEFAULT
9
Elyes HAOUASa2e282b2018-05-04 19:53:02 +020010static void mainboard_init(struct device *dev)
Mono9b908242014-03-02 18:40:36 +010011{
Vladimir Serbinenkoa2a906e2014-09-01 01:41:37 +020012 install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_DEFAULT, PANEL, 3);
Mono9b908242014-03-02 18:40:36 +010013}
14
Elyes HAOUASa2e282b2018-05-04 19:53:02 +020015static void mainboard_enable(struct device *dev)
Mono9b908242014-03-02 18:40:36 +010016{
17 dev->ops->init = mainboard_init;
Mono9b908242014-03-02 18:40:36 +010018}
19
Mono62805e62015-06-07 13:21:59 +020020static void mainboard_final(void *chip_info)
21{
22 ec_set_bit(0x10, 2); /* switch off led */
23}
24
Mono9b908242014-03-02 18:40:36 +010025struct chip_operations mainboard_ops = {
26 .enable_dev = mainboard_enable,
Mono62805e62015-06-07 13:21:59 +020027 .final = mainboard_final,
Mono9b908242014-03-02 18:40:36 +010028};