[PATCH v23 01/11] clocksource: arm_arch_timer: add MMIO CNTFRQ helper

2017-03-31 Thread fu . wei
From: Fu Wei We currently open-code the readl() for the MMIO time frequency. To avoid duplicating the logic with future rework, this patch adds a helepr to read the MMIO timer frequency, mirroring what we have for the sysreg timer frequency. Signed-off-by: Fu Wei

[PATCH v23 01/11] clocksource: arm_arch_timer: add MMIO CNTFRQ helper

2017-03-31 Thread fu . wei
From: Fu Wei We currently open-code the readl() for the MMIO time frequency. To avoid duplicating the logic with future rework, this patch adds a helepr to read the MMIO timer frequency, mirroring what we have for the sysreg timer frequency. Signed-off-by: Fu Wei [Mark: reword commit message]