Angel Pons | 89ab250 | 2020-04-03 01:22:28 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 2 | |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 3 | #include <device/device.h> |
Vladimir Serbinenko | a2a906e | 2014-09-01 01:41:37 +0200 | [diff] [blame] | 4 | #include <drivers/intel/gma/int15.h> |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 5 | |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 6 | // mainboard_enable is executed as first thing after |
| 7 | // enumerate_buses(). |
| 8 | |
Elyes HAOUAS | 64b759e | 2018-05-05 09:11:32 +0200 | [diff] [blame] | 9 | static void mainboard_enable(struct device *dev) |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 10 | { |
Patrick Rudolph | c670a41 | 2017-04-28 17:28:32 +0200 | [diff] [blame] | 11 | install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, |
| 12 | GMA_INT15_PANEL_FIT_DEFAULT, |
| 13 | GMA_INT15_BOOT_DISPLAY_DEFAULT, 0); |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 14 | } |
| 15 | |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 16 | struct chip_operations mainboard_ops = { |
| 17 | .enable_dev = mainboard_enable, |
| 18 | }; |