summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Van Patten <timvp@google.com>2022-08-29 12:11:27 -0600
committerFelix Held <felix-coreboot@felixheld.de>2022-09-12 12:42:04 +0000
commitb4b85ebf606b61e4d78aec0742d0652654049717 (patch)
tree68e238babe77fb5f5b36f504fd4583e26b4193d7 /src
parentc8a86954f3336da19c96320b6c695ea4a25a8990 (diff)
soc/amd: Remove unsupported DPTC tablet mode settings
The following boards are setting DTPC tablet mode values without corresponding device tree values, meaning they are effectively setting "random" values for tablet mode: 1. Cezanne 2. Mendocino The device tree has tablet mode disabled, so the code should never be exercised, but this CL removes it entirely to cleanup "dead" code. BRANCH=none BUG=b:217911928 TEST=Build nipperkin TEST=Boot skyrim Signed-off-by: Tim Van Patten <timvp@google.com> Change-Id: Ide96f255b69670d1b4c37ca2f94cc3504a958b57 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67181 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/soc/amd/cezanne/chip.h9
-rw-r--r--src/soc/amd/cezanne/root_complex.c11
-rw-r--r--src/soc/amd/mendocino/chip.h9
-rw-r--r--src/soc/amd/mendocino/root_complex.c11
4 files changed, 4 insertions, 36 deletions
diff --git a/src/soc/amd/cezanne/chip.h b/src/soc/amd/cezanne/chip.h
index 74f60ffaad..b22590a021 100644
--- a/src/soc/amd/cezanne/chip.h
+++ b/src/soc/amd/cezanne/chip.h
@@ -86,14 +86,7 @@ struct soc_amd_cezanne_config {
uint32_t telemetry_vddcrsocfull_scale_current_mA;
uint32_t telemetry_vddcrsocoffset;
- /* Enable dptc tablet mode */
- bool dptc_tablet_mode_enable;
-
- /* STAPM Configuration for tablet mode */
- uint32_t fast_ppt_limit_tablet_mode_mW;
- uint32_t slow_ppt_limit_tablet_mode_mW;
- uint32_t sustained_power_limit_tablet_mode_mW;
- uint32_t thermctl_limit_tablet_mode_degreeC;
+ bool dptc_enable;
/* The array index is the general purpose PCIe clock output number. Values in here
aren't the values written to the register to have the default to be always on. */
diff --git a/src/soc/amd/cezanne/root_complex.c b/src/soc/amd/cezanne/root_complex.c
index c67a6f7481..77a94f52d7 100644
--- a/src/soc/amd/cezanne/root_complex.c
+++ b/src/soc/amd/cezanne/root_complex.c
@@ -186,7 +186,7 @@ static void acipgen_dptci(void)
{
const struct soc_amd_cezanne_config *config = config_of_soc();
- if (!config->dptc_tablet_mode_enable)
+ if (!config->dptc_enable)
return;
/* DPTC is enabled. Always fill out the default DPTC values. */
@@ -195,15 +195,6 @@ static void acipgen_dptci(void)
config->fast_ppt_limit_mW,
config->slow_ppt_limit_mW);
acpigen_write_alib_dptc_default((uint8_t *)&default_input, sizeof(default_input));
-
- /* Tablet Mode */
- struct dptc_input tablet_mode_input = DPTC_INPUTS(
- config->thermctl_limit_tablet_mode_degreeC,
- config->sustained_power_limit_tablet_mode_mW,
- config->fast_ppt_limit_tablet_mode_mW,
- config->slow_ppt_limit_tablet_mode_mW);
- acpigen_write_alib_dptc_tablet((uint8_t *)&tablet_mode_input,
- sizeof(tablet_mode_input));
}
static void root_complex_fill_ssdt(const struct device *device)
diff --git a/src/soc/amd/mendocino/chip.h b/src/soc/amd/mendocino/chip.h
index 654294d186..7b33340736 100644
--- a/src/soc/amd/mendocino/chip.h
+++ b/src/soc/amd/mendocino/chip.h
@@ -82,14 +82,7 @@ struct soc_amd_mendocino_config {
uint32_t telemetry_vddcrsocfull_scale_current_mA;
uint32_t telemetry_vddcrsocoffset;
- /* Enable dptc tablet mode */
- bool dptc_tablet_mode_enable;
-
- /* STAPM Configuration for tablet mode */
- uint32_t fast_ppt_limit_tablet_mode_mW;
- uint32_t slow_ppt_limit_tablet_mode_mW;
- uint32_t sustained_power_limit_tablet_mode_mW;
- uint32_t thermctl_limit_tablet_mode_degreeC;
+ bool dptc_enable;
/* The array index is the general purpose PCIe clock output number. Values in here
aren't the values written to the register to have the default to be always on. */
diff --git a/src/soc/amd/mendocino/root_complex.c b/src/soc/amd/mendocino/root_complex.c
index 8d15feb6f1..ec1e2304a2 100644
--- a/src/soc/amd/mendocino/root_complex.c
+++ b/src/soc/amd/mendocino/root_complex.c
@@ -188,7 +188,7 @@ static void acipgen_dptci(void)
{
const struct soc_amd_mendocino_config *config = config_of_soc();
- if (!config->dptc_tablet_mode_enable)
+ if (!config->dptc_enable)
return;
/* DPTC is enabled. Always fill out the default DPTC values. */
@@ -197,15 +197,6 @@ static void acipgen_dptci(void)
config->fast_ppt_limit_mW,
config->slow_ppt_limit_mW);
acpigen_write_alib_dptc_default((uint8_t *)&default_input, sizeof(default_input));
-
- /* Tablet Mode */
- struct dptc_input tablet_mode_input = DPTC_INPUTS(
- config->thermctl_limit_tablet_mode_degreeC,
- config->sustained_power_limit_tablet_mode_mW,
- config->fast_ppt_limit_tablet_mode_mW,
- config->slow_ppt_limit_tablet_mode_mW);
- acpigen_write_alib_dptc_tablet((uint8_t *)&tablet_mode_input,
- sizeof(tablet_mode_input));
}
static void root_complex_fill_ssdt(const struct device *device)