diff options
author | amber.chen <amber.chen@lcfc.corp-partner.google.com> | 2022-03-10 18:44:22 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-03-14 05:42:18 +0000 |
commit | 7c2e48bd49466b56e1bcc7b1ed48ac4ffd35cd29 (patch) | |
tree | 9d953ee93da15db2a22b61dd04e3840927abb815 /zephyr | |
parent | 920d2a821d82af8f17604a9a0af4a10219d3adf4 (diff) | |
download | chrome-ec-7c2e48bd49466b56e1bcc7b1ed48ac4ffd35cd29.tar.gz |
taeko: modify for Prochot function setting
modify for R423 change to 402k for 2s setting that the
PROCHOT# to LOW when Vsys under 6v.
BUG=b:210073795
BRANCH=none
TEST=make -j BOARD=taeko
Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com>
Change-Id: Iabaa488432d494e89c48b495d9dac0e4920f5c3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3515357
Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/Kconfig.charger | 10 | ||||
-rw-r--r-- | zephyr/shim/include/config_chip.h | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/zephyr/Kconfig.charger b/zephyr/Kconfig.charger index 6b0223719e..232e3030df 100644 --- a/zephyr/Kconfig.charger +++ b/zephyr/Kconfig.charger @@ -289,6 +289,16 @@ config PLATFORM_EC_CHARGER_BQ25710_BATOC_VTH_MINIMUM on the bq25710 and 133% of PROCHOT IDCHG_TH2 on the bq25720. The default threshold is 200% on both chips. +config PLATFORM_EC_CHARGER_BQ25710_PP_COMP + bool "Enable independent comparator PROCHOT" + default n + depends on PLATFORM_EC_CHARGER_BQ25710 || PLATFORM_EC_CHARGER_BQ25720 + help + Sets the PP_COMP in Prochot Option 1 register. When in low power + mode(Battery only), this bit will lose controllability to independent + comparator PROCHOT profiles. Need to use EN_PROCHOT_LPWR to enable + independent comparator and its PROCHOT profile. + config PLATFORM_EC_CHARGER_BQ25710_PP_INOM bool "Enable PROCHOT on adapter current exceeding INOM" default n diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index 42145d01bb..0bbd216ff7 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -2134,6 +2134,11 @@ extern struct jump_data mock_jump_data; #define CONFIG_CHARGER_BQ25710_PP_ACOK #endif +#undef CONFIG_CHARGER_BQ25710_PP_COMP +#ifdef CONFIG_PLATFORM_EC_CHARGER_BQ25710_PP_COMP +#define CONFIG_CHARGER_BQ25710_PP_COMP +#endif + #undef CONFIG_CHARGER_BQ25720_PP_IDCHG2 #ifdef CONFIG_PLATFORM_EC_CHARGER_BQ25720_PP_IDCHG2 #define CONFIG_CHARGER_BQ25720_PP_IDCHG2 |