Searched hist:"8 dfafdde88eb3e71d5569846396ae67a91017232" (Results 1 – 2 of 2) sorted by relevance
| /rk3399_rockchip-uboot/lib/ |
| H A D | time.c | d770f3961f44295509ad23b7f056d9a37b947601 Fri Nov 08 23:30:14 UTC 2013 Daniel Schwierzeck <daniel.schwierzeck@gmail.com> time: fix gcc warnings on MIPS64
Commit 8dfafdde88eb3e71d5569846396ae67a91017232 introduced new gcc warnings on MIPS64:
time.c: In function 'tick_to_time': time.c:59:2: warning: comparison of distinct pointer types lacks a cast [enabled by default] time.c:59:2: warning: passing argument 1 of '__div64_32' from incompatible pointer type [enabled by default] In file included from time.c:10:0: ./u-boot-mips/include/div64.h:22:17: note: expected 'uint64_t *' but argument is of type 'long long unsigned int *' time.c: In function 'usec_to_tick': time.c:76:2: warning: comparison of distinct pointer types lacks a cast [enabled by default] time.c:76:2: warning: passing argument 1 of '__div64_32' from incompatible pointer type [enabled by default] In file included from time.c:10:0: ./u-boot-mips/include/div64.h:22:17: note: expected 'uint64_t *' but argument is of type 'long long unsigned int *'
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> 8dfafdde88eb3e71d5569846396ae67a91017232 Fri Oct 04 15:22:41 UTC 2013 Rob Herring <rob.herring@calxeda.com> Introduce common timer functions
Many platforms duplicate pretty much the same timer code yet they all have a 32-bit freerunning counter register. Create a common implementation that minimally requires 2 or 3 defines to add timer support:
CONFIG_SYS_TIMER_RATE - Clock rate of the timer counter CONFIG_SYS_TIMER_COUNTER - Address of 32-bit counter CONFIG_SYS_TIMER_COUNTS_DOWN - Define if counter counts down
All functions are weak or ifdef'ed so they can still be overriden by any platform.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
|
| /rk3399_rockchip-uboot/include/asm-generic/ |
| H A D | global_data.h | 8dfafdde88eb3e71d5569846396ae67a91017232 Fri Oct 04 15:22:41 UTC 2013 Rob Herring <rob.herring@calxeda.com> Introduce common timer functions
Many platforms duplicate pretty much the same timer code yet they all have a 32-bit freerunning counter register. Create a common implementation that minimally requires 2 or 3 defines to add timer support:
CONFIG_SYS_TIMER_RATE - Clock rate of the timer counter CONFIG_SYS_TIMER_COUNTER - Address of 32-bit counter CONFIG_SYS_TIMER_COUNTS_DOWN - Define if counter counts down
All functions are weak or ifdef'ed so they can still be overriden by any platform.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
|