blob: 1fc68fe6b0a7b1233fdffde2ea1715e66cfe3602 [file] [log] [blame]
Tobias Diedrich7a952042017-12-03 10:09:28 +01001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2017 Tobias Diedrich <ranma+coreboot@tdiedrich.de>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; version 2 of
9 * the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17#include <console/console.h>
18#include <device/device.h>
19#include <drivers/intel/gma/int15.h>
20#include <southbridge/intel/common/gpio.h>
21
Elyes HAOUAS4182c802018-05-04 20:46:54 +020022static void mainboard_enable(struct device *dev)
Tobias Diedrich7a952042017-12-03 10:09:28 +010023{
24 printk(BIOS_DEBUG, "Memory voltage: %s\n",
25 get_gpio(8) ? "1.35V" : "1.5V");
26 printk(BIOS_DEBUG, "BIOS_CFG jumper: %s\n",
27 get_gpio(22) ? "normal (1-2)" : "setup (2-3)");
28 printk(BIOS_DEBUG, "mSATA: %s\n",
29 get_gpio(35) ? "present" : "absent");
30
31 install_intel_vga_int15_handler(
32 GMA_INT15_ACTIVE_LFP_NONE, GMA_INT15_PANEL_FIT_DEFAULT,
33 GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);
34}
35
36struct chip_operations mainboard_ops = {
37 .enable_dev = mainboard_enable,
38};