summaryrefslogtreecommitdiff
path: root/src/southbridge/nvidia/ck804
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineeringinc.com>2015-01-27 01:44:37 -0600
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2015-01-28 20:58:10 +0100
commit7f3ae39640adabbd2288fdeff20b04c55a3a3e9f (patch)
treec1e0dc570ce5d5ff8622652d30a9207011f5bc88 /src/southbridge/nvidia/ck804
parentb8716879917c420d9e7e2618e48b1411a0c6bcc8 (diff)
downloadcoreboot-7f3ae39640adabbd2288fdeff20b04c55a3a3e9f.tar.xz
nvidia/ck804: Enable AMD Family 0Fh/10h dynamic ACPI _PSS objects
Change-Id: I682e6c34d059ae21f9767302659bdfdbea86bcc8 Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-on: http://review.coreboot.org/8285 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'src/southbridge/nvidia/ck804')
-rw-r--r--src/southbridge/nvidia/ck804/lpc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/southbridge/nvidia/ck804/lpc.c b/src/southbridge/nvidia/ck804/lpc.c
index b24da6de17..105f5cbb61 100644
--- a/src/southbridge/nvidia/ck804/lpc.c
+++ b/src/southbridge/nvidia/ck804/lpc.c
@@ -35,6 +35,7 @@
#include <cpu/x86/lapic.h>
#include <stdlib.h>
#include <assert.h>
+#include <cpu/amd/powernow.h>
#include "ck804.h"
#define CK804_CHIP_REV 2
@@ -317,11 +318,21 @@ static void ck804_lpc_enable_resources(device_t dev)
ck804_lpc_enable_childrens_resources(dev);
}
+#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES) && IS_ENABLED(CONFIG_PER_DEVICE_ACPI_TABLES)
+
+static void southbridge_acpi_fill_ssdt_generator(void)
+{
+ amd_generate_powernow(0, 0, 0);
+}
+
+#endif
+
static struct device_operations lpc_ops = {
.read_resources = ck804_lpc_read_resources,
.set_resources = ck804_lpc_set_resources,
.enable_resources = ck804_lpc_enable_resources,
#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
+ .acpi_fill_ssdt_generator = southbridge_acpi_fill_ssdt_generator,
.write_acpi_tables = acpi_write_hpet,
#endif
.init = lpc_init,