[U-Boot] [PATCH v2] MX51EVK: fix return value of get_timer_masked

2010-08-09 Thread Li Haibo
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 --- v2

Re: [U-Boot] can uboot boot from spi flash?

2010-08-09 Thread Li Haibo
> Hi, > > SPI flash seems supported in u-boot after searching it in the mailing > list. But can u-boot boot from spi flash? > > Thanks, > -Shawn. > ___ > U-Boot mailing list > U-Boot@lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot > I do b

Re: [U-Boot] [PATCH] MX51EVK: fix return value of get_timer_masked

2010-08-09 Thread Li Haibo
> Hi Haibo Li > > I am try to help on test patch. :) > you should not include the reply in your patch. those reply > message will goto git commit message which is not needed. > > On 08/10/2010 10:57 AM, Li Haibo wrote: > >> Wolfgang Denk wrote: > >>>

Re: [U-Boot] [PATCH] MX51EVK: fix return value of get_timer_masked

2010-08-09 Thread Li Haibo
p, 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 --- arch/arm/cpu/arm_cortexa8/mx51/timer.c |2 +- 1 f

Re: [U-Boot] [PATCH] MX51EVK: fix return value of get_timer_masked

2010-08-09 Thread Li Haibo
p, 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 --- arch/arm/cpu/arm_cortexa8/mx51/timer.c |2 +- 1 f

[U-Boot] [PATCH] MX51EVK: fix return value of get_timer_masked

2010-07-21 Thread Li Haibo
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