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# Copyright (C) 2017-2020 Intel Corporation <www.intel.com>
8
9obj-y	+= board.o
10obj-y	+= clock_manager.o
11obj-y	+= misc.o
12
13ifdef CONFIG_TARGET_SOCFPGA_GEN5
14obj-y	+= clock_manager_gen5.o
15obj-y	+= misc_gen5.o
16obj-y	+= reset_manager_gen5.o
17obj-y	+= scan_manager.o
18obj-y	+= system_manager_gen5.o
19obj-y	+= timer.o
20obj-y	+= wrap_pll_config.o
21obj-y	+= fpga_manager.o
22endif
23
24ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
25obj-y	+= clock_manager_arria10.o
26obj-y	+= misc_arria10.o
27obj-y	+= pinmux_arria10.o
28obj-y	+= reset_manager_arria10.o
29endif
30
31ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
32obj-y	+= clock_manager_s10.o
33obj-y	+= lowlevel_init_soc64.o
34obj-y	+= mailbox_s10.o
35obj-y	+= misc_s10.o
36obj-y	+= mmu-arm64_s10.o
37obj-y	+= reset_manager_s10.o
38obj-y	+= system_manager_s10.o
39obj-y	+= timer_s10.o
40obj-y	+= wrap_pinmux_config_s10.o
41obj-y	+= wrap_pll_config_s10.o
42endif
43
44ifdef CONFIG_TARGET_SOCFPGA_AGILEX
45obj-y	+= clock_manager_agilex.o
46obj-y	+= lowlevel_init_soc64.o
47obj-y	+= mailbox_s10.o
48obj-y	+= misc_s10.o
49obj-y	+= mmu-arm64_s10.o
50obj-y	+= reset_manager_s10.o
51obj-$(CONFIG_SOCFPGA_SECURE_VAB_AUTH)	+= secure_vab.o
52obj-y	+= system_manager_s10.o
53obj-y	+= timer_s10.o
54obj-$(CONFIG_SOCFPGA_SECURE_VAB_AUTH)	+= vab.o
55obj-y	+= wrap_pinmux_config_s10.o
56obj-y	+= wrap_pll_config_s10.o
57endif
58
59ifdef CONFIG_SPL_BUILD
60ifdef CONFIG_TARGET_SOCFPGA_GEN5
61obj-y	+= spl_gen5.o
62obj-y	+= freeze_controller.o
63obj-y	+= wrap_iocsr_config.o
64obj-y	+= wrap_pinmux_config.o
65obj-y	+= wrap_sdram_config.o
66endif
67ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
68obj-y	+= spl_a10.o
69endif
70ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
71obj-y	+= firewall.o
72obj-y	+= spl_s10.o
73endif
74ifdef CONFIG_TARGET_SOCFPGA_AGILEX
75obj-y	+= firewall.o
76obj-y	+= spl_agilex.o
77endif
78else
79obj-$(CONFIG_SPL_ATF) += secure_reg_helper.o
80obj-$(CONFIG_SPL_ATF) += smc_api.o
81endif
82
83ifdef CONFIG_TARGET_SOCFPGA_GEN5
84# QTS-generated config file wrappers
85CFLAGS_wrap_iocsr_config.o	+= -I$(srctree)/board/$(BOARDDIR)
86CFLAGS_wrap_pinmux_config.o	+= -I$(srctree)/board/$(BOARDDIR)
87CFLAGS_wrap_pll_config.o	+= -I$(srctree)/board/$(BOARDDIR)
88CFLAGS_wrap_sdram_config.o	+= -I$(srctree)/board/$(BOARDDIR)
89endif
90