summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openpcd/firmware/src/picc/tc_fdt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openpcd/firmware/src/picc/tc_fdt.c b/openpcd/firmware/src/picc/tc_fdt.c
index 37194ad..041001d 100644
--- a/openpcd/firmware/src/picc/tc_fdt.c
+++ b/openpcd/firmware/src/picc/tc_fdt.c
@@ -31,6 +31,9 @@ void tc_fdt_init(void)
AT91C_PA26_TIOA2 | AT91C_PA27_TIOB2);
AT91F_PMC_EnablePeriphClock(AT91C_BASE_PMC,
((unsigned int) 1 << AT91C_ID_TC2));
+ /* Enable Clock for TC2 */
+ tcb->TCB_TC2.TC_CCR = AT91C_TC_CLKEN;
+
/* Clock XC1, Wave Mode, No automatic reset on RC comp
* TIOA2 in RA comp = set, TIOA2 on RC comp = clear,
* TIOB2 as input, EEVT = TIOB2, Reset/Trigger on EEVT */
personal git repositories of Harald Welte. Your mileage may vary