u-boot-brain/arch/nds32/cpu/n1213/ag101
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/ag101: cpu and init funcs of SoC ag101 2011-10-22 00:52:51 +02:00
cpu.c nds32: split common cache access from cpu into lib 2012-07-20 23:55:52 +08:00
lowlevel_init.S nds32: Enable two banks of SDRAM on Andes board 2013-07-24 11:50:28 +08:00
Makefile nds32/ag101: cpu and init funcs of SoC ag101 2011-10-22 00:52:51 +02:00
timer.c nds32: ag101/ag102: Fix setting lastdec and now values 2013-07-24 11:50:28 +08:00
watchdog.S nds32/ag101/watchdog.S: add linkage support 2012-02-28 13:09:23 +08:00