summaryrefslogtreecommitdiff
path: root/zephyr/projects/trogdor/lazor
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-27 15:52:27 +1300
committerCommit Bot <commit-bot@chromium.org>2021-04-01 05:50:51 +0000
commit6c1b3648fd83c8e260e46f9b038fa79c6d0458b4 (patch)
tree8efd76436247a95aac3a3abacb5476083b382a32 /zephyr/projects/trogdor/lazor
parent338ad19ff83e09b5ce59ed2c10c45ef191ea0482 (diff)
downloadchrome-ec-6c1b3648fd83c8e260e46f9b038fa79c6d0458b4.tar.gz
zephyr: Add support for setting charger sense-resistors
We need a different value for lazor, so move this to Kconfig. We may at some point move this to device tree. BUG=b:183296099, b:175881762 BRANCH=none TEST=with other CLs, build zephyr for lazor and see that the option is present build config for volteer and make sure it has not changed Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I7b5fa6a03ba24028006f6a1a8516e9244308fe76 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2788833 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/trogdor/lazor')
-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 25dcae5e4a..ec9cc78c66 100644
--- a/zephyr/projects/trogdor/lazor/prj.conf
+++ b/zephyr/projects/trogdor/lazor/prj.conf
@@ -60,6 +60,8 @@ CONFIG_PLATFORM_EC_BATTERY_CUT_OFF=y
CONFIG_PLATFORM_EC_BATTERY_PRESENT_GPIO=y
CONFIG_PLATFORM_EC_CHARGER_ISL9238=y
CONFIG_PLATFORM_EC_CHARGE_RAMP_HW=y
+CONFIG_PLATFORM_EC_CHARGER_SENSE_RESISTOR=10
+CONFIG_PLATFORM_EC_CHARGER_SENSE_RESISTOR_AC=20
# USB-A
CONFIG_PLATFORM_EC_USB_A_PORT_COUNT=1