kzm: implement MCS timer driver

- use gpt, so we can have overflow and compare interrupts at the same
time (epit only allows compare)
- set the gpt to use the ipg_highfreq timer, as the standard ipg is too
low and breaks the timer calculations
This commit is contained in:
Anna Lyons
2017-12-14 16:59:15 +11:00
committed by Kent Mcleod
parent ea07ad0414
commit 4db4a3b882
6 changed files with 171 additions and 4 deletions

View File

@@ -176,6 +176,7 @@ devices:
index: 0
kernel: TIMER_PPTR
interrupts:
# IMX6 also has the imx31-gpt.
KERNEL_TIMER_IRQ: 0
# i.MX EPIT (no Linux binding, this is seL4-specific.)
- compatible:
@@ -186,6 +187,15 @@ devices:
kernel: EPIT_PPTR
interrupts:
KERNEL_TIMER_IRQ: 0
# i.MX GPT
- compatible:
- fsl,imx31-gpt
regions:
- executeNever: true
index: 0
kernel: TIMER_PPTR
interrupts:
KERNEL_TIMER_IRQ: 0
# QCOM Krait timer (timer/qcom,msm-timer.txt)
- compatible:
- qcom,kpss-timer