summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.usbc
diff options
context:
space:
mode:
authorMichał Barnaś <mb@semihalf.com>2021-05-24 19:53:49 +0200
committerCommit Bot <commit-bot@chromium.org>2021-05-26 16:15:17 +0000
commit965aa277532eb48bb511a56c252a5d6dd182e036 (patch)
tree1320c640b07712ccbe3ce054b2ed7939505d5dcf /zephyr/Kconfig.usbc
parent95034fd21dcd89c0edff5cc2fbf23c06749f09f7 (diff)
downloadchrome-ec-965aa277532eb48bb511a56c252a5d6dd182e036.tar.gz
zephyr: Add IT8XXX drivers to Kconfig
There was no possibility to use ITE_ON_CHIP in zephyr. This commit adds possibility to use it as TCPM. It adds also Kconfigs for IT8XXX2 and IT83XX drivers BUG=b:182500469 BRANCH=none TEST=Manipulate prj.conf to check if drivers are compiled: PLATFORM_EC_USB_PD_TCPM_ITE_ON_CHIP=y PLATFORM_EC_USB_PD_TCPM_DRIVER_IT83XX=y PLATFORM_EC_USB_PD_TCPM_DRIVER_IT8XXX2=y Try building with different options. Eg. enabling drivers without using ITE_ON_CHIP should change nothing in build. Signed-off-by: Michał Barnaś <mb@semihalf.com> Change-Id: I31a9a6899123b855ed82d92b46f023db77714b5a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2919909 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.usbc')
-rw-r--r--zephyr/Kconfig.usbc16
1 files changed, 15 insertions, 1 deletions
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc
index 60aaec31d6..99935a1735 100644
--- a/zephyr/Kconfig.usbc
+++ b/zephyr/Kconfig.usbc
@@ -786,10 +786,14 @@ config PLATFORM_EC_USB_PD_TCPM_TCPCI
Note: most of the TCPC will depend on PLATFORM_EC_USB_PD_TCPM_TCPCI.
+config PLATFORM_EC_USB_PD_TCPM_ITE_ON_CHIP
+ bool "Use on-chip ITE"
+ help
+ Use ITE series TCPM driver on the board
+
# TODO: Add other choices:
# CONFIG_USB_PD_TCPM_STUB
# CONFIG_USB_PD_TCPM_FUSB302
-# CONFIG_USB_PD_TCPM_ITE_ON_CHIP
# CONFIG_USB_PD_TCPM_ANX3429
# CONFIG_USB_PD_TCPM_ANX740X
# CONFIG_USB_PD_TCPM_ANX741X
@@ -992,6 +996,16 @@ config PLATFORM_EC_CONSOLE_CMD_TCPC_DUMP
endif # PLATFORM_EC_USB_PD_TCPM_TCPCI
+config PLATFORM_EC_USB_PD_TCPM_DRIVER_IT83XX
+ bool "Enable IT83XX driver"
+ depends on PLATFORM_EC_USB_PD_TCPM_ITE_ON_CHIP
+ default n
+
+config PLATFORM_EC_USB_PD_TCPM_DRIVER_IT8XXX2
+ bool "Enable IT8XXX2 driver"
+ depends on PLATFORM_EC_USB_PD_TCPM_ITE_ON_CHIP
+ default n
+
endif # PLATFORM_EC_USBC_PPC
config PLATFORM_EC_USB_PD_ONLY_FIXED_PDOS