Parcourir la source

tegra20: remove timer_init from SPL build

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>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Tested-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Allen Martin il y a 13 ans
Parent
commit
45ec5b2579
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      board/nvidia/common/board.c

+ 2 - 0
board/nvidia/common/board.c

@@ -49,6 +49,7 @@ const struct tegra20_sysinfo sysinfo = {
 	CONFIG_TEGRA20_BOARD_STRING
 	CONFIG_TEGRA20_BOARD_STRING
 };
 };
 
 
+#ifndef CONFIG_SPL_BUILD
 /*
 /*
  * Routine: timer_init
  * Routine: timer_init
  * Description: init the timestamp and lastinc value
  * Description: init the timestamp and lastinc value
@@ -57,6 +58,7 @@ int timer_init(void)
 {
 {
 	return 0;
 	return 0;
 }
 }
+#endif
 
 
 void __pin_mux_usb(void)
 void __pin_mux_usb(void)
 {
 {