diff options
author | Peter Marheine <pmarheine@chromium.org> | 2022-03-11 16:46:01 +1100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-03-15 05:44:01 +0000 |
commit | 3feb5b5de422763e2a485b73b4adf973c5c40701 (patch) | |
tree | 46c4994fb97fc96f9ca79ea34d48b6c478adbf7d /zephyr/CMakeLists.txt | |
parent | 4de0a08e5d3da0dd7997efdd6a35fe33b2af6397 (diff) | |
download | chrome-ec-3feb5b5de422763e2a485b73b4adf973c5c40701.tar.gz |
zephyr: support smart USB-A port control
This enables support for "smart" USB-A ports in addition
to the existing "dumb" support, allowing one of them to
be selected as well as implementing kconfig support for
most of the other options for "smart" ports.
For existing boards that enabled USB-A support with the default
"dumb" support, their configuration is changed to specifically
select that mode because the new choice option cannot have a
default.
BUG=b:223937974
TEST="smart" port control can be turned on for Nereid
BRANCH=none
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Change-Id: If5b0fb393451d31a937c73be2aa3b9623c69307f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3517929
Reviewed-by: Andrew McRae <amcrae@google.com>
Diffstat (limited to 'zephyr/CMakeLists.txt')
-rw-r--r-- | zephyr/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index caf13efc0c..3fd43a73eb 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -371,6 +371,8 @@ zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USB_CHARGER "${PLATFORM_EC}/common/usb_charger.c") zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USB_PORT_POWER_DUMB "${PLATFORM_EC}/common/usb_port_power_dumb.c") +zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USB_PORT_POWER_SMART + "${PLATFORM_EC}/common/usb_port_power_smart.c") zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USB_POWER_DELIVERY "${PLATFORM_EC}/common/usb_common.c" |