i82801ix,bd82x6x,ibexpeak: rewrite expresscard hotplug
This implementation is more compact, unified and works with windows as well. Tested under windows and under Debian GNU/Linux. Change-Id: I585dec12e17e22d829baa3f2dc7aecc174f9d3b5 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/7296 Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Nicolas Reinecke <nr@das-labor.org> Tested-by: build bot (Jenkins)
This commit is contained in:
@ -38,6 +38,7 @@
|
||||
#include <cpu/x86/smm.h>
|
||||
#include "pch.h"
|
||||
#include "nvs.h"
|
||||
#include <southbridge/intel/common/pciehp.h>
|
||||
|
||||
#define NMI_OFF 0
|
||||
|
||||
@ -821,6 +822,14 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||
fadt->x_gpe1_blk.addrh = 0x0;
|
||||
}
|
||||
|
||||
static void southbridge_fill_ssdt(void)
|
||||
{
|
||||
device_t dev = dev_find_slot(0, PCI_DEVFN(0x1f,0));
|
||||
config_t *chip = dev->chip_info;
|
||||
|
||||
intel_acpi_pcie_hotplug_generator(chip->pcie_hotplug_map, 8);
|
||||
}
|
||||
|
||||
static struct pci_operations pci_ops = {
|
||||
.set_subsystem = set_subsystem,
|
||||
};
|
||||
@ -830,6 +839,7 @@ static struct device_operations device_ops = {
|
||||
.set_resources = pci_dev_set_resources,
|
||||
.enable_resources = pch_lpc_enable_resources,
|
||||
.acpi_inject_dsdt_generator = southbridge_inject_dsdt,
|
||||
.acpi_fill_ssdt_generator = southbridge_fill_ssdt,
|
||||
.write_acpi_tables = acpi_write_hpet,
|
||||
.init = lpc_init,
|
||||
.enable = pch_lpc_enable,
|
||||
|
Reference in New Issue
Block a user