ARM: ks8695: convert to generic time and clocksource
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Aug 2012 18:27:22 +0000 (20:27 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 5 Sep 2012 06:49:22 +0000 (08:49 +0200)
commitc7e783d6adc7798307e7063e11f4127117446d5a
treeec58ba9e50f3d849527d0ebc914b0c0fe2a903f3
parentd7dda9875b84eb6c2828592b17aa173ac17bf75d
ARM: ks8695: convert to generic time and clocksource

Old platforms using ancient gettimeoffset() and other arcane
APIs are standing in the way of cleaning up the ARM kernel.
The gettimeoffset() was also broken: it would try to read out
the timer counter value, while this would not work (the
counter statically returns the initially programmed value)
so the implementation would anyway fall back to a homebrew
version of jiffie calculation.

This is an attempt at blind-coding a generic time and clocksource
driver for the platform by way of a datasheet and looking at the
old code.

Tested-by: Greg Ungerer <gerg@snapgear.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/Kconfig
arch/arm/mach-ks8695/time.c
This page took 0.02635 seconds and 5 git commands to generate.