From: Simon Glass <sjg@chromium.org>
Date: Tue, 11 Nov 2014 00:16:42 +0000 (-0700)
Subject: dm: tegra: Avoid using arch-specific memcpy() in SPL
X-Git-Tag: v2025.01-rc5-pxa1908~14236^2~23
X-Git-Url: http://git.dujemihanovic.xyz/%22http:/kyber.dk/phpMyBuilder/static/%7B%7B%20.RelPermalink%20%7D%7D?a=commitdiff_plain;h=9dacbb277255c432047f6df8fe21505b9c8cf485;p=u-boot.git

dm: tegra: Avoid using arch-specific memcpy() in SPL

The faster functions are not actually available in SPL and the code size
likely isn't worth it. Use the normal memcpy() in SPL.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h
index 5d2b12a11d..d690045eb0 100644
--- a/include/configs/tegra-common.h
+++ b/include/configs/tegra-common.h
@@ -118,7 +118,9 @@
 #define CONFIG_SYS_MEMTEST_START	(NV_PA_SDRC_CS0 + 0x600000)
 #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + 0x100000)
 
+#ifndef CONFIG_SPL_BUILD
 #define CONFIG_USE_ARCH_MEMCPY
+#endif
 
 /*-----------------------------------------------------------------------
  * Physical Memory Map