[U-Boot] [PATCH] MIPS: use common code from lib/time.c

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Wed Jan 14 22:01:43 CET 2015


Hi Thomas,

On 14.01.2015 19:44, thomas.langer at lantiq.com wrote:
> From: Thomas Langer <thomas.langer at lantiq.com>
> 
> The common code just needs the C0_COUNT as free running counter,
> without the need of writing and checking C0_COMPARE.
> 
> The function get_tbclk() is still implemented here instead of changing
> all places of CONFIG_SYS_MIPS_TIMER_FREQ to CONFIG_SYS_TIMER_RATE.
> 
> The change was tested on a MIPS32 system, but as the MIPS64 code
> was/is the same, this should be no problem.
> 
> Signed-off-by: Thomas Langer <thomas.langer at lantiq.com>
> ---
>  arch/mips/cpu/mips32/time.c |   59 +++----------------------------------------
>  arch/mips/cpu/mips64/time.c |   59 +++----------------------------------------
>  2 files changed, 8 insertions(+), 110 deletions(-)

applied to u-boot-mips/next, thanks

-- 
- Daniel


More information about the U-Boot mailing list