soc/intel: Remove blank lines before '}' and after '{'
[coreboot2.git] / src / mainboard / hp / compaq_8200_elite_sff / mainboard.c
blob0d62faed7c79e3b4fb70ba7c054d92c67fc08421
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #include <device/device.h>
3 #include <drivers/intel/gma/int15.h>
4 #include <southbridge/intel/bd82x6x/pch.h>
5 #include <smbios.h>
7 #if CONFIG(GENERATE_SMBIOS_TABLES)
8 static int mainboard_smbios_data(struct device *dev, int *handle,
9 unsigned long *current)
11 int len = 0;
13 // add IPMI Device Information
14 len += smbios_write_type38(
15 current, handle,
16 SMBIOS_BMC_INTERFACE_KCS,
17 0x20, // IPMI Version
18 0x20, // I2C address
19 0xff, // no NV storage
20 0, // IO port interface address
22 0); // no IRQ
24 return len;
26 #endif
28 static void mainboard_enable(struct device *dev)
30 install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_NONE,
31 GMA_INT15_PANEL_FIT_DEFAULT,
32 GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);
33 #if CONFIG(GENERATE_SMBIOS_TABLES)
34 dev->ops->get_smbios_data = mainboard_smbios_data;
35 #endif
38 struct chip_operations mainboard_ops = {
39 .enable_dev = mainboard_enable,