diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2022-11-24 17:44:41 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-12-13 22:56:10 +0000 |
commit | d0dbbbd363b58400d6bdea6935eef4d3e1da7f7d (patch) | |
tree | 19cd11397ba66c542140b1ab62fdb55d02e01e7e /zephyr/Kconfig.usbc_ss_mux | |
parent | 74cf8aab5c3356574e3dadc89c67041ed8634811 (diff) | |
download | chrome-ec-d0dbbbd363b58400d6bdea6935eef4d3e1da7f7d.tar.gz |
zephyr: usb: set a bunch of USBC options automatically
Change most of the USBC options with an associated compatible string to
enable automatically when the corresponding device is defined in the
devicetree.
Most of these don't use the actual struct device yet and only enable a
corresponding ECOS option, and few boards have not been ported to have
the whole usb-c configuration in the devicetree, so some option is a
"default y if ..." rather than a "depends on" so that that can still be
enabled without the device tree node. That can be fixed in the future as
all the boards are ported.
This disables an option for: hoglin, villager, zoglin, zombie due to a
missing dt device (CONFIG_PLATFORM_EC_USBC_PPC_SN5S330) which was
otherwise enabled for all variations.
BRANCH=none
BUG=none
TEST=cq dry run
TEST=zmake compare-builds -a # catches the one above
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: Ifd543965c2867b35954f48a3fb7afa5289b6e940
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4054626
Reviewed-by: Yuval Peress <peress@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'zephyr/Kconfig.usbc_ss_mux')
-rw-r--r-- | zephyr/Kconfig.usbc_ss_mux | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/Kconfig.usbc_ss_mux b/zephyr/Kconfig.usbc_ss_mux index 5d09bb3b02..a5832a2375 100644 --- a/zephyr/Kconfig.usbc_ss_mux +++ b/zephyr/Kconfig.usbc_ss_mux @@ -37,6 +37,8 @@ config PLATFORM_EC_USBC_SS_MUX_DFP_ONLY config PLATFORM_EC_USB_MUX_VIRTUAL bool "USB Mux is virtual" + default y + depends on DT_HAS_CROS_EC_USBC_MUX_VIRTUAL_ENABLED depends on PLATFORM_EC_USBC_SS_MUX help Enable this if a virtual USB mux is supported on the EC, which is |