imx-common: timer: clean up code
authorPeng Fan <Peng.Fan@freescale.com>
Wed, 26 Aug 2015 07:40:58 +0000 (15:40 +0800)
committerStefano Babic <sbabic@denx.de>
Fri, 30 Oct 2015 13:59:43 +0000 (14:59 +0100)
commit2bb014820c49a63902103bac710bc86b5772e843
tree7c1203f380ee2441cf9c34dcb2ac3e9dde01fb59
parente573bdb324c78fac56655a493bea843842c9d9f8
imx-common: timer: clean up code

We can reuse common functions in lib/time.c, but not reimplement
functions in imx-common/time.c.
Only keep timer_init ,get_tbclk and implement timer_read_counter in
imx-common/time.c.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
arch/arm/imx-common/timer.c