summaryrefslogtreecommitdiff
path: root/board/AndesTech/adp-ag101
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-07-08 14:29:52 +0800
committerMacpaul Lin <macpaul@gmail.com>2013-07-24 11:50:28 +0800
commit4fc967051396e8e82138c65fd65a353f73e51b89 (patch)
tree97a31397413ba6bb1be5ca95109362360694ba9a /board/AndesTech/adp-ag101
parente3c58b029255f5acf5471e5992efd7f84b77ebad (diff)
downloadu-boot-imx-4fc967051396e8e82138c65fd65a353f73e51b89.zip
u-boot-imx-4fc967051396e8e82138c65fd65a353f73e51b89.tar.gz
u-boot-imx-4fc967051396e8e82138c65fd65a353f73e51b89.tar.bz2
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>
Diffstat (limited to 'board/AndesTech/adp-ag101')
0 files changed, 0 insertions, 0 deletions