ARM: OMAP: counter-32k: Select the CR register offset using the IP scheme
authorR Sricharan <r.sricharan@ti.com>
Thu, 10 May 2012 08:47:22 +0000 (14:17 +0530)
committerSantosh Shilimkar <santosh.shilimkar@ti.com>
Mon, 9 Jul 2012 13:44:39 +0000 (19:14 +0530)
commitb009366f285d03e69aeea5f8cc466782dd6f0004
treef4f74e4586b8151905ca86f43fc8369d74419992
parente799840a09c7e4b7e94d08a7b8c3ec4ba81611f9
ARM: OMAP: counter-32k: Select the CR register offset using the IP scheme

OMAP socs has a legacy and a highlander version of the
32k sync counter IP. The register offsets vary between the
highlander and the legacy scheme. So use the 'SCHEME'
bits(30-31) of the revision register to distinguish between
the two versions and choose the CR register offset accordingly.

Signed-off-by: R Sricharan <r.sricharan@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
arch/arm/plat-omap/counter_32k.c