summaryrefslogtreecommitdiff
path: root/driver/temp_sensor
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2022-01-14 15:43:08 -0700
committerCommit Bot <commit-bot@chromium.org>2022-01-21 19:21:32 +0000
commitbea2fab35336fc820c027e47e6df91c61a282c4b (patch)
treeb7eb17c9a081358eb305351dee177a369f4e50b8 /driver/temp_sensor
parent86f19b3430623dab7ce8089a7d3564a98705c5ac (diff)
downloadchrome-ec-bea2fab35336fc820c027e47e6df91c61a282c4b.tar.gz
Zephyr: Add PCT2075 devicetree support
Add support for configuring the PCT2075 in the zephyr devicetree. BRANCH=None BUG=b:208515128 TEST=zmake testall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ibb9f86441131378e870d1cb85da842d1bc4c2859 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3390525 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'driver/temp_sensor')
-rw-r--r--driver/temp_sensor/pct2075.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/temp_sensor/pct2075.c b/driver/temp_sensor/pct2075.c
index aecbd4726e..a5458c72fb 100644
--- a/driver/temp_sensor/pct2075.c
+++ b/driver/temp_sensor/pct2075.c
@@ -13,6 +13,10 @@
#include "temp_sensor/pct2075.h"
#include "util.h"
+#ifdef CONFIG_ZEPHYR
+#include "temp_sensor/temp_sensor.h"
+#endif
+
#define PCT2075_RESOLUTION 11
#define PCT2075_SHIFT1 (16 - PCT2075_RESOLUTION)
#define PCT2075_SHIFT2 (PCT2075_RESOLUTION - 8)