mirror of
https://review.coreboot.org/chrome-ec.git
synced 2024-09-09 06:12:42 +02:00
task_set_event: remove the wait argument
There is an option in the task_set_event function which force the calling task to wait for an event. However, the option is never used thus remove it. This also will help in the Zephyr migration process. BUG=b:172360521 BRANCH=none TEST=make buildall Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: Ic152fd3d6862d487bcc0024c48d136556c0b81bc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2521599 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
This commit is contained in:
parent
a23ef3d074
commit
f96f176c30
139 changed files with 317 additions and 341 deletions
|
@ -197,7 +197,7 @@ static void anx74xx_cable_det_handler(void)
|
|||
* and if in normal mode, then there is no need to trigger a tcpc reset.
|
||||
*/
|
||||
if (cable_det && !reset_n)
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET, 0);
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET);
|
||||
}
|
||||
DECLARE_DEFERRED(anx74xx_cable_det_handler);
|
||||
|
||||
|
|
|
@ -174,11 +174,11 @@ void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -347,11 +347,11 @@ void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -90,11 +90,11 @@ static void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -200,9 +200,9 @@ struct bc12_config bc12_ports[CONFIG_USB_PD_PORT_MAX_COUNT] = {
|
|||
static void bc12_interrupt(enum gpio_signal signal)
|
||||
{
|
||||
if (signal == GPIO_USB_C0_BC12_INT_ODL)
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
else
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void board_sub_bc12_init(void)
|
||||
|
|
|
@ -53,7 +53,7 @@ static void usb_c0_interrupt(enum gpio_signal s)
|
|||
* chip.
|
||||
*/
|
||||
schedule_deferred_pd_interrupt(0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void c0_ccsbu_ovp_interrupt(enum gpio_signal s)
|
||||
|
|
|
@ -237,7 +237,7 @@ int pd_snk_is_vbus_provided(int port)
|
|||
|
||||
void bc12_interrupt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -254,7 +254,7 @@ int pd_snk_is_vbus_provided(int port)
|
|||
|
||||
void bc12_interrupt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
#ifndef VARIANT_KUKUI_NO_SENSORS
|
||||
|
|
|
@ -91,12 +91,12 @@ static void vbus1_evt(enum gpio_signal signal)
|
|||
|
||||
static void usb0_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void usb1_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void anx74xx_cable_det_handler(void)
|
||||
|
@ -114,7 +114,7 @@ static void anx74xx_cable_det_handler(void)
|
|||
* and if in normal mode, then there is no need to trigger a tcpc reset.
|
||||
*/
|
||||
if (cable_det && !reset_n)
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET, 0);
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET);
|
||||
}
|
||||
DECLARE_DEFERRED(anx74xx_cable_det_handler);
|
||||
|
||||
|
|
|
@ -85,12 +85,12 @@ static void tcpc_alert_event(enum gpio_signal signal)
|
|||
|
||||
static void usb0_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void usb1_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void ppc_interrupt(enum gpio_signal signal)
|
||||
|
|
|
@ -100,7 +100,7 @@ static void anx74xx_cable_det_handler(void)
|
|||
* and if in normal mode, then there is no need to trigger a tcpc reset.
|
||||
*/
|
||||
if (cable_det && !reset_n)
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET, 0);
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET);
|
||||
}
|
||||
DECLARE_DEFERRED(anx74xx_cable_det_handler);
|
||||
|
||||
|
|
|
@ -517,11 +517,11 @@ void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -254,7 +254,7 @@ int pd_snk_is_vbus_provided(int port)
|
|||
|
||||
void bc12_interrupt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
#ifndef VARIANT_KUKUI_NO_SENSORS
|
||||
|
|
|
@ -434,11 +434,11 @@ void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -113,11 +113,11 @@ static void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -58,7 +58,7 @@ DECLARE_DEFERRED(check_c0_line);
|
|||
|
||||
static void notify_c0_chips(void)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
sm5803_interrupt(0);
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ DECLARE_DEFERRED(check_c1_line);
|
|||
static void notify_c1_chips(void)
|
||||
{
|
||||
schedule_deferred_pd_interrupt(1);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
sm5803_interrupt(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ DECLARE_DEFERRED(deferred_reset_pd_mcu);
|
|||
void usb_evt(enum gpio_signal signal)
|
||||
{
|
||||
if (!gpio_get_level(GPIO_BC12_WAKE_L))
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
#include "gpio_list.h"
|
||||
|
@ -206,7 +206,7 @@ void deferred_reset_pd_mcu(void)
|
|||
gpio_set_level(GPIO_USB_C0_RST, 1);
|
||||
hook_call_deferred(&deferred_reset_pd_mcu_data, 1*MSEC);
|
||||
/* on PD reset, trigger PD task to reset state */
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET, 0);
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET);
|
||||
break;
|
||||
case 3:
|
||||
/*
|
||||
|
|
|
@ -120,7 +120,7 @@ static void anx74xx_c0_cable_det_handler(void)
|
|||
* and if in normal mode, then there is no need to trigger a tcpc reset.
|
||||
*/
|
||||
if (cable_det && !reset_n)
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET, 0);
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET);
|
||||
}
|
||||
DECLARE_DEFERRED(anx74xx_c0_cable_det_handler);
|
||||
|
||||
|
@ -139,7 +139,7 @@ static void anx74xx_c1_cable_det_handler(void)
|
|||
* and if in normal mode, then there is no need to trigger a tcpc reset.
|
||||
*/
|
||||
if (cable_det && !reset_n)
|
||||
task_set_event(TASK_ID_PD_C1, PD_EVENT_TCPC_RESET, 0);
|
||||
task_set_event(TASK_ID_PD_C1, PD_EVENT_TCPC_RESET);
|
||||
}
|
||||
DECLARE_DEFERRED(anx74xx_c1_cable_det_handler);
|
||||
|
||||
|
|
|
@ -253,7 +253,7 @@ int pd_snk_is_vbus_provided(int port)
|
|||
|
||||
void bc12_interrupt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
#ifndef VARIANT_KUKUI_NO_SENSORS
|
||||
|
|
|
@ -51,7 +51,7 @@ DECLARE_DEFERRED(check_c0_line);
|
|||
static void notify_c0_chips(void)
|
||||
{
|
||||
schedule_deferred_pd_interrupt(0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void check_c0_line(void)
|
||||
|
@ -85,7 +85,7 @@ DECLARE_DEFERRED(check_c1_line);
|
|||
static void notify_c1_chips(void)
|
||||
{
|
||||
schedule_deferred_pd_interrupt(1);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void check_c1_line(void)
|
||||
|
|
|
@ -434,11 +434,11 @@ void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -318,13 +318,13 @@ void halvor_bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
case GPIO_USB_C2_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P2, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P2, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -94,11 +94,11 @@ static void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -84,11 +84,11 @@ static void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -256,7 +256,7 @@ int pd_snk_is_vbus_provided(int port)
|
|||
|
||||
void bc12_interrupt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
#ifndef VARIANT_KUKUI_NO_SENSORS
|
||||
|
|
|
@ -99,11 +99,11 @@ static void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -236,7 +236,7 @@ int pd_snk_is_vbus_provided(int port)
|
|||
|
||||
void bc12_interrupt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void board_init(void)
|
||||
|
|
|
@ -116,11 +116,11 @@ static void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -83,11 +83,11 @@ static void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -58,7 +58,7 @@ DECLARE_DEFERRED(check_c0_line);
|
|||
|
||||
static void notify_c0_chips(void)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
sm5803_interrupt(0);
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ DECLARE_DEFERRED(check_c1_line);
|
|||
static void notify_c1_chips(void)
|
||||
{
|
||||
schedule_deferred_pd_interrupt(1);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
sm5803_interrupt(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -70,12 +70,12 @@ static void tcpc_alert_event(enum gpio_signal signal)
|
|||
|
||||
static void usb0_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void usb1_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void usba_oc_deferred(void)
|
||||
|
|
|
@ -62,7 +62,7 @@ static void notify_c0_chips(void)
|
|||
* chip. Therefore we'll need to check both ICs.
|
||||
*/
|
||||
schedule_deferred_pd_interrupt(0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void check_c0_line(void)
|
||||
|
@ -97,7 +97,7 @@ DECLARE_DEFERRED(check_c1_line);
|
|||
static void notify_c1_chips(void)
|
||||
{
|
||||
schedule_deferred_pd_interrupt(1);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void check_c1_line(void)
|
||||
|
|
|
@ -75,7 +75,7 @@ static void usb_c0_interrupt(enum gpio_signal s)
|
|||
* chip. Therefore we'll need to check both ICs.
|
||||
*/
|
||||
tcpc_alert_event(s);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void sub_usb_c1_interrupt(enum gpio_signal s)
|
||||
|
@ -85,7 +85,7 @@ static void sub_usb_c1_interrupt(enum gpio_signal s)
|
|||
* chip. Therefore we'll need to check both ICs.
|
||||
*/
|
||||
tcpc_alert_event(s);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
#include "gpio_list.h"
|
||||
|
|
|
@ -192,12 +192,12 @@ void vbus1_evt(enum gpio_signal signal)
|
|||
|
||||
void usb0_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
void usb1_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ static void usb_c0_interrupt(enum gpio_signal s)
|
|||
* chip. Therefore we'll need to check both ICs.
|
||||
*/
|
||||
tcpc_alert_event(s);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void sub_usb_c1_interrupt(enum gpio_signal s)
|
||||
|
@ -80,7 +80,7 @@ static void sub_usb_c1_interrupt(enum gpio_signal s)
|
|||
* chip. Therefore we'll need to check both ICs.
|
||||
*/
|
||||
tcpc_alert_event(s);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void sub_hdmi_hpd_interrupt(enum gpio_signal s)
|
||||
|
|
|
@ -96,11 +96,11 @@ static void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -139,12 +139,12 @@ void vbus1_evt(enum gpio_signal signal)
|
|||
|
||||
void usb0_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
void usb1_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
#include "gpio_list.h"
|
||||
|
|
|
@ -103,12 +103,12 @@ void vbus1_evt(enum gpio_signal signal)
|
|||
|
||||
void usb0_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
void usb1_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
#include "gpio_list.h"
|
||||
|
|
|
@ -85,11 +85,11 @@ static void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -70,8 +70,8 @@ void pd_mcu_interrupt(enum gpio_signal signal)
|
|||
#if BOARD_REV >= OAK_REV4
|
||||
void usb_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_INTR, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_INTR, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_INTR);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_INTR);
|
||||
}
|
||||
#endif /* BOARD_REV >= OAK_REV4 */
|
||||
|
||||
|
@ -545,7 +545,7 @@ void vbus_task(void *u)
|
|||
if (wake)
|
||||
task_set_event(port ? TASK_ID_USB_CHG_P1 :
|
||||
TASK_ID_USB_CHG_P0,
|
||||
USB_CHG_EVENT_BC12, 0);
|
||||
USB_CHG_EVENT_BC12);
|
||||
}
|
||||
task_wait_event(-1);
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ static void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -62,7 +62,7 @@ static void tcpc_alert_event(enum gpio_signal signal)
|
|||
|
||||
static void usb0_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void usba_oc_deferred(void)
|
||||
|
|
|
@ -108,12 +108,12 @@ void vbus1_evt(enum gpio_signal signal)
|
|||
|
||||
void usb0_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
void usb1_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_USB_PD_TCPC_LOW_POWER
|
||||
|
@ -132,7 +132,7 @@ static void anx74xx_cable_det_handler(void)
|
|||
* and if in normal mode, then there is no need to trigger a tcpc reset.
|
||||
*/
|
||||
if (cable_det && !reset_n)
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET, 0);
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET);
|
||||
}
|
||||
DECLARE_DEFERRED(anx74xx_cable_det_handler);
|
||||
|
||||
|
|
|
@ -105,12 +105,12 @@ void vbus1_evt(enum gpio_signal signal)
|
|||
|
||||
void usb0_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
void usb1_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
#include "gpio_list.h"
|
||||
|
|
|
@ -98,7 +98,7 @@ static void anx74xx_cable_det_handler(void)
|
|||
* and if in normal mode, then there is no need to trigger a tcpc reset.
|
||||
*/
|
||||
if (cable_det && !reset_n)
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET, 0);
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET);
|
||||
}
|
||||
DECLARE_DEFERRED(anx74xx_cable_det_handler);
|
||||
|
||||
|
|
|
@ -132,7 +132,7 @@ static void anx74xx_cable_det_handler(void)
|
|||
* and if in normal mode, then there is no need to trigger a tcpc reset.
|
||||
*/
|
||||
if (cable_det && !reset_n)
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET, 0);
|
||||
task_set_event(TASK_ID_PD_C0, PD_EVENT_TCPC_RESET);
|
||||
}
|
||||
DECLARE_DEFERRED(anx74xx_cable_det_handler);
|
||||
/* from firmware-reef-9042.B */
|
||||
|
|
|
@ -109,12 +109,12 @@ void vbus1_evt(enum gpio_signal signal)
|
|||
|
||||
void usb0_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
void usb1_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void chipset_s5_to_s3(void)
|
||||
|
|
|
@ -53,7 +53,7 @@ static void usb_c0_interrupt(enum gpio_signal s)
|
|||
* chip. Therefore we'll need to check both ICs.
|
||||
*/
|
||||
tcpc_alert_event(s);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void sub_usb_c1_interrupt(enum gpio_signal s)
|
||||
|
@ -63,7 +63,7 @@ static void sub_usb_c1_interrupt(enum gpio_signal s)
|
|||
* chip. Therefore we'll need to check both ICs.
|
||||
*/
|
||||
tcpc_alert_event(s);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void sub_hdmi_hpd_interrupt(enum gpio_signal s)
|
||||
|
|
|
@ -448,11 +448,11 @@ void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -254,7 +254,7 @@ int pd_snk_is_vbus_provided(int port)
|
|||
|
||||
void bc12_interrupt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
#ifndef VARIANT_KUKUI_NO_SENSORS
|
||||
|
|
|
@ -53,7 +53,7 @@ DECLARE_DEFERRED(check_c0_line);
|
|||
|
||||
static void notify_c0_chips(void)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
sm5803_interrupt(0);
|
||||
}
|
||||
|
||||
|
@ -88,7 +88,7 @@ DECLARE_DEFERRED(check_c1_line);
|
|||
static void notify_c1_chips(void)
|
||||
{
|
||||
schedule_deferred_pd_interrupt(1);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
sm5803_interrupt(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -93,11 +93,11 @@ static void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
case GPIO_USB_C1_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -68,12 +68,12 @@ static void tcpc_alert_event(enum gpio_signal signal)
|
|||
|
||||
static void usb0_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void usb1_evt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void usba_oc_deferred(void)
|
||||
|
|
|
@ -197,7 +197,7 @@ void rx_event(void)
|
|||
pd_rx_disable_monitoring(0);
|
||||
/* trigger the analysis in the task */
|
||||
#ifdef HAS_TASK_SNIFFER
|
||||
task_set_event(TASK_ID_SNIFFER, 1 << i, 0);
|
||||
task_set_event(TASK_ID_SNIFFER, 1 << i);
|
||||
#endif
|
||||
/* start reception only one CC line */
|
||||
break;
|
||||
|
|
|
@ -109,7 +109,7 @@ static void ep_tx(void)
|
|||
: EP_BUF_SIZE;
|
||||
STM32_TOGGLE_EP(USB_EP_SNIFFER, EP_TX_MASK, EP_TX_VALID, 0);
|
||||
/* wake up the processing */
|
||||
task_set_event(TASK_ID_SNIFFER, USB_EVENT, 0);
|
||||
task_set_event(TASK_ID_SNIFFER, USB_EVENT);
|
||||
}
|
||||
|
||||
static void ep_event(enum usb_ep_event evt)
|
||||
|
@ -218,7 +218,7 @@ void tim_dma_handler(void)
|
|||
else
|
||||
tim_rx1_handler(stat);
|
||||
/* time to process the samples */
|
||||
task_set_event(TASK_ID_SNIFFER, USB_EVENT, 0);
|
||||
task_set_event(TASK_ID_SNIFFER, USB_EVENT);
|
||||
}
|
||||
DECLARE_IRQ(STM32_IRQ_DMA_CHANNEL_4_7, tim_dma_handler, 1);
|
||||
|
||||
|
|
|
@ -375,7 +375,7 @@ void bc12_interrupt(enum gpio_signal signal)
|
|||
{
|
||||
switch (signal) {
|
||||
case GPIO_USB_C0_BC12_INT_ODL:
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -53,7 +53,7 @@ DECLARE_DEFERRED(check_c0_line);
|
|||
|
||||
static void notify_c0_chips(void)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
sm5803_interrupt(0);
|
||||
}
|
||||
|
||||
|
@ -88,7 +88,7 @@ DECLARE_DEFERRED(check_c1_line);
|
|||
static void notify_c1_chips(void)
|
||||
{
|
||||
schedule_deferred_pd_interrupt(1);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
sm5803_interrupt(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ static void notify_c0_chips(void)
|
|||
* chip. Therefore we'll need to check both ICs.
|
||||
*/
|
||||
schedule_deferred_pd_interrupt(0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void check_c0_line(void)
|
||||
|
@ -93,7 +93,7 @@ DECLARE_DEFERRED(check_c1_line);
|
|||
static void notify_c1_chips(void)
|
||||
{
|
||||
schedule_deferred_pd_interrupt(1);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
static void check_c1_line(void)
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
/* C0 interrupt line shared by BC 1.2 and charger */
|
||||
static void usb_c0_interrupt(enum gpio_signal s)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
sm5803_interrupt(0);
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ static void usb_c0_interrupt(enum gpio_signal s)
|
|||
static void usb_c1_interrupt(enum gpio_signal s)
|
||||
{
|
||||
schedule_deferred_pd_interrupt(1);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P1, USB_CHG_EVENT_BC12);
|
||||
sm5803_interrupt(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -253,7 +253,7 @@ int pd_snk_is_vbus_provided(int port)
|
|||
|
||||
void bc12_interrupt(enum gpio_signal signal)
|
||||
{
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12, 0);
|
||||
task_set_event(TASK_ID_USB_CHG_P0, USB_CHG_EVENT_BC12);
|
||||
}
|
||||
|
||||
#ifndef VARIANT_KUKUI_NO_SENSORS
|
||||
|
|
|
@ -67,7 +67,7 @@ void interrupt_enable(void)
|
|||
asm("cpsie i");
|
||||
}
|
||||
|
||||
uint32_t task_set_event(task_id_t tskid, uint32_t event, int wait)
|
||||
uint32_t task_set_event(task_id_t tskid, uint32_t event)
|
||||
{
|
||||
last_event = event;
|
||||
|
||||
|
@ -229,7 +229,7 @@ uint32_t task_wait_event_mask(uint32_t event_mask, int timeout_us)
|
|||
|
||||
/* Restore any pending events not in the event_mask */
|
||||
if (evt & ~event_mask)
|
||||
task_set_event(0, evt & ~event_mask, 0);
|
||||
task_set_event(0, evt & ~event_mask);
|
||||
|
||||
return evt & event_mask;
|
||||
}
|
||||
|
|
|
@ -706,7 +706,7 @@ static int handle_flow_control_cmd(struct hbm_flow_control *flow_ctrl)
|
|||
mutex_unlock(&connect->cred_lock);
|
||||
|
||||
if (waiting_task)
|
||||
task_set_event(waiting_task, TASK_EVENT_IPC_READY, 0);
|
||||
task_set_event(waiting_task, TASK_EVENT_IPC_READY);
|
||||
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
|
|
|
@ -446,7 +446,7 @@ static void i2c_interrupt_handler(struct i2c_context *ctx)
|
|||
|
||||
/* disable interrupts */
|
||||
i2c_intr_switch(ctx->base, DISABLE_INT);
|
||||
task_set_event(ctx->wait_task_id, TASK_EVENT_I2C_IDLE, 0);
|
||||
task_set_event(ctx->wait_task_id, TASK_EVENT_I2C_IDLE);
|
||||
}
|
||||
|
||||
static void i2c_isr_bus0(void)
|
||||
|
|
|
@ -377,7 +377,7 @@ static void handle_msg_recv_interrupt(const uint32_t peer_id)
|
|||
if (!invalid_msg) {
|
||||
/* send event to task */
|
||||
task_set_event(ctx->msg_events[protocol].task_id,
|
||||
ctx->msg_events[protocol].event, 0);
|
||||
ctx->msg_events[protocol].event);
|
||||
} else {
|
||||
CPRINTS("discard msg (%d) : %d", protocol, invalid_msg);
|
||||
|
||||
|
|
|
@ -208,7 +208,7 @@ void adc_interrupt(void)
|
|||
task_disable_irq(IT83XX_IRQ_ADC);
|
||||
/* Wake up the task which was waiting for the interrupt */
|
||||
if (task_waiting != TASK_ID_INVALID)
|
||||
task_set_event(task_waiting, TASK_EVENT_ADC_DONE, 0);
|
||||
task_set_event(task_waiting, TASK_EVENT_ADC_DONE);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ADC_VOLTAGE_COMPARATOR
|
||||
|
|
|
@ -769,7 +769,7 @@ void i2c_interrupt(int port)
|
|||
/* If done doing work, wake up the task waiting for the transfer */
|
||||
if (!i2c_transaction(port)) {
|
||||
task_disable_irq(i2c_ctrl_regs[port].irq);
|
||||
task_set_event(id, TASK_EVENT_I2C_IDLE, 0);
|
||||
task_set_event(id, TASK_EVENT_I2C_IDLE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ static void chip_pd_irq(enum usbpd_port port)
|
|||
IT83XX_USBPD_ISR(port) = USBPD_REG_MASK_HARD_RESET_DETECT;
|
||||
USBPD_SW_RESET(port);
|
||||
task_set_event(PD_PORT_TO_TASK_ID(port |