[U-Boot] [PATCH] MX51EVK: fix return value of get_timer_masked
Wolfgang Denk
wd at denx.de
Mon Aug 9 00:24:16 CEST 2010
Dear Stefano,
In message <1279714212.2643.32.camel at localhost> Li Haibo wrote:
> 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 at sinocastel.com>
> ---
> arch/arm/cpu/arm_cortexa8/mx51/timer.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Can you please have a look at this, and eventually send a pull req?
Thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
At the source of every error which is blamed on the computer you will
find at least two human errors, including the error of blaming it on
the computer.
More information about the U-Boot
mailing list