mfd: rk808: Add register caching
authorDoug Anderson <dianders@chromium.org>
Tue, 9 Sep 2014 23:06:04 +0000 (16:06 -0700)
committerLee Jones <lee.jones@linaro.org>
Fri, 26 Sep 2014 07:23:56 +0000 (08:23 +0100)
commit2adb3b8e6fa310d64ea6209f8ac5d5575839f6da
treebc941f4576aec0eb36301f6ca2007bff0e71051c
parentcfeb35da2ae36e26f6136b80351a06d34776587b
mfd: rk808: Add register caching

Let's define the voltatile registers (those that can't be cached) and
enable caching.  The rk808 is accessed almost constantly with cpufreq
so this is really nice.

As measured by ftrace:
  before this change: cpu0_set_target() => ~2200us
  after this change:  cpu0_set_target() =>  ~500us

Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rk808.c