increase tcpc timeout to wait detect charge type

factory test cannot connect network port
increase polling times

Change-Id: I6878a40336249aae296c3b0729e70a421ff828cf
Signed-off-by: longc104 <longc104@motorola.com>
Reviewed-on: https://gerrit.mot.com/2250326
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ying Shen <shenying@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
This commit is contained in:
longc104 2022-04-22 18:47:06 +08:00
commit 56dbe16abe
3 changed files with 11 additions and 0 deletions

View file

@ -34,6 +34,9 @@ ifeq ($(USB_POWER_DELIVERY),true)
KERNEL_CFLAGS += CONFIG_USB_POWER_DELIVERY=y
endif
ifeq ($(TCPC_DEVON_POLLING_TIME),true)
KERNEL_CFLAGS += CONFIG_TCPC_DEVON_POLLING_TIME=y
endif
include $(CLEAR_VARS)

View file

@ -23,6 +23,10 @@ ifneq ($(filter m y,$(CONFIG_TCPC_SGM7220)),)
obj-m += tcpc_sgm7220.o
endif
ifneq ($(filter m y,$(CONFIG_TCPC_DEVON_POLLING_TIME)),)
EXTRA_CFLAGS += -DCONFIG_TCPC_DEVON_POLLING_TIME
endif
tcpc_class-objs += tcpci_core.o tcpci_typec.o tcpci_timer.o \
tcpm.o tcpci.o pd_dbg_info.o tcpci_alert.o rt-regmap.o tcpci_dual_role.o

View file

@ -30,7 +30,11 @@
#define PROBE_CNT_MAX 3
/* 10ms * 100 = 1000ms = 1s */
#define USB_TYPE_POLLING_INTERVAL 10
#ifdef CONFIG_TCPC_DEVON_POLLING_TIME
#define USB_TYPE_POLLING_CNT_MAX 130
#else
#define USB_TYPE_POLLING_CNT_MAX 100
#endif
enum dr {
DR_IDLE,