ARM: imx: define gpt register offset per device type
authorShawn Guo <shawn.guo@linaro.org>
Fri, 22 May 2015 13:39:55 +0000 (21:39 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Wed, 3 Jun 2015 06:52:28 +0000 (14:52 +0800)
commit24f74ad1c75e9893db4386ed9c7f8c20cdbc3198
tree2e55f268a51d7507bf9df34cca829091aedb77c6
parente510d2015d38a2bfbaebf9793f28377b6328e409
ARM: imx: define gpt register offset per device type

It defines offset of gpt registers TSTAT, TCN and TCMP per device
type in imx_gpt_data, so that these registers can be accessed in an
way without timer_is_v2() checking.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/time.c