Angel Pons | 60ec365 | 2020-04-03 01:22:13 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Tobias Diedrich | 7a95204 | 2017-12-03 10:09:28 +0100 | [diff] [blame] | 2 | |
| 3 | #include <console/console.h> |
| 4 | #include <device/device.h> |
| 5 | #include <drivers/intel/gma/int15.h> |
| 6 | #include <southbridge/intel/common/gpio.h> |
| 7 | |
Elyes HAOUAS | 4182c80 | 2018-05-04 20:46:54 +0200 | [diff] [blame] | 8 | static void mainboard_enable(struct device *dev) |
Tobias Diedrich | 7a95204 | 2017-12-03 10:09:28 +0100 | [diff] [blame] | 9 | { |
| 10 | printk(BIOS_DEBUG, "Memory voltage: %s\n", |
| 11 | get_gpio(8) ? "1.35V" : "1.5V"); |
| 12 | printk(BIOS_DEBUG, "BIOS_CFG jumper: %s\n", |
| 13 | get_gpio(22) ? "normal (1-2)" : "setup (2-3)"); |
| 14 | printk(BIOS_DEBUG, "mSATA: %s\n", |
| 15 | get_gpio(35) ? "present" : "absent"); |
| 16 | |
| 17 | install_intel_vga_int15_handler( |
| 18 | GMA_INT15_ACTIVE_LFP_NONE, 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 | }; |