jz4740: Timer not re-enabled properly

(same fix as g#2703 for the jz4760)

Change-Id: Ic6467d9e6085e3057528b6d1a08b7c07e9dceab4
This commit is contained in:
Solomon Peachy 2020-08-28 11:17:32 -04:00
parent 77019c2c3c
commit 4a6d8e91bb

View file

@ -78,10 +78,10 @@ bool timer_set(long cycles, bool start)
if(start) if(start)
{ {
system_enable_irq(IRQ_TCU1); system_enable_irq(IRQ_TCU1);
__tcu_start_counter(1);
} }
restore_irq(old_irq); restore_irq(old_irq);
__tcu_start_counter(1);
return true; return true;
} }