diff options
author | Knut Wohlrab <knut.wohlrab@de.bosch.com> | 2013-03-04 04:16:02 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2013-03-20 11:36:11 +0100 |
commit | 982a3c410e21f2f7e5fee22c7fd788fc7ef7fdf9 (patch) | |
tree | cd2ea4e5f0a36010f09206c07de6dfc62784dcd7 /include/configs/NETVIA.h | |
parent | 40f1daa0b797e9db7413cf477637ba8d31cbb2d7 (diff) |
imx-common: timer: fix 32-bit overflow
The i.MX6 common timer uses the 32-bit variable tbl (time base lower)
to record the overflow of the 32-bit counter. I.e. if the counter
overflows, the variable tbl does overflow, too.
To capture this overflow, use the variable tbu (time base upper), too.
Return the combined value of tbl and tbu.
lastinc is unused then, remove it.
Signed-off-by: Knut Wohlrab <knut.wohlrab@de.bosch.com>
Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include/configs/NETVIA.h')
0 files changed, 0 insertions, 0 deletions