81b6ffc6757abdde3567a59a9f431cb5716e4f69
[oweals/u-boot.git] / arch / arm / mach-socfpga / Makefile
1 # SPDX-License-Identifier: GPL-2.0+
2 #
3 # (C) Copyright 2000-2003
4 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 #
6 # Copyright (C) 2012-2017 Altera Corporation <www.altera.com>
7
8 obj-y   += board.o
9 obj-y   += clock_manager.o
10 obj-y   += misc.o
11
12 ifdef CONFIG_TARGET_SOCFPGA_GEN5
13 obj-y   += clock_manager_gen5.o
14 obj-y   += misc_gen5.o
15 obj-y   += reset_manager_gen5.o
16 obj-y   += scan_manager.o
17 obj-y   += system_manager_gen5.o
18 obj-y   += timer.o
19 obj-y   += wrap_pll_config.o
20 obj-y   += fpga_manager.o
21 endif
22
23 ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
24 obj-y   += clock_manager_arria10.o
25 obj-y   += misc_arria10.o
26 obj-y   += pinmux_arria10.o
27 obj-y   += reset_manager_arria10.o
28 endif
29
30 ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
31 obj-y   += clock_manager_s10.o
32 obj-y   += mailbox_s10.o
33 obj-y   += misc_s10.o
34 obj-y   += mmu-arm64_s10.o
35 obj-y   += reset_manager_s10.o
36 obj-y   += system_manager_s10.o
37 obj-y   += timer_s10.o
38 obj-y   += wrap_pinmux_config_s10.o
39 obj-y   += wrap_pll_config_s10.o
40 endif
41
42 ifdef CONFIG_TARGET_SOCFPGA_AGILEX
43 obj-y   += clock_manager_agilex.o
44 endif
45
46 ifdef CONFIG_SPL_BUILD
47 ifdef CONFIG_TARGET_SOCFPGA_GEN5
48 obj-y   += spl_gen5.o
49 obj-y   += freeze_controller.o
50 obj-y   += wrap_iocsr_config.o
51 obj-y   += wrap_pinmux_config.o
52 obj-y   += wrap_sdram_config.o
53 endif
54 ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
55 obj-y   += spl_a10.o
56 endif
57 ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
58 obj-y   += firewall.o
59 obj-y   += spl_s10.o
60 endif
61 ifdef CONFIG_TARGET_SOCFPGA_AGILEX
62 obj-y   += spl_agilex.o
63 endif
64 endif
65
66 ifdef CONFIG_TARGET_SOCFPGA_GEN5
67 # QTS-generated config file wrappers
68 CFLAGS_wrap_iocsr_config.o      += -I$(srctree)/board/$(BOARDDIR)
69 CFLAGS_wrap_pinmux_config.o     += -I$(srctree)/board/$(BOARDDIR)
70 CFLAGS_wrap_pll_config.o        += -I$(srctree)/board/$(BOARDDIR)
71 CFLAGS_wrap_sdram_config.o      += -I$(srctree)/board/$(BOARDDIR)
72 endif