asm-generic: global_data: change timebase_l/h to unsigned int
authorPeng Fan <[email protected]>
Tue, 9 May 2017 02:32:03 +0000 (10:32 +0800)
committerTom Rini <[email protected]>
Fri, 12 May 2017 12:37:35 +0000 (08:37 -0400)
Change type of timebase_l/h to unsigned int.
>From lib/time.c: ((uint64_t)gd->timebase_h << 32) | gd->timebase_l;
This piece code is based on that timebase_h and timebase_l are
32bits width, so change the type to unsigned int.

Signed-off-by: Peng Fan <[email protected]>
Cc: Eddie Cai <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: York Sun <[email protected]>
Cc: "Robert P. J. Day" <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Tom Rini <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
include/asm-generic/global_data.h

index 1a77c982fa3a5ab75ac533562312780e271915f2..51838b5ead6631cc601509046eec53bc9664bbd3 100644 (file)
@@ -83,8 +83,8 @@ typedef struct global_data {
 #ifdef CONFIG_SYS_I2C_MXC
        void *srdata[10];
 #endif
-       unsigned long timebase_h;
-       unsigned long timebase_l;
+       unsigned int timebase_h;
+       unsigned int timebase_l;
 #ifdef CONFIG_SYS_MALLOC_F_LEN
        unsigned long malloc_base;      /* base address of early malloc() */
        unsigned long malloc_limit;     /* limit address */