summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Soller <jeremy@system76.com>2021-08-12 10:49:58 -0600
committerFelix Held <felix-coreboot@felixheld.de>2021-08-24 14:45:36 +0000
commit301b09b3e618b361502fa6065a28fa30d50e0c67 (patch)
tree9d63922cb02e88b5dbe496f9f7880031b51a80d3 /src
parent49759f602535075002991793d747f29505b87e46 (diff)
soc/intel/tigerlake: Add TGL-H power limits
Convert the power limit defines to an enum and add TGL-H entries. Change-Id: I6fa7c7338b3157b29ff72769238597e3c528aedb Signed-off-by: Jeremy Soller <jeremy@system76.com> Signed-off-by: Tim Crawford <tcrawford@system76.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56943 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/tigerlake/chip.h14
-rw-r--r--src/soc/intel/tigerlake/systemagent.c6
2 files changed, 15 insertions, 5 deletions
diff --git a/src/soc/intel/tigerlake/chip.h b/src/soc/intel/tigerlake/chip.h
index cc12da4a1a..966ce7c9c9 100644
--- a/src/soc/intel/tigerlake/chip.h
+++ b/src/soc/intel/tigerlake/chip.h
@@ -24,11 +24,15 @@
#define MAX_HD_AUDIO_SSP_LINKS 6
/* The first two are for TGL-U */
-#define POWER_LIMITS_U_2_CORE 0
-#define POWER_LIMITS_U_4_CORE 1
-#define POWER_LIMITS_Y_2_CORE 2
-#define POWER_LIMITS_Y_4_CORE 3
-#define POWER_LIMITS_MAX 4
+enum soc_intel_tigerlake_power_limits {
+ POWER_LIMITS_U_2_CORE,
+ POWER_LIMITS_U_4_CORE,
+ POWER_LIMITS_Y_2_CORE,
+ POWER_LIMITS_Y_4_CORE,
+ POWER_LIMITS_H_6_CORE,
+ POWER_LIMITS_H_8_CORE,
+ POWER_LIMITS_MAX
+};
/*
* Enable External V1P05 Rail in: BIT0:S0i1/S0i2,
diff --git a/src/soc/intel/tigerlake/systemagent.c b/src/soc/intel/tigerlake/systemagent.c
index 7b1813f318..f1aa60011b 100644
--- a/src/soc/intel/tigerlake/systemagent.c
+++ b/src/soc/intel/tigerlake/systemagent.c
@@ -90,6 +90,12 @@ void soc_systemagent_init(struct device *dev)
case PCI_DEVICE_ID_INTEL_TGL_ID_Y_4_2:
soc_config = &config->power_limits_config[POWER_LIMITS_Y_4_CORE];
break;
+ case PCI_DEVICE_ID_INTEL_TGL_ID_H_6_1:
+ soc_config = &config->power_limits_config[POWER_LIMITS_H_6_CORE];
+ break;
+ case PCI_DEVICE_ID_INTEL_TGL_ID_H_8_1:
+ soc_config = &config->power_limits_config[POWER_LIMITS_H_8_CORE];
+ break;
default:
printk(BIOS_ERR, "TGL: unknown SA ID: 0x%4x, skipping power limits "
"configuration\n", sa_pci_id);