diff options
author | Michał Barnaś <mb@semihalf.com> | 2021-11-30 16:35:56 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-10 17:21:29 +0000 |
commit | 42d03a00128e4be0d149e6142d1987518cfead20 (patch) | |
tree | f90472caaeb0ffe85b64afe1b093207f50e8e2d9 /board/felwinter | |
parent | 6f2db445178f9e682cf8438d8d6b996551ae0eaa (diff) | |
download | chrome-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 'board/felwinter')
-rw-r--r-- | board/felwinter/board.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/felwinter/board.h b/board/felwinter/board.h index 2ed000efa3..064ce51e54 100644 --- a/board/felwinter/board.h +++ b/board/felwinter/board.h @@ -109,6 +109,7 @@ #define GPIO_PCH_RTCRST GPIO_EC_PCH_RTCRST #define GPIO_PCH_SLP_S0_L GPIO_SYS_SLP_S0IX_L #define GPIO_PCH_SLP_S3_L GPIO_SLP_S3_L +#define GPIO_TEMP_SENSOR_POWER GPIO_SEQ_EC_DSW_PWROK #define GMR_TABLET_MODE_GPIO_L GPIO_TABLET_MODE_L /* @@ -171,7 +172,7 @@ /* Thermal features */ #define CONFIG_THERMISTOR #define CONFIG_TEMP_SENSOR -#define CONFIG_TEMP_SENSOR_POWER_GPIO GPIO_SEQ_EC_DSW_PWROK +#define CONFIG_TEMP_SENSOR_POWER #define CONFIG_STEINHART_HART_3V3_30K9_47K_4050B #define CONFIG_FANS FAN_CH_COUNT |