summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
authorTim Van Patten <timvp@google.com>2022-08-29 16:42:24 -0600
committerFelix Held <felix-coreboot@felixheld.de>2022-09-07 17:41:47 +0000
commit9f1588c26d3cc7760c18062d587823750c3271b9 (patch)
tree78284c619b4945e1953d0781dd9be2ef4fa6b851 /src/soc/amd
parent336fdfb65d5693004c345954bef882c91753074d (diff)
amd: Convert dptc_enable to bool
dptc_enable is being treated as a bool, so convert to explicitly be a bool. BRANCH=none BUG=b:217911928 TEST=Build zork TEST=Build guybrush TEST=Build skyrim Change-Id: I0e93d892b3b8016221812c8b9ec6c257dcf13ef5 Signed-off-by: Tim Van Patten <timvp@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/67188 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/cezanne/chip.h4
-rw-r--r--src/soc/amd/mendocino/chip.h4
-rw-r--r--src/soc/amd/picasso/chip.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/soc/amd/cezanne/chip.h b/src/soc/amd/cezanne/chip.h
index b01c6c7fa8..ab798be695 100644
--- a/src/soc/amd/cezanne/chip.h
+++ b/src/soc/amd/cezanne/chip.h
@@ -86,8 +86,8 @@ struct soc_amd_cezanne_config {
uint32_t telemetry_vddcrsocfull_scale_current_mA;
uint32_t telemetry_vddcrsocoffset;
- /* Enable dptc for tablet mode (0 = disable, 1 = enable) */
- uint8_t dptc_enable;
+ /* Enable dptc for tablet mode */
+ bool dptc_enable;
/* STAPM Configuration for tablet mode (need enable dptc_enable first) */
uint32_t fast_ppt_limit_tablet_mode_mW;
diff --git a/src/soc/amd/mendocino/chip.h b/src/soc/amd/mendocino/chip.h
index 2122262147..a1e4eb951f 100644
--- a/src/soc/amd/mendocino/chip.h
+++ b/src/soc/amd/mendocino/chip.h
@@ -82,8 +82,8 @@ struct soc_amd_mendocino_config {
uint32_t telemetry_vddcrsocfull_scale_current_mA;
uint32_t telemetry_vddcrsocoffset;
- /* Enable dptc for tablet mode (0 = disable, 1 = enable) */
- uint8_t dptc_enable;
+ /* Enable dptc for tablet mode */
+ bool dptc_enable;
/* STAPM Configuration for tablet mode (need enable dptc_enable first) */
uint32_t fast_ppt_limit_tablet_mode_mW;
diff --git a/src/soc/amd/picasso/chip.h b/src/soc/amd/picasso/chip.h
index 72943cd616..dbf0339a11 100644
--- a/src/soc/amd/picasso/chip.h
+++ b/src/soc/amd/picasso/chip.h
@@ -117,8 +117,8 @@ struct soc_amd_picasso_config {
uint32_t stapm_time_constant_s;
uint32_t sustained_power_limit_mW;
- /* Enable dptc for tablet mode (0 = disable, 1 = enable) */
- uint8_t dptc_enable;
+ /* Enable dptc for tablet mode */
+ bool dptc_enable;
/* STAPM Configuration for tablet mode (need enable dptc_enable first) */
uint32_t fast_ppt_limit_tablet_mode_mW;