clocksource: sh_cmt: wait for CMCNT on init V2
authorMagnus Damm <damm@opensource.se>
Wed, 13 Jul 2011 07:59:48 +0000 (07:59 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 21 Jul 2011 07:16:51 +0000 (16:16 +0900)
commit3f7e5e2423f6233f7665d54061ba7761ca90cf52
tree0d7836cfd49ff12614f46d32f6ab483814a31527
parentcf6ace16a3cd8b728fb0afa68368fd40bbeae19f
clocksource: sh_cmt: wait for CMCNT on init V2

Add code to the CMT driver to wait for CMCNT V2. This to let
the register value settle before starting the timer channel.
Makes the driver more robust.

Needed for CMT2 on sh7372 and certain CMT channels on sh73a0.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/clocksource/sh_cmt.c