MX51EVK: fix return value of get_timer_masked
authorLi Haibo <hbli@sinocastel.com>
Tue, 10 Aug 2010 06:18:38 +0000 (14:18 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 10 Aug 2010 07:46:44 +0000 (09:46 +0200)
commit51b5870bdc837359299d22e8af48f315bd65d5fd
tree5bd027070cc293e951c7fa27086e702b14a82579
parenta9804be86858cf7ee3e39e6a371ecd56da517ce8
MX51EVK: fix return value of get_timer_masked

get_timer_masked() should return current timestamp,
not current ticks from hardware register.

Tested on one custom board with NAND flash.
Without this patch, NAND write always TIMEOUT
because get_timer(0) return a big value.

This patch applies for u-boot-2010.06

Signed-off-by: Li Haibo <hbli@sinocastel.com>
arch/arm/cpu/armv7/mx51/timer.c