mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 08:31:52 +00:00
PD: Remove CONFIG_USB_PD_TCPC_FW_VERSION
This removes CONFIG_USB_PD_TCPC_FW_VERSION. board_print_tcpc_fw_version is removed since it's no longer called. PD chip info is printed in usb_pd_protocol.c. BUG=none BRANCH=none TEST=buildall. Boot Electro, verify chip info is printed. Change-Id: I2ff860c2a1b17ceea124644ba8feb356b9cca2eb Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/434911 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
18327455c1
commit
c51e0b2f75
@@ -191,16 +191,6 @@ void board_set_tcpc_power_mode(int port, int mode)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_USB_PD_TCPC_FW_VERSION
|
||||
void board_print_tcpc_fw_version(int port)
|
||||
{
|
||||
int version;
|
||||
|
||||
if (!anx74xx_tcpc_get_fw_version(port, &version))
|
||||
CPRINTS("TCPC p%d FW VER: 0x%x", port, version);
|
||||
}
|
||||
#endif
|
||||
|
||||
void board_reset_pd_mcu(void)
|
||||
{
|
||||
/* Assert reset */
|
||||
|
||||
@@ -149,7 +149,6 @@
|
||||
#define CONFIG_USB_PD_PORT_COUNT 2
|
||||
#define CONFIG_USB_PD_QUIRK_SLOW_CC_STATUS
|
||||
#define CONFIG_USB_PD_VBUS_DETECT_CHARGER
|
||||
#define CONFIG_USB_PD_TCPC_FW_VERSION
|
||||
#define CONFIG_USB_PD_TCPM_MUX
|
||||
#define CONFIG_USB_PD_TCPM_ANX74XX
|
||||
#define CONFIG_USB_PD_TCPM_TCPCI
|
||||
|
||||
@@ -244,22 +244,6 @@ void board_set_tcpc_power_mode(int port, int mode)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_USB_PD_TCPC_FW_VERSION
|
||||
void board_print_tcpc_fw_version(int port)
|
||||
{
|
||||
int rv;
|
||||
int version;
|
||||
|
||||
if (port)
|
||||
rv = ps8751_tcpc_get_fw_version(port, &version);
|
||||
else
|
||||
rv = anx74xx_tcpc_get_fw_version(port, &version);
|
||||
|
||||
if (!rv)
|
||||
CPRINTS("TCPC p%d FW VER: 0x%x", port, version);
|
||||
}
|
||||
#endif
|
||||
|
||||
void board_reset_pd_mcu(void)
|
||||
{
|
||||
/* Assert reset */
|
||||
|
||||
@@ -124,7 +124,6 @@
|
||||
#define CONFIG_USB_PD_PORT_COUNT 2
|
||||
#define CONFIG_USB_PD_QUIRK_SLOW_CC_STATUS
|
||||
#define CONFIG_USB_PD_VBUS_DETECT_GPIO
|
||||
#define CONFIG_USB_PD_TCPC_FW_VERSION
|
||||
#define CONFIG_USB_PD_TCPM_MUX
|
||||
#define CONFIG_USB_PD_TCPM_ANX74XX
|
||||
#define CONFIG_USB_PD_TCPM_TCPCI
|
||||
|
||||
@@ -301,22 +301,6 @@ void board_reset_pd_mcu(void)
|
||||
board_set_tcpc_power_mode(0, 1);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_USB_PD_TCPC_FW_VERSION
|
||||
void board_print_tcpc_fw_version(int port)
|
||||
{
|
||||
int rv;
|
||||
int version;
|
||||
|
||||
if (port)
|
||||
rv = ps8751_tcpc_get_fw_version(port, &version);
|
||||
else
|
||||
rv = anx74xx_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;
|
||||
|
||||
@@ -102,7 +102,6 @@
|
||||
#define CONFIG_USB_PD_QUIRK_SLOW_CC_STATUS
|
||||
#define CONFIG_USB_PD_VBUS_DETECT_CHARGER
|
||||
#define CONFIG_USB_PD_TCPC_LOW_POWER
|
||||
#define CONFIG_USB_PD_TCPC_FW_VERSION
|
||||
#define CONFIG_USB_PD_TCPM_MUX /* for both PS8751 and ANX3429 */
|
||||
#define CONFIG_USB_PD_TCPM_ANX74XX
|
||||
#define CONFIG_USB_PD_TCPM_PS8751
|
||||
|
||||
@@ -311,22 +311,6 @@ void board_reset_pd_mcu(void)
|
||||
board_set_tcpc_power_mode(0, 1);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_USB_PD_TCPC_FW_VERSION
|
||||
void board_print_tcpc_fw_version(int port)
|
||||
{
|
||||
int rv;
|
||||
int version;
|
||||
|
||||
if (port)
|
||||
rv = ps8751_tcpc_get_fw_version(port, &version);
|
||||
else
|
||||
rv = anx74xx_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;
|
||||
|
||||
@@ -92,7 +92,6 @@
|
||||
#define CONFIG_USB_PD_QUIRK_SLOW_CC_STATUS
|
||||
#define CONFIG_USB_PD_VBUS_DETECT_CHARGER
|
||||
#define CONFIG_USB_PD_TCPC_LOW_POWER
|
||||
#define CONFIG_USB_PD_TCPC_FW_VERSION
|
||||
#define CONFIG_USB_PD_TCPM_MUX /* for both PS8751 and ANX3429 */
|
||||
#define CONFIG_USB_PD_TCPM_ANX74XX
|
||||
#define CONFIG_USB_PD_TCPM_PS8751
|
||||
|
||||
@@ -313,22 +313,6 @@ void board_reset_pd_mcu(void)
|
||||
board_set_tcpc_power_mode(0, 1);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_USB_PD_TCPC_FW_VERSION
|
||||
void board_print_tcpc_fw_version(int port)
|
||||
{
|
||||
int rv;
|
||||
int version;
|
||||
|
||||
if (port)
|
||||
rv = ps8751_tcpc_get_fw_version(port, &version);
|
||||
else
|
||||
rv = anx74xx_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;
|
||||
|
||||
@@ -96,7 +96,6 @@
|
||||
#define CONFIG_USB_PD_QUIRK_SLOW_CC_STATUS
|
||||
#define CONFIG_USB_PD_VBUS_DETECT_CHARGER
|
||||
#define CONFIG_USB_PD_TCPC_LOW_POWER
|
||||
#define CONFIG_USB_PD_TCPC_FW_VERSION
|
||||
#define CONFIG_USB_PD_TCPM_MUX /* for both PS8751 and ANX3429 */
|
||||
#define CONFIG_USB_PD_TCPM_ANX74XX
|
||||
#define CONFIG_USB_PD_TCPM_PS8751
|
||||
|
||||
@@ -2209,9 +2209,6 @@
|
||||
/* Use TCPC module (type-C port controller) */
|
||||
#undef CONFIG_USB_PD_TCPC
|
||||
|
||||
/* Get TCPC firmware version */
|
||||
#undef CONFIG_USB_PD_TCPC_FW_VERSION
|
||||
|
||||
/* Enable TCPC to enter low power mode */
|
||||
#undef CONFIG_USB_PD_TCPC_LOW_POWER
|
||||
|
||||
|
||||
Reference in New Issue
Block a user