Skip to content

Commit ec6b34d

Browse files
RuibinChangkartben
authored andcommitted
drivers/timer/it51xxx: remove not used timer
Timer 7 is not used in timer driver, which means that timer driver doesn't initialize timer 7, it's just declared in dtsi. So I remove it, timer 7 will be used as alarm timer for counter driver. Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
1 parent 6559c7f commit ec6b34d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/timer/ite_it51xxx_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static volatile uint32_t last_elapsed;
118118
static volatile uint32_t last_ticks;
119119

120120
#if defined(CONFIG_TEST)
121-
const int32_t z_sys_timer_irq_for_test = DT_IRQ_BY_IDX(DT_NODELABEL(timer), 4, irq);
121+
const int32_t z_sys_timer_irq_for_test = DT_IRQ_BY_IDX(DT_NODELABEL(timer), 3, irq);
122122
#endif
123123

124124
static uint32_t read_timer_obser(enum ext_timer_idx timer_idx)

dts/riscv/ite/it51xxx.dtsi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,8 +1158,7 @@
11581158
interrupts = <IT51XXX_IRQ_TIMER3_DW IRQ_TYPE_EDGE_RISING /* Event timer */
11591159
IT51XXX_IRQ_TIMER4_DW IRQ_TYPE_EDGE_RISING /* Free run */
11601160
IT51XXX_IRQ_TIMER5_DW IRQ_TYPE_EDGE_RISING /* Busy wait */
1161-
IT51XXX_IRQ_TIMER6_DW IRQ_TYPE_EDGE_RISING /* Busy wait */
1162-
IT51XXX_IRQ_TIMER7_DW IRQ_TYPE_EDGE_RISING>;
1161+
IT51XXX_IRQ_TIMER6_DW IRQ_TYPE_EDGE_RISING>; /* Busy wait */
11631162
interrupt-parent = <&intc>;
11641163
};
11651164

0 commit comments

Comments
 (0)