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:
Daisuke Nojiri
2017-02-01 11:00:50 -08:00
committed by chrome-bot
parent 18327455c1
commit c51e0b2f75
11 changed files with 0 additions and 82 deletions

View File

@@ -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 */

View File

@@ -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

View File

@@ -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 */

View File

@@ -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

View File

@@ -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;

View File

@@ -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

View File

@@ -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;

View File

@@ -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

View File

@@ -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;

View File

@@ -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

View File

@@ -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