lib: time: add weak timer_init() function
authorDarwin Rambo <drambo@broadcom.com>
Thu, 19 Dec 2013 23:06:12 +0000 (15:06 -0800)
committerTom Rini <trini@ti.com>
Fri, 24 Jan 2014 21:59:06 +0000 (16:59 -0500)
commitde351d6be6868270db21ed8a0f89d3ef703bc18e
treeac7f3183bfb5b90a9ac2bd5695ff2eacc45af466
parentf28bea0003536976ebe2fb299cfc140702fec489
lib: time: add weak timer_init() function

If timer_init() is made a weak stub function, then it allows us to
remove several empty timer_init functions for those boards that
already have a timer initialized when u-boot starts. Architectures
that use the timer framework may also remove the need for timer.c.

Signed-off-by: Darwin Rambo <drambo@broadcom.com>
Reviewed-by: Tim Kryger <tim.kryger@linaro.org>
arch/arm/cpu/arm1176/bcm2835/timer.c
arch/arm/cpu/sa1100/timer.c
board/armltd/vexpress/vexpress_common.c
board/nvidia/common/board.c
board/sandbox/sandbox/sandbox.c
lib/time.c