diff options
Diffstat (limited to 'board/lars_pd/board.c')
-rw-r--r-- | board/lars_pd/board.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/board/lars_pd/board.c b/board/lars_pd/board.c index 3dd7950759..1354e03b24 100644 --- a/board/lars_pd/board.c +++ b/board/lars_pd/board.c @@ -53,7 +53,6 @@ static void board_init(void) { /* Enable interrupts on VBUS transitions. */ gpio_enable_interrupt(GPIO_USB_C0_VBUS_WAKE_L); - gpio_enable_interrupt(GPIO_USB_C1_VBUS_WAKE_L); /* Set PD MCU system status bits */ if (system_jumped_to_this_image()) @@ -66,10 +65,8 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); /* ADC channels */ const struct adc_t adc_channels[] = { /* USB PD CC lines sensing. Converted to mV (3300mV/4096). */ - [ADC_C1_CC1_PD] = {"C1_CC1_PD", 3300, 4096, 0, STM32_AIN(0)}, [ADC_C0_CC1_PD] = {"C0_CC1_PD", 3300, 4096, 0, STM32_AIN(2)}, [ADC_C0_CC2_PD] = {"C0_CC2_PD", 3300, 4096, 0, STM32_AIN(4)}, - [ADC_C1_CC2_PD] = {"C1_CC2_PD", 3300, 4096, 0, STM32_AIN(5)}, }; BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); @@ -86,8 +83,7 @@ void tcpc_alert(int port) * bits in the Alert register and that bit's corresponding * location in the Alert_Mask register is set. */ - atomic_or(&ec_int_status, port ? - PD_STATUS_TCPC_ALERT_1 : PD_STATUS_TCPC_ALERT_0); + atomic_or(&ec_int_status, PD_STATUS_TCPC_ALERT_0); pd_send_ec_int(); } @@ -98,8 +94,7 @@ void tcpc_alert_clear(int port) * Alert# line needs to be set inactive. Clear * the corresponding port's bit in the static variable. */ - atomic_clear(&ec_int_status, port ? - PD_STATUS_TCPC_ALERT_1 : PD_STATUS_TCPC_ALERT_0); + atomic_clear(&ec_int_status, PD_STATUS_TCPC_ALERT_0); pd_send_ec_int(); } |