u-boot-brain/arch/nds32/cpu/n1213/ag102
Axel Lin 4fc9670513 nds32: ag101/ag102: Fix setting lastdec and now values
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@ingics.com>
2013-07-24 11:50:28 +08:00
..
asm-offsets.c nds32/ag102: add header support of ag102 soc 2012-04-22 16:58:23 +08:00
cpu.c nds32: split common cache access from cpu into lib 2012-07-20 23:55:52 +08:00
lowlevel_init.S nds32/ag102: add ag102 soc support 2012-04-22 16:58:23 +08:00
Makefile nds32/ag102: add ag102 soc support 2012-04-22 16:58:23 +08:00
timer.c nds32: ag101/ag102: Fix setting lastdec and now values 2013-07-24 11:50:28 +08:00
watchdog.S nds32/ag102: add ag102 soc support 2012-04-22 16:58:23 +08:00