diff options
author | Wai-Hong Tam <waihong@google.com> | 2021-03-19 12:53:07 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-24 00:36:26 +0000 |
commit | b8cee54d69416a4035e5a34be196656bf68036c5 (patch) | |
tree | 204cbc5cc7a8576f49ebe6fbf986226e42c51787 /board/marzipan | |
parent | ae877144d1a7a448af3fe5b74a8bebf6abc7f9cf (diff) | |
download | chrome-ec-b8cee54d69416a4035e5a34be196656bf68036c5.tar.gz |
zephyr: lazor: define ADC mul and div factors
Copy the mul and div factors from board/lazor/board.c.
The ADC_PSYS doesn't need the hack to handle the overflow;
just set the mul factor to 124000.
BUG=b:182398910
BRANCH=None
TEST=Tested on Lazor:
uart:~$ adc
ADC_VBUS = 5060 mV
ADC_AMON_BMON = 611 mV
ADC_PSYS = 0 mV
Change-Id: I3bd4a30eae04c584efaa2ed302b2b65e4fb4ced7
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2779749
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/marzipan')
0 files changed, 0 insertions, 0 deletions