tegra2: Add arch_cpu_init() to fire up Cortex-A9
[kernel/u-boot.git] / arch / arm / cpu / armv7 / tegra2 / config.mk
index 96c0795..f84fdc8 100644 (file)
@@ -26,3 +26,9 @@
 
 # Use ARMv4 for Tegra2 - initial code runs on the AVP, which is an ARM7TDI.
 PLATFORM_CPPFLAGS += -march=armv4
+
+# Tegra has an ARMv4T CPU which runs board_init_f(), so we must build this
+# file with compatible flags
+ifdef CONFIG_TEGRA2
+CFLAGS_arch/arm/lib/board.o += -march=armv4t
+endif