diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2014-09-02 22:25:36 +0200 |
---|---|---|
committer | Vladimir Serbinenko <phcoder@gmail.com> | 2014-09-11 21:53:33 +0200 |
commit | 35c0f439fc2bc29817d643a7629a4d2b79d6b903 (patch) | |
tree | 1cb70aedcc75e29752a50fde10eca720c0e6f0ac /src/northbridge/intel/nehalem/acpi.c | |
parent | 955ca5d948519e89573b1508bb85d3b01353ac60 (diff) | |
download | coreboot-staging-35c0f439fc2bc29817d643a7629a4d2b79d6b903.zip coreboot-staging-35c0f439fc2bc29817d643a7629a4d2b79d6b903.tar.gz |
Move nehalem/sandy/ivy to per-device acpi
Change-Id: I3d664ab575bf9c49a7bff9a395fbab96748430d0
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/6802
Reviewed-by: Aaron Durbin <adurbin@google.com>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/northbridge/intel/nehalem/acpi.c')
-rw-r--r-- | src/northbridge/intel/nehalem/acpi.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/northbridge/intel/nehalem/acpi.c b/src/northbridge/intel/nehalem/acpi.c index 0ede237..9b7357c 100644 --- a/src/northbridge/intel/nehalem/acpi.c +++ b/src/northbridge/intel/nehalem/acpi.c @@ -32,6 +32,10 @@ #include <device/pci.h> #include <device/pci_ids.h> #include <build.h> +#include <arch/acpigen.h> +#include <cpu/cpu.h> +#include <drivers/intel/gma/i915.h> +#include <cbmem.h> #include "nehalem.h" unsigned long acpi_fill_mcfg(unsigned long current) @@ -195,3 +199,22 @@ int init_igd_opregion(igd_opregion_t * opregion) return 0; } + +void *igd_make_opregion(void) +{ + igd_opregion_t *opregion; + + printk(BIOS_DEBUG, "ACPI: * IGD OpRegion\n"); + opregion = cbmem_add(CBMEM_ID_IGD_OPREGION, sizeof (*opregion)); + if (opregion) + init_igd_opregion(opregion); + return opregion; +} + +unsigned long northbridge_acpi_fill_ssdt_generator(unsigned long current, + const char *oem_table_id) +{ + generate_cpu_entries(); + return (unsigned long) (acpigen_get_current()); +} + |