diff options
Diffstat (limited to 'common/usb_pd_protocol.c')
-rw-r--r-- | common/usb_pd_protocol.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 1c6c9f611a..1e37446a2c 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -771,9 +771,6 @@ static void execute_hard_reset(void) CPRINTF("HARD RESET!\n"); } -#ifdef BOARD_SAMUS_PD -extern void pd_charger_change(int c); -#endif void pd_task(void) { int head; @@ -888,13 +885,6 @@ void pd_task(void) break; case PD_STATE_SNK_DISCONNECTED: /* Source connection monitoring */ -#ifdef BOARD_SAMUS_PD - /* - * TODO(crosbug.com/p/29841): remove hack for - * getting extpower is present status from PD MCU. - */ - pd_charger_change(0); -#endif if (pd_snk_is_vbus_provided()) { cc1_volt = pd_adc_read(0); cc2_volt = pd_adc_read(1); @@ -941,15 +931,7 @@ void pd_task(void) timeout = 10*MSEC; break; case PD_STATE_SNK_READY: - /* we have power and we are happy */ -#ifdef BOARD_SAMUS_PD - /* - * TODO(crosbug.com/p/29841): remove hack for - * getting extpower is present status from PD MCU. - */ - pd_charger_change(1); -#endif - /* check vital parameters from time to time */ + /* we have power, check vitals from time to time */ timeout = 100*MSEC; break; #endif /* CONFIG_USB_PD_DUAL_ROLE */ |