mfd: dbx500: Provide a more accurate smp_twd clock
authorMichel Jaouen <michel.jaouen@stericsson.com>
Fri, 31 Aug 2012 12:21:30 +0000 (14:21 +0200)
committerMike Turquette <mturquette@linaro.org>
Fri, 7 Sep 2012 00:57:21 +0000 (17:57 -0700)
commit20aee5b6d7738206bfd37b352a97c75627d6fa6d
treef45347497f0b6861521ae80246534cfce49748de
parent70b1fce2ec3a89e68a35d99e5e9c6c90338b3dd1
mfd: dbx500: Provide a more accurate smp_twd clock

The local timer clock is based on ARM subsystem clock. This patch
obtains a more exact value of that clock by reading PRCMU registers.
Using this increases the accuracy of the local timer events.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rickard Andersson <rickard.andersson@stericsson.com>
Signed-off-by: Michel Jaouen <michel.jaouen@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/mfd/db8500-prcmu.c
drivers/mfd/dbx500-prcmu-regs.h
include/linux/mfd/dbx500-prcmu.h