mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
kahlee: Modify PD port2 I2C address and clean up unused function
1. PD vender suggests to use chip default address setting (0x16). 2. Clean up board_print_tcpc_fw version function and related define. BRANCH=None BUG=None TEST=Plug in type-c device and check behavior Change-Id: I44b7156c914b8de67630696e4534147cc3b7f2c3 Reviewed-on: https://chromium-review.googlesource.com/469449 Commit-Ready: Lin Cloud <cloud_lin@compal.com> Tested-by: Lin Cloud <cloud_lin@compal.com> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
@@ -178,7 +178,7 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_COUNT] = {
|
||||
},
|
||||
[1] = {
|
||||
.i2c_host_port = NPCX_I2C_PORT0_1,
|
||||
.i2c_slave_addr = 0x36,
|
||||
.i2c_slave_addr = 0x16,
|
||||
.drv = &tcpci_tcpm_drv,
|
||||
.pol = TCPC_ALERT_ACTIVE_LOW,
|
||||
},
|
||||
@@ -245,20 +245,6 @@ void board_reset_pd_mcu(void)
|
||||
gpio_set_level(GPIO_USB_C0_PD_RST_ODL, 1);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_USB_PD_TCPC_FW_VERSION
|
||||
void board_print_tcpc_fw_version(int port)
|
||||
{
|
||||
int rv;
|
||||
int version;
|
||||
|
||||
if (port >= 0)
|
||||
rv = ps8751_tcpc_get_fw_version(port, &version);
|
||||
|
||||
if (!rv)
|
||||
CPRINTS("TCPC p%d FW VER: 0x%x", port, version);
|
||||
}
|
||||
#endif
|
||||
|
||||
void board_tcpc_init(void)
|
||||
{
|
||||
int port, reg, reg2;
|
||||
|
||||
@@ -74,7 +74,6 @@
|
||||
#undef CONFIG_USB_PD_VBUS_DETECT_CHARGER
|
||||
#define ADC_VBUS -1
|
||||
#define CONFIG_USB_PD_TCPC_LOW_POWER
|
||||
#define CONFIG_USB_PD_TCPC_FW_VERSION
|
||||
#define CONFIG_USB_PD_TCPM_MUX
|
||||
#define CONFIG_USB_PD_TCPM_PS8751
|
||||
#define CONFIG_USB_PD_TCPM_TCPCI
|
||||
@@ -292,8 +291,6 @@ void board_reset_pd_mcu(void);
|
||||
|
||||
int board_get_version(void);
|
||||
|
||||
void board_print_tcpc_fw_version(int port);
|
||||
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __CROS_EC_BOARD_H */
|
||||
|
||||
@@ -2395,9 +2395,6 @@
|
||||
/* USB Device version of product */
|
||||
#undef CONFIG_USB_BCD_DEV
|
||||
|
||||
/* Support TCPC FW version */
|
||||
#undef CONFIG_USB_PD_TCPC_FW_VERSION
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/* Compile chip support for the USB device controller */
|
||||
|
||||
Reference in New Issue
Block a user