summaryrefslogtreecommitdiff
path: root/baseboard
diff options
context:
space:
mode:
authorMichał Barnaś <mb@semihalf.com>2021-11-30 16:35:56 +0100
committerCommit Bot <commit-bot@chromium.org>2022-01-10 17:21:29 +0000
commit42d03a00128e4be0d149e6142d1987518cfead20 (patch)
treef90472caaeb0ffe85b64afe1b093207f50e8e2d9 /baseboard
parent6f2db445178f9e682cf8438d8d6b996551ae0eaa (diff)
downloadchrome-ec-42d03a00128e4be0d149e6142d1987518cfead20.tar.gz
config: change temp_sensor_power from config to gpio
Split the temp_sensor_power config to separate config and gpio definition. To match the behavior of other optional gpios, there should be config that enables support for feature that requires gpio and per-board define that assigns custom GPIO name to board specific one. BRANCH=main BUG=b:181983966 TEST=zmake testall, compare_build.sh Change-Id: I57ff2532444960170d7a8a08027f13fbce8f34a2 Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3314583 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r--baseboard/dedede/baseboard.h3
-rw-r--r--baseboard/intelrvp/baseboard.h3
-rw-r--r--baseboard/volteer/baseboard.h3
3 files changed, 6 insertions, 3 deletions
diff --git a/baseboard/dedede/baseboard.h b/baseboard/dedede/baseboard.h
index ca0d83d77e..c14f22b6d0 100644
--- a/baseboard/dedede/baseboard.h
+++ b/baseboard/dedede/baseboard.h
@@ -199,7 +199,8 @@
#define CONFIG_USBC_VCONN_SWAP
/* Temp Sensor */
-#define CONFIG_TEMP_SENSOR_POWER_GPIO GPIO_EN_PP3300_A
+#define CONFIG_TEMP_SENSOR_POWER
+#define GPIO_TEMP_SENSOR_POWER GPIO_EN_PP3300_A
#define CONFIG_TEMP_SENSOR_FIRST_READ_DELAY_MS 500
/* USB PD */
diff --git a/baseboard/intelrvp/baseboard.h b/baseboard/intelrvp/baseboard.h
index 8f7d22350e..50eb6ff1f2 100644
--- a/baseboard/intelrvp/baseboard.h
+++ b/baseboard/intelrvp/baseboard.h
@@ -160,7 +160,8 @@
/* Temperature sensor */
#ifdef CONFIG_TEMP_SENSOR
#define CONFIG_STEINHART_HART_3V0_22K6_47K_4050B
- #define CONFIG_TEMP_SENSOR_POWER_GPIO GPIO_EN_PP3300_A
+ #define CONFIG_TEMP_SENSOR_POWER
+ #define GPIO_TEMP_SENSOR_POWER GPIO_EN_PP3300_A
#define CONFIG_THERMISTOR
#define CONFIG_THROTTLE_AP
#ifdef CONFIG_PECI
diff --git a/baseboard/volteer/baseboard.h b/baseboard/volteer/baseboard.h
index 36acc0c577..75165d0cbc 100644
--- a/baseboard/volteer/baseboard.h
+++ b/baseboard/volteer/baseboard.h
@@ -97,7 +97,8 @@
/* Thermal features */
#define CONFIG_FANS FAN_CH_COUNT
#define CONFIG_TEMP_SENSOR
-#define CONFIG_TEMP_SENSOR_POWER_GPIO GPIO_PG_EC_DSW_PWROK
+#define CONFIG_TEMP_SENSOR_POWER
+#define GPIO_TEMP_SENSOR_POWER GPIO_PG_EC_DSW_PWROK
#define CONFIG_THERMISTOR
#define CONFIG_STEINHART_HART_3V3_30K9_47K_4050B
#define CONFIG_THROTTLE_AP