summaryrefslogtreecommitdiff
path: root/zephyr/projects
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 /zephyr/projects
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 'zephyr/projects')
-rw-r--r--zephyr/projects/volteer/volteer/include/gpio_map.h2
-rw-r--r--zephyr/projects/volteer/volteer/prj.conf1
2 files changed, 2 insertions, 1 deletions
diff --git a/zephyr/projects/volteer/volteer/include/gpio_map.h b/zephyr/projects/volteer/volteer/include/gpio_map.h
index 2d6f5f87ee..fe6e8d08ee 100644
--- a/zephyr/projects/volteer/volteer/include/gpio_map.h
+++ b/zephyr/projects/volteer/volteer/include/gpio_map.h
@@ -21,7 +21,7 @@
* Note we only need to create aliases for GPIOs that are referenced in common
* platform/ec code.
*/
-#define CONFIG_TEMP_SENSOR_POWER_GPIO GPIO_PG_EC_DSW_PWROK
+#define GPIO_TEMP_SENSOR_POWER GPIO_PG_EC_DSW_PWROK
/* Helper macros for generating CROS_EC_GPIO_INTERRUPTS */
#ifdef CONFIG_PLATFORM_EC_POWERSEQ
diff --git a/zephyr/projects/volteer/volteer/prj.conf b/zephyr/projects/volteer/volteer/prj.conf
index 6fe34b64f4..77f39a20e6 100644
--- a/zephyr/projects/volteer/volteer/prj.conf
+++ b/zephyr/projects/volteer/volteer/prj.conf
@@ -93,6 +93,7 @@ CONFIG_PLATFORM_EC_ALS_TCS3400=y
# Temperature sensors
CONFIG_PLATFORM_EC_TEMP_SENSOR=y
+CONFIG_PLATFORM_EC_TEMP_SENSOR_POWER=y
CONFIG_PLATFORM_EC_THERMISTOR=y
# Miscellaneous configs