zephyr/drivers/usb_c/tcpc/Kconfig.tcpc_tcpci
Michał Barnaś 198e040b4e usbc: add generic TCPCI related functions
Add generic functions that will be common to all TCPCI compliant
drivers like registers reading, writing and updating.

Signed-off-by: Michał Barnaś <barnas@google.com>
2024-09-23 10:03:19 +02:00

25 lines
774 B
Text

# USB-C TCPCI-compliant devices configuration options
# Copyright 2024 Google LLC
# SPDX-License-Identifier: Apache-2.0
config USBC_TCPC_TCPCI
bool
select I2C
help
Enable support for Type-C Port Controller Interface.
This symbol should be selected by TCPCI-compliant drivers to allow the use of generic
TCPCI functions for registers operations.
if USBC_TCPC_TCPCI
config USBC_TCPC_TCPCI_I2C_RETRIES
int "I2C communication retries"
default 2
help
Number of I2C transaction tries that will be performed for each request.
Some TCPCs are going into deep sleep mode when no charger is connected and won't respond
to the i2c address immediately. If device won't respond after retries, it means that
it is not responsible or is not connected.
endif