From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Wed, 20 Mar 2013 11:39:15 +0100 Subject: [U-Boot] [PATCH] imx-common: timer: fix 32-bit overflow In-Reply-To: <513D7D5B.3050602@de.bosch.com> References: <1362406562-17986-1-git-send-email-dirk.behme@de.bosch.com> <513D7D5B.3050602@de.bosch.com> Message-ID: <514991D3.4010202@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 11/03/2013 07:44, Dirk Behme wrote: > On 04.03.2013 15:16, Dirk Behme wrote: >> From: Knut Wohlrab >> >> 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 >> Signed-off-by: Dirk Behme >> --- >> Note: This replaces the patch >> http://patchwork.ozlabs.org/patch/224646/ >> >> arch/arm/imx-common/timer.c | 26 +++++++------------------- >> 1 file changed, 7 insertions(+), 19 deletions(-) >> >> Index: freescale-u-boot-imx.git/arch/arm/imx-common/timer.c >> =================================================================== Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================