diff mbox

[U-Boot,V2,1/2] arm: change tbu/l type to unsigned int

Message ID 1494297123-20513-1-git-send-email-peng.fan@nxp.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Peng Fan May 9, 2017, 2:32 a.m. UTC
Change tbu/l type to unsigned int.
From the timer file for arm,
"(((unsigned long long)gd->arch.tbu) << 32) | gd->arch.tbl;" is used,
This piece code is based on tbu/tbl is 32bits, so change the type to
unsigned int.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
---

V2: Add more commit log

 arch/arm/include/asm/global_data.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Tom Rini May 12, 2017, 5:23 p.m. UTC | #1
On Tue, May 09, 2017 at 10:32:02AM +0800, Peng Fan wrote:

> Change tbu/l type to unsigned int.
> >From the timer file for arm,
> "(((unsigned long long)gd->arch.tbu) << 32) | gd->arch.tbl;" is used,
> This piece code is based on tbu/tbl is 32bits, so change the type to
> unsigned int.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h
index 1aab629..3cc0e5f 100644
--- a/arch/arm/include/asm/global_data.h
+++ b/arch/arm/include/asm/global_data.h
@@ -32,8 +32,8 @@  struct arch_global_data {
 #endif
 	/* "static data" needed by most of timer.c on ARM platforms */
 	unsigned long timer_rate_hz;
-	unsigned long tbu;
-	unsigned long tbl;
+	unsigned int tbu;
+	unsigned int tbl;
 	unsigned long lastinc;
 	unsigned long long timer_reset_value;
 #if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))