From 9d1c9ee2121171f38d651ef4ffa8f7eef274b41d Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Wed, 20 Jul 2022 15:20:27 +0100 Subject: [PATCH] soc/apollolake: Add DPTF HIDs Add the HIDs that Windows uses for the DPTF driver. Change-Id: Ic0cb4a45b5ebaf777a09bed1e5836e8afd873657 Signed-off-by: Sean Rhodes Reviewed-on: https://review.coreboot.org/c/coreboot/+/66013 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/soc/intel/apollolake/Makefile.inc | 1 + src/soc/intel/apollolake/dptf.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/soc/intel/apollolake/dptf.c diff --git a/src/soc/intel/apollolake/Makefile.inc b/src/soc/intel/apollolake/Makefile.inc index 107a913932..00adb9cb50 100644 --- a/src/soc/intel/apollolake/Makefile.inc +++ b/src/soc/intel/apollolake/Makefile.inc @@ -49,6 +49,7 @@ ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c ramstage-y += cpu.c ramstage-y += chip.c ramstage-y += cse.c +ramstage-y += dptf.c ramstage-y += elog.c ramstage-y += graphics.c ramstage-y += gspi.c diff --git a/src/soc/intel/apollolake/dptf.c b/src/soc/intel/apollolake/dptf.c new file mode 100644 index 0000000000..b5accc99c5 --- /dev/null +++ b/src/soc/intel/apollolake/dptf.c @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include + +static const struct dptf_platform_info apl_dptf_platform_info = { + .use_eisa_hids = true, + /* _HID for the toplevel DPTF device, typically \_SB.DPTF */ + .dptf_device_hid = "INT3400", + /* _HID for Intel DPTF Generic Device (these require PTYP as well) */ + .generic_hid = "INT3403", + /* _HID for Intel DPTF Fan Device */ + .fan_hid = "INT3404", +}; + +const struct dptf_platform_info *get_dptf_platform_info(void) +{ + return &apl_dptf_platform_info; +}