Patchwork [U-Boot,v3,06/14] tegra20: remove timer_init from SPL build

login
register
mail settings
Submitter Allen Martin
Date June 8, 2012, 9:15 p.m.
Message ID <1339190167-20320-7-git-send-email-amartin@nvidia.com>
Download mbox | patch
Permalink /patch/163852/
State Accepted
Commit 45ec5b2579e8f9e58f58d9face9147957e5a873e
Headers show

Comments

Allen Martin - June 8, 2012, 9:15 p.m.
Don't use timer_init from tegra board.c.  This comes out of arm720t
for the SPL build.

Signed-off-by: Allen Martin <amartin@nvidia.com>
---
 board/nvidia/common/board.c |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c
index 90a77e2..f349243 100644
--- a/board/nvidia/common/board.c
+++ b/board/nvidia/common/board.c
@@ -49,6 +49,7 @@  const struct tegra20_sysinfo sysinfo = {
 	CONFIG_TEGRA20_BOARD_STRING
 };
 
+#ifndef CONFIG_SPL_BUILD
 /*
  * Routine: timer_init
  * Description: init the timestamp and lastinc value
@@ -57,6 +58,7 @@  int timer_init(void)
 {
 	return 0;
 }
+#endif
 
 void __pin_mux_usb(void)
 {