| 1 |
|
| 2 |
|
| 3 |
#include <device/device.h> |
| 4 |
#include <device/pci_ops.h> |
| 5 |
#include <drivers/intel/gma/int15.h> |
| 6 |
#include <acpi/acpi.h> |
| 7 |
#include <southbridge/intel/bd82x6x/pch.h> |
| 8 |
#include <ec/quanta/it8518/ec.h> |
| 9 |
|
| 10 |
#include "ec.h" |
| 11 |
#include "onboard.h" |
| 12 |
|
| 13 |
void mainboard_suspend_resume(void) |
| 14 |
{ |
| 15 |
|
| 16 |
ec_write_cmd(EC_CMD_NOTIFY_ACPI_ENTER); |
| 17 |
} |
| 18 |
|
| 19 |
static void mainboard_init(struct device *dev) |
| 20 |
{ |
| 21 |
struct device *ethernet_dev = NULL; |
| 22 |
|
| 23 |
|
| 24 |
stout_ec_init(); |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
ethernet_dev = dev_find_device(STOUT_NIC_VENDOR_ID, |
| 32 |
STOUT_NIC_DEVICE_ID, dev); |
| 33 |
|
| 34 |
if (ethernet_dev != NULL) |
| 35 |
pci_write_config8(ethernet_dev, 0x81, 0x01); |
| 36 |
} |
| 37 |
|
| 38 |
static void mainboard_enable(struct device *dev) |
| 39 |
{ |
| 40 |
dev->ops->init = mainboard_init; |
| 41 |
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_DEFAULT, GMA_INT15_BOOT_DISPLAY_DEFAULT, 0); |
| 42 |
} |
| 43 |
|
| 44 |
struct chip_operations mainboard_ops = { |
| 45 |
.enable_dev = mainboard_enable, |
| 46 |
}; |