| 1 |
|
| 2 |
|
| 3 |
#include <device/device.h> |
| 4 |
#include <drivers/intel/gma/int15.h> |
| 5 |
#include <smbios.h> |
| 6 |
|
| 7 |
#if CONFIG(GENERATE_SMBIOS_TABLES) |
| 8 |
static int mainboard_smbios_data(struct device *dev, int *handle, |
| 9 |
unsigned long *current) |
| 10 |
{ |
| 11 |
int len = 0; |
| 12 |
|
| 13 |
|
| 14 |
len += smbios_write_type38( |
| 15 |
current, handle, |
| 16 |
SMBIOS_BMC_INTERFACE_KCS, |
| 17 |
0x20, |
| 18 |
0x20, |
| 19 |
0xff, |
| 20 |
0, |
| 21 |
0, |
| 22 |
0); |
| 23 |
|
| 24 |
return len; |
| 25 |
} |
| 26 |
#endif |
| 27 |
|
| 28 |
static void mainboard_enable(struct device *dev) |
| 29 |
{ |
| 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 |
| 36 |
} |
| 37 |
|
| 38 |
struct chip_operations mainboard_ops = { |
| 39 |
.enable_dev = mainboard_enable, |
| 40 |
}; |