mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
Revert "pd: samus: ryu: add Vconn support and enable for samus and ryu"
This reverts commit 61dc089e23.
Samus polarity is wrong on VCONN due to naming mismatch. Will fix in a later CL, but should revert now to avoid problems.
Change-Id: Icabcf2967e92caec94840df7e66a6658c7cde007
Reviewed-on: https://chromium-review.googlesource.com/222717
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Alec Berg <alecaberg@chromium.org>
Tested-by: Alec Berg <alecaberg@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
f92f70d04c
commit
358aeb2877
@@ -27,7 +27,6 @@
|
||||
#define CONFIG_USB_PD_DUAL_ROLE
|
||||
#define CONFIG_USB_PD_INTERNAL_COMP
|
||||
#define CONFIG_USBC_SS_MUX
|
||||
#define CONFIG_USBC_VCONN
|
||||
#define CONFIG_ADC
|
||||
#define CONFIG_HW_CRC
|
||||
#define CONFIG_I2C
|
||||
|
||||
@@ -138,13 +138,6 @@ static inline int pd_adc_read(int port, int cc)
|
||||
return adc_read_channel(ADC_CH_CC2_PD);
|
||||
}
|
||||
|
||||
static inline void pd_set_vconn(int port, int polarity, int enable)
|
||||
{
|
||||
/* Set VCONN on the opposite CC line from the polarity */
|
||||
gpio_set_level(polarity ? GPIO_VCONN1_EN :
|
||||
GPIO_VCONN2_EN, enable);
|
||||
}
|
||||
|
||||
static inline int pd_snk_is_vbus_provided(int port)
|
||||
{
|
||||
return gpio_get_level(GPIO_VBUS_WAKE);
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#define CONFIG_USB_PD_FLASH_ERASE_CHECK
|
||||
#define CONFIG_USB_PD_INTERNAL_COMP
|
||||
#define CONFIG_USBC_SS_MUX
|
||||
#define CONFIG_USBC_VCONN
|
||||
#define CONFIG_ADC
|
||||
#define CONFIG_HW_CRC
|
||||
#define CONFIG_I2C
|
||||
|
||||
@@ -147,13 +147,6 @@ static inline int pd_adc_read(int port, int cc)
|
||||
return adc_read_channel(ADC_CC2_PD);
|
||||
}
|
||||
|
||||
static inline void pd_set_vconn(int port, int polarity, int enable)
|
||||
{
|
||||
/* Set VCONN on the opposite CC line from the polarity */
|
||||
gpio_set_level(polarity ? GPIO_USBC_VCONN1_EN :
|
||||
GPIO_USBC_VCONN2_EN, enable);
|
||||
}
|
||||
|
||||
static inline int pd_snk_is_vbus_provided(int port)
|
||||
{
|
||||
return gpio_get_level(GPIO_CHGR_ACOK);
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
#define CONFIG_USB_PD_FLASH_ERASE_CHECK
|
||||
#define CONFIG_USB_PD_INTERNAL_COMP
|
||||
#define CONFIG_USBC_SS_MUX
|
||||
#define CONFIG_USBC_VCONN
|
||||
#define CONFIG_USB_SWITCH_TSU6721
|
||||
#define CONFIG_VBOOT_HASH
|
||||
#undef CONFIG_WATCHDOG_HELP
|
||||
|
||||
@@ -227,17 +227,6 @@ static inline int pd_adc_read(int port, int cc)
|
||||
return adc_read_channel(cc ? ADC_C1_CC2_PD : ADC_C1_CC1_PD);
|
||||
}
|
||||
|
||||
static inline void pd_set_vconn(int port, int polarity, int enable)
|
||||
{
|
||||
/* Set VCONN on the opposite CC line from the polarity */
|
||||
if (port == 0)
|
||||
gpio_set_level(polarity ? GPIO_USB_C0_CC1_VCONN1_EN :
|
||||
GPIO_USB_C0_CC2_VCONN1_EN, enable);
|
||||
else
|
||||
gpio_set_level(polarity ? GPIO_USB_C1_CC1_VCONN1_EN :
|
||||
GPIO_USB_C1_CC2_VCONN1_EN, enable);
|
||||
}
|
||||
|
||||
static inline int pd_snk_is_vbus_provided(int port)
|
||||
{
|
||||
return gpio_get_level(port ? GPIO_USB_C1_VBUS_WAKE :
|
||||
|
||||
@@ -283,16 +283,13 @@ static inline void set_state(int port, enum pd_states next_state)
|
||||
set_state_timeout(port, 0, 0);
|
||||
pd[port].task_state = next_state;
|
||||
|
||||
#ifdef CONFIG_USBC_SS_MUX
|
||||
if (next_state == PD_STATE_SRC_DISCONNECTED) {
|
||||
pd[port].dev_id = 0;
|
||||
#ifdef CONFIG_USBC_SS_MUX
|
||||
board_set_usb_mux(port, TYPEC_MUX_NONE,
|
||||
pd[port].polarity);
|
||||
#endif
|
||||
#ifdef CONFIG_USBC_VCONN
|
||||
pd_set_vconn(port, pd[port].polarity, 0);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LOW_POWER_IDLE
|
||||
/* If any PD port is connected, then disable deep sleep */
|
||||
@@ -1249,10 +1246,6 @@ void pd_task(void)
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_USBC_VCONN
|
||||
pd_set_vconn(port, pd[port].polarity, 1);
|
||||
#endif
|
||||
|
||||
set_state(port, PD_STATE_SRC_DISCOVERY);
|
||||
caps_count = 0;
|
||||
#ifdef CONFIG_USB_PD_DUAL_ROLE
|
||||
|
||||
@@ -1041,9 +1041,6 @@
|
||||
/* Support for USB type-c superspeed mux */
|
||||
#undef CONFIG_USBC_SS_MUX
|
||||
|
||||
/* Support for USB type-c vconn. Not needed for captive cables. */
|
||||
#undef CONFIG_USBC_VCONN
|
||||
|
||||
/*****************************************************************************/
|
||||
/* USB interfaces config */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user