Re: [U-Boot] [PATCH] nds32: ag101/ag102: Fix setting lastdec and now values

2013-07-23 Thread Macpaul Lin
Hi Axel, 2013/7/8 Axel Lin : > The timer3 counter unit for lastdesc and now values are inconsistent in > current > code. The unit of "readl(&tmr->timer3_counter) / (CONFIG_SYS_CLK_FREQ / 2)" is > second. However, CONFIG_SYS_HZ is defined as 1000 in board config file. > This means the accuracy of

[U-Boot] [PATCH] nds32: ag101/ag102: Fix setting lastdec and now values

2013-07-07 Thread Axel Lin
The timer3 counter unit for lastdesc and now values are inconsistent in current code. The unit of "readl(&tmr->timer3_counter) / (CONFIG_SYS_CLK_FREQ / 2)" is second. However, CONFIG_SYS_HZ is defined as 1000 in board config file. This means the accuracy of "lastdec" and "now" should be in millisec