]> code.ossystems Code Review - bsp/u-boot.git/commit
imx-common: timer: clean up code
authorPeng Fan <Peng.Fan@freescale.com>
Wed, 26 Aug 2015 07:40:58 +0000 (15:40 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 3 Nov 2015 12:53:58 +0000 (10:53 -0200)
commita022163663fb99a2dde77333db1221aadfb17062
tree0a8012450959e93977e40f88c74c3c19b6ed980f
parent42387867d9ab1ffc7cd5b92a65baff7983bc45f3
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