summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorDarwin Rambo <drambo@broadcom.com>2013-12-19 15:06:12 -0800
committerTom Rini <trini@ti.com>2014-01-24 16:59:06 -0500
commitde351d6be6868270db21ed8a0f89d3ef703bc18e (patch)
treeac7f3183bfb5b90a9ac2bd5695ff2eacc45af466 /board
parentf28bea0003536976ebe2fb299cfc140702fec489 (diff)
downloadu-boot-imx-de351d6be6868270db21ed8a0f89d3ef703bc18e.zip
u-boot-imx-de351d6be6868270db21ed8a0f89d3ef703bc18e.tar.gz
u-boot-imx-de351d6be6868270db21ed8a0f89d3ef703bc18e.tar.bz2
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>
Diffstat (limited to 'board')
-rw-r--r--board/armltd/vexpress/vexpress_common.c5
-rw-r--r--board/nvidia/common/board.c11
-rw-r--r--board/sandbox/sandbox/sandbox.c5
3 files changed, 0 insertions, 21 deletions
diff --git a/board/armltd/vexpress/vexpress_common.c b/board/armltd/vexpress/vexpress_common.c
index da5cb01..cb2de2f 100644
--- a/board/armltd/vexpress/vexpress_common.c
+++ b/board/armltd/vexpress/vexpress_common.c
@@ -119,11 +119,6 @@ void dram_init_banksize(void)
get_ram_size((long *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);
}
-int timer_init(void)
-{
- return 0;
-}
-
/*
* Start timer:
* Setup a 32 bit timer, running at 1KHz
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c
index 1972527..e650fed 100644
--- a/board/nvidia/common/board.c
+++ b/board/nvidia/common/board.c
@@ -48,17 +48,6 @@ const struct tegra_sysinfo sysinfo = {
CONFIG_TEGRA_BOARD_STRING
};
-#ifndef CONFIG_SPL_BUILD
-/*
- * Routine: timer_init
- * Description: init the timestamp and lastinc value
- */
-int timer_init(void)
-{
- return 0;
-}
-#endif
-
void __pin_mux_usb(void)
{
}
diff --git a/board/sandbox/sandbox/sandbox.c b/board/sandbox/sandbox/sandbox.c
index 65dcce8..95efaff 100644
--- a/board/sandbox/sandbox/sandbox.c
+++ b/board/sandbox/sandbox/sandbox.c
@@ -23,11 +23,6 @@ unsigned long timer_read_counter(void)
return os_get_nsec() / 1000;
}
-int timer_init(void)
-{
- return 0;
-}
-
int dram_init(void)
{
gd->ram_size = CONFIG_SYS_SDRAM_SIZE;