mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
ae3xx: timer: Fix ae3xx timer work abnormal in 64 bit.
It will be work fine with unsigned long declaretion in timer register struct when system is 32 bit. But it will not work well when system is 64 bit. Replace it by u32 and verify both ok in 32/64 bit. Signed-off-by: Rick Chen <rick@andestech.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
b06c46de63
commit
0e920ef052
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@
|
|||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#define REG32_TMR(x) (*(unsigned long *) ((plat->regs) + (x>>2)))
|
||||
#define REG32_TMR(x) (*(u32 *) ((plat->regs) + (x>>2)))
|
||||
|
||||
/*
|
||||
* Definition of register offsets
|
||||
|
@ -68,7 +68,7 @@ struct atctmr_timer_regs {
|
|||
};
|
||||
|
||||
struct atftmr_timer_platdata {
|
||||
unsigned long *regs;
|
||||
u32 *regs;
|
||||
};
|
||||
|
||||
static int atftmr_timer_get_count(struct udevice *dev, u64 *count)
|
||||
|
|
Loading…
Reference in a new issue