blob: bb17c90cca29539bf7bf7230bf5a76e1452d4f9e [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Allen Martin21fe2f02012-08-31 08:30:01 +00002#
3# (C) Copyright 2010,2011 Nvidia Corporation.
Allen Martin21fe2f02012-08-31 08:30:01 +00004
Masahiro Yamadaed1632a2015-02-20 17:04:04 +09005ifdef CONFIG_SPL_BUILD
6obj-y += cpu.o
Masahiro Yamadaed1632a2015-02-20 17:04:04 +09007endif
8
Allen Martin21fe2f02012-08-31 08:30:01 +00009# The AVP is ARMv4T architecture so we must use special compiler
10# flags for any startup files it might use.
Tom Rini3b787ef2016-08-01 18:54:53 -040011CFLAGS_warmboot_avp.o = -march=armv4t -U__LINUX_ARM_ARCH__ \
12 -D__LINUX_ARM_ARCH__=4
Marek BehĂșn332731e2021-05-20 13:24:17 +020013CFLAGS_REMOVE_warmboot_avp.o := $(LTO_CFLAGS)
Allen Martin21fe2f02012-08-31 08:30:01 +000014
Masahiro Yamada5a0c0ba2013-10-17 17:34:52 +090015obj-y += clock.o funcmux.o pinmux.o
16obj-$(CONFIG_TEGRA_LP0) += warmboot.o crypto.o warmboot_avp.o
17obj-$(CONFIG_TEGRA_CLOCK_SCALING) += emc.o
18obj-$(CONFIG_TEGRA_PMU) += pmu.o