diff options
author | Simon Glass <sjg@chromium.org> | 2021-04-13 17:30:10 +1200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-13 22:37:00 +0000 |
commit | 8bbececa9a763803ecaf4169919bb9cca22eb558 (patch) | |
tree | 2ce125d3a4745d1ace88e89b580a7a463f659b98 /zephyr | |
parent | 3417507ffb8c84a6afa2ab5895e83146c53a82cd (diff) | |
download | chrome-ec-8bbececa9a763803ecaf4169919bb9cca22eb558.tar.gz |
zephyr: Enable BC12_SINGLE_DRIVER and CHARGER_SINGLE_CHIP
These CONFIGs are defined with ECOS so we should define them for
Zephyr also.
CONFIG_BC12_SINGLE_DRIVER enables a base bc12_ports[] array and
CONFIG_CHARGER_SINGLE_CHIP indicates that there is only one
charger chip.
BUG=b:183296099
BRANCH=none
TEST=Build lazor on zephyr; no obvious changes when run
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I0dbaf829f878327ff02c8053722bec50be84b8e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2822398
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/shim/include/config_chip.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index 303f3deb29..d8ce653fe1 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -98,6 +98,13 @@ #undef CONFIG_CHIP_PRE_INIT #define CONFIG_CHIP_PRE_INIT +/* This is currently always enabled by ECOS */ +#undef CONFIG_BC12_SINGLE_DRIVER +#define CONFIG_BC12_SINGLE_DRIVER + +#undef CONFIG_CHARGER_SINGLE_CHIP +#define CONFIG_CHARGER_SINGLE_CHIP + /* EC chipset configuration */ #define HOOK_TICK_INTERVAL CONFIG_CROS_EC_HOOK_TICK_INTERVAL #define HOOK_TICK_INTERVAL_MS (HOOK_TICK_INTERVAL / 1000) |