]> git.karo-electronics.de Git - karo-tx-linux.git/commit
clocksource: sh_cmt: CMSTR and CMCSR register access update
authorMagnus Damm <damm@opensource.se>
Fri, 14 Dec 2012 05:54:10 +0000 (14:54 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 13 Feb 2013 10:53:27 +0000 (19:53 +0900)
commit6850d23671cecd49b52c5b34fd48ba4671ba4bec
treebc7d75581287074303fa7d89fd37e499f40daefb
parent143849db68032abafca0ac258016c94cf16de0c4
clocksource: sh_cmt: CMSTR and CMCSR register access update

Update hardware register access code for CMSTR and CMCSR
from using sh_cmt_read() and sh_cmt_write() to make use
of 16-bit register access functions such as sh_cmt_read16()
and sh_cmt_write16(). Also update sh_cmt_read() and
sh_cmt_write() now when the special cases are gone.

This patch moves us one step closer to the goal of separating
counter register access functions from control control register
functions.

Signed-off-by: Magnus Damm <damm@opensource.se>
Acked-by: John Stultz <john.stultz@linaro.org>
Tested-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/clocksource/sh_cmt.c