summaryrefslogtreecommitdiff
path: root/zephyr/projects/trogdor/lazor/prj.conf
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 /zephyr/projects/trogdor/lazor/prj.conf
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 'zephyr/projects/trogdor/lazor/prj.conf')
-rw-r--r--zephyr/projects/trogdor/lazor/prj.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/projects/trogdor/lazor/prj.conf b/zephyr/projects/trogdor/lazor/prj.conf
index 1ae757870d..29105af85c 100644
--- a/zephyr/projects/trogdor/lazor/prj.conf
+++ b/zephyr/projects/trogdor/lazor/prj.conf
@@ -9,6 +9,8 @@ CONFIG_PLATFORM_EC_BRINGUP=y
CONFIG_PLATFORM_EC_EXTPOWER_GPIO=y
CONFIG_PLATFORM_EC_LID_SWITCH=y
CONFIG_PLATFORM_EC_POWER_BUTTON=y
+CONFIG_ADC=y
+CONFIG_ADC_SHELL=n
CONFIG_I2C=y
# Application Processor is Qualcomm SC7180