summaryrefslogtreecommitdiff
path: root/board/dewatt/board.c
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2021-08-06 14:15:56 -0600
committerCommit Bot <commit-bot@chromium.org>2021-08-25 16:48:00 +0000
commit65e82a3f49ab5077021e8dd16e1816d71f3d96cc (patch)
treee94a62595672e81f0087bdd26470f7ec269f13bf /board/dewatt/board.c
parenta21cecdf596ea520de514ca632303c0d0188b179 (diff)
downloadchrome-ec-65e82a3f49ab5077021e8dd16e1816d71f3d96cc.tar.gz
tmp112: Support reading TMP112 in millikelvin
TMP112 supports .0625 degrees of resolution. Retain this resolution and support reading the temp in degrees millikelvin. BUG=b:176994331 TEST=Build and run on guybrush BRANCH=None Change-Id: I2802016b1edb08678953238e7f01acdd320c37cf Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3001391 Commit-Queue: Diana Z <dzigterman@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/dewatt/board.c')
-rw-r--r--board/dewatt/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/dewatt/board.c b/board/dewatt/board.c
index 54cc3a61a5..b773499326 100644
--- a/board/dewatt/board.c
+++ b/board/dewatt/board.c
@@ -370,5 +370,5 @@ int board_get_soc_temp(int idx, int *temp_k)
if (board_version == 1)
return get_temp_3v3_30k9_47k_4050b(ADC_TEMP_SENSOR_SOC, temp_k);
- return tmp112_get_val(idx, temp_k);
+ return tmp112_get_val_k(idx, temp_k);
}