diff options
Diffstat (limited to 'src/soc/amd')
-rw-r--r-- | src/soc/amd/cezanne/chip.h | 9 | ||||
-rw-r--r-- | src/soc/amd/cezanne/root_complex.c | 11 | ||||
-rw-r--r-- | src/soc/amd/mendocino/chip.h | 9 | ||||
-rw-r--r-- | src/soc/amd/mendocino/root_complex.c | 11 |
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) |