File tree Expand file tree Collapse file tree
src/drivers/mediatek/mt8196 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ void intc_irq_unmask(enum IRQn_Type irq)
6464 word = INTC_WORD (irq );
6565 group = intc_desc .irqs [irq ].group ;
6666 io_reg_update_bits (INTC_IRQ_EN (word ), INTC_BIT (irq ), INTC_BIT (irq ));
67- //xt_ints_on(1 << grp2hifi_irq_map[group]);
68- } else
67+ } else {
6968 tr_err (& intc_tr , "Invalid INTC interrupt %d" , irq );
69+ }
7070}
7171
7272void intc_irq_mask (enum IRQn_Type irq )
@@ -76,8 +76,9 @@ void intc_irq_mask(enum IRQn_Type irq)
7676 if (irq < IRQ_MAX_CHANNEL ) {
7777 word = INTC_WORD (irq );
7878 io_reg_update_bits (INTC_IRQ_EN (word ), INTC_BIT (irq ), 0 );
79- } else
79+ } else {
8080 tr_err (& intc_tr , "Invalid INTC interrupt %d" , irq );
81+ }
8182}
8283
8384int intc_irq_enable (enum IRQn_Type irq )
@@ -122,7 +123,6 @@ int intc_irq_disable(enum IRQn_Type irq)
122123 irq_b = INTC_BIT (irq );
123124 group = intc_desc .irqs [irq ].group ;
124125
125- //xt_ints_off(1 << grp2hifi_irq_map[group]); //sw disable irq
126126 intc_desc .int_en [word ] &= ~irq_b ;
127127 intc_desc .grp_irqs [group ][word ] &= ~irq_b ;
128128 io_reg_update_bits (INTC_IRQ_EN (word ), irq_b , 0 );
Original file line number Diff line number Diff line change 55 * Author: Hailong Fan <hailong.fan@mediatek.com>
66 */
77
8-
98#include <sof/audio/component_ext.h>
109#include <rtos/interrupt.h>
1110#include <sof/lib/memory.h>
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ int platform_ipc_init(struct ipc *ipc)
136136
137137 /* schedule */
138138 schedule_task_init_edf (& ipc -> ipc_task , SOF_UUID (ipc_task_mt8196_uuid ),
139- & ipc_task_ops , ipc , 0 , 0 );
139+ & ipc_task_ops , ipc , 0 , 0 );
140140
141141#if CONFIG_HOST_PTABLE
142142 /* allocate page table buffer */
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ int64_t platform_timer_set(struct timer *timer, uint64_t ticks)
7575
7676 /* set 26m clksrc */
7777 io_reg_update_bits (MTK_TIMER_CON (timer -> id ), MTK_TIMER_CLKSRC_BIT ,
78- MTK_TIMER_CLK_SRC_CLK_26M );
78+ MTK_TIMER_CLK_SRC_CLK_26M );
7979 /* timer reset value */
8080 io_reg_write (MTK_TIMER_RST_VAL (timer -> id ), ticks_set );
8181
You can’t perform that action at this time.
0 commit comments