[U-Boot] [PATCH] nds32: ag101/ag102: Fix setting lastdec and now values
Macpaul Lin
macpaul at gmail.com
Wed Jul 24 06:48:24 CEST 2013
Hi Axel,
2013/7/8 Axel Lin <axel.lin at ingics.com>:
> 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 millisecond,
> thus fix the equation to set lastdec and now variables accordingly.
>
> Signed-off-by: Axel Lin <axel.lin at ingics.com>
> ---
> Hi Kuan-Yu,
> This change is based on your suggestion.
> I don't have this hardware, can you test if this patch works?
>
> Thanks,
Applied to u-boot-nds32/master
Thanks for your help!
--
Best regards,
Macpaul Lin
More information about the U-Boot
mailing list