summaryrefslogtreecommitdiff
path: root/firmware_builder.py
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2021-03-18 09:44:55 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-18 19:56:57 +0000
commitd7fbb48e0334957aae229d826e9df832ef3b69f8 (patch)
treebc983a70034a806df046cd7d42086a00f0adf2ff /firmware_builder.py
parent29b492c095675a991147fdde0f586aa9efc94da9 (diff)
downloadchrome-ec-d7fbb48e0334957aae229d826e9df832ef3b69f8.tar.gz
zephyr: lazor: enable ADC
Enable ADC. Lazor uses ADC_0 channel 1, 2, and 3. The channel 1 is scaled down VBUS through a 1/10 voltage divider. The zephyr driver returns the exact voltage, which is VBUS * 1/10. The channel 2 is AMON_BMON voltage which is not enabled until the charger task is setup. The channel 3 is PSYS voltage which is zero. PSYS monitoring is not enabled unless the process is in S0. BUG=b:182398910 BRANCH=None TEST=Tested on Lazor: uart: ~$ adc ADC_VBUS = 500 mV ADC_AMON_BMON = 13 mV ADC_PSYS = 0 mV Change-Id: Ie45da85e24ee4a568da2542192a053d6abdd2cfc Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2774078 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'firmware_builder.py')
0 files changed, 0 insertions, 0 deletions