mb/google/nissa/var/rull: add ssd timing and modify ssd GPIO pins of rtd3
[coreboot2.git] / src / mainboard / hp / snb_ivb_desktops / mainboard.c
blob75dc3302a58f32b845fbeb60cf3f8ce0ca63a282
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/device.h>
4 #include <drivers/intel/gma/int15.h>
5 #include <southbridge/intel/bd82x6x/pch.h>
6 #include <smbios.h>
8 #if CONFIG(GENERATE_SMBIOS_TABLES)
9 static int mainboard_smbios_data(struct device *dev, int *handle,
10 unsigned long *current)
12 int len = 0;
14 // add IPMI Device Information
15 len += smbios_write_type38(
16 current, handle,
17 SMBIOS_BMC_INTERFACE_KCS,
18 0x20, // IPMI Version
19 0x20, // I2C address
20 0xff, // no NV storage
21 0, // IO port interface address
23 0); // no IRQ
25 return len;
27 #endif
29 static void mainboard_enable(struct device *dev)
31 install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_NONE,
32 GMA_INT15_PANEL_FIT_DEFAULT,
33 GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);
34 #if CONFIG(GENERATE_SMBIOS_TABLES)
35 dev->ops->get_smbios_data = mainboard_smbios_data;
36 #endif
39 struct chip_operations mainboard_ops = {
40 .enable_dev = mainboard_enable,