summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/tigerlake/chip.c
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@google.com>2020-01-09 11:32:16 -0700
committerPatrick Rudolph <siro@das-labor.org>2020-01-12 18:12:14 +0000
commit0e971e11a03afc6a983445c63737e9aae4c97840 (patch)
treec29c1323f34debd24c7e1d092f6d09f61cebe745 /src/soc/intel/tigerlake/chip.c
parentb71fb5282eaeccc1b35cc0ace6260c7beaa15d0d (diff)
downloadcoreboot-0e971e11a03afc6a983445c63737e9aae4c97840.tar.gz
coreboot-0e971e11a03afc6a983445c63737e9aae4c97840.tar.bz2
coreboot-0e971e11a03afc6a983445c63737e9aae4c97840.zip
soc/intel: Fix ACPI device operations initialization
Initialize ACPI device operations only when CONFIG_HAVE_ACPI_TABLES is enabled. BUG=None TEST=Build Test Change-Id: I5c5266885d8b08338d17a87bb95110765882120e Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38309 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/tigerlake/chip.c')
-rw-r--r--src/soc/intel/tigerlake/chip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/intel/tigerlake/chip.c b/src/soc/intel/tigerlake/chip.c
index 530893ceca99..d05fbdfdde12 100644
--- a/src/soc/intel/tigerlake/chip.c
+++ b/src/soc/intel/tigerlake/chip.c
@@ -156,7 +156,9 @@ static struct device_operations cpu_bus_ops = {
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
.init = DEVICE_NOOP,
+#if CONFIG(HAVE_ACPI_TABLES)
.acpi_fill_ssdt_generator = generate_cpu_entries,
+#endif
};
static void soc_enable(struct device *dev)