summaryrefslogtreecommitdiff
path: root/arch/mips/mach-mtmips/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mach-mtmips/Makefile')
-rw-r--r--arch/mips/mach-mtmips/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/mach-mtmips/Makefile b/arch/mips/mach-mtmips/Makefile
index 4909b47ef27..19f1e07033e 100644
--- a/arch/mips/mach-mtmips/Makefile
+++ b/arch/mips/mach-mtmips/Makefile
@@ -1,9 +1,13 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y += cpu.o
+
+ifneq ($(CONFIG_SOC_MT7621),y)
obj-y += ddr_init.o
obj-y += ddr_cal.o
obj-$(CONFIG_SPL_BUILD) += spl.o
+endif
obj-$(CONFIG_SOC_MT7620) += mt7620/
+obj-$(CONFIG_SOC_MT7621) += mt7621/
obj-$(CONFIG_SOC_MT7628) += mt7628/