summaryrefslogtreecommitdiff
path: root/arch/nds32/cpu/n1213/ag102/timer.c
Commit message (Collapse)AuthorAgeLines
* Merge branch 'master' of git://git.denx.de/u-boot-nds32Tom Rini2013-07-25-3/+4
|\
| * nds32: ag101/ag102: Fix setting lastdec and now valuesAxel Lin2013-07-24-3/+4
| | | | | | | | | | | | | | | | | | | | 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>
* | Add GPL-2.0+ SPDX-License-Identifier to source filesWolfgang Denk2013-07-24-16/+1
|/ | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: Tom Rini <trini@ti.com>
* nds32/ag102: add ag102 soc supportMacpaul Lin2012-04-22-0/+205
Add lowlevel ag102 soc support. Signed-off-by: Macpaul Lin <macpaul@andestech.com>