clocksource: dw_apb_timer: support for timer variant used in rk3188 SoCs
From: Heiko Stuebner <heiko@...> Date: Wed, 3 Jul 2013 20:58:31 +0200
The Rockchip rk3188 SoCs use a variant of the timer with some slight modifications. This series implements them as quirks for the dw_apb_timer. Tested on a rk3188 for the quirk handling and on a rk3066a to check that nothing broke. Heiko Stuebner (5): clocksource: dw_apb_timer: infrastructure to handle quirks clocksource: dw_apb_timer: flexible register addresses clocksource: dw_apb_timer: quirk for variants with 64bit counter clocksource: dw_apb_timer_of: add quirk handling clocksource: dw_apb_timer: special variant for rockchip rk3188 timers Ulrich Prinz (4): clocksource: dw_apb_timer: use the eoi callback to clear pending interrupts clocksource: dw_apb_timer: quirk for variants without EOI register clocksource: dw_apb_timer: quirk for inverted int mask clocksource: dw_apb_timer: quirk for inverted timer mode setting .../bindings/arm/rockchip/rk3188-timer.txt | 20 +++ arch/x86/kernel/apb_timer.c | 4 +- drivers/clocksource/dw_apb_timer.c | 166 +++++++++++++++----- drivers/clocksource/dw_apb_timer_of.c | 27 +++- include/linux/dw_apb_timer.h | 34 +++- 5 files changed, 198 insertions(+), 53 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/rockchip/rk3188-timer.txt -- 1.7.10.4
Patches in this set
- [0001] clocksource: dw_apb_timer: infrastructure to handle quirks (raw)
- [0002] clocksource: dw_apb_timer: flexible register addresses (raw)
- [0003] clocksource: dw_apb_timer: quirk for variants with 64bit counter (raw)
- [0004] clocksource: dw_apb_timer: use the eoi callback to clear pending interrupts (raw)
- [0005] clocksource: dw_apb_timer: quirk for variants without EOI register (raw)
- [0006] clocksource: dw_apb_timer: quirk for inverted int mask (raw)
- [0007] clocksource: dw_apb_timer: quirk for inverted timer mode setting (raw)
- [0008] clocksource: dw_apb_timer_of: add quirk handling (raw)
- [0009] clocksource: dw_apb_timer: special variant for rockchip rk3188 timers (raw)
Statistics
- 9 individual patches
- 203 lines added
- 58 lines removed