diff options
| author | Peng Fan <[email protected]> | 2017-05-09 10:32:03 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-05-12 08:37:35 -0400 |
| commit | 25112101d0af42cfc1ddf330d78757082965557a (patch) | |
| tree | c7aea8afb821a7772f40dec54d35f6d5e6ce80d6 /include | |
| parent | 8fbbb6c27f8a3927b50bc8cd00fd288194ef83fc (diff) | |
asm-generic: global_data: change timebase_l/h to unsigned int
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]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-generic/global_data.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 1a77c982fa3..51838b5ead6 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -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 */ |
