xref: /openbmc/u-boot/arch/arm/mach-socfpga/Makefile (revision 73175d04a9351857e4314cbe4cd64cbb9f27c69e)
183d290c5STom Rini# SPDX-License-Identifier: GPL-2.0+
205a21721SMasahiro Yamada#
305a21721SMasahiro Yamada# (C) Copyright 2000-2003
405a21721SMasahiro Yamada# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
505a21721SMasahiro Yamada#
6d89e979cSLey Foon Tan# Copyright (C) 2012-2017 Altera Corporation <www.altera.com>
705a21721SMasahiro Yamada
8d89e979cSLey Foon Tanobj-y	+= board.o
9d89e979cSLey Foon Tanobj-y	+= clock_manager.o
10d89e979cSLey Foon Tanobj-y	+= misc.o
11d89e979cSLey Foon Tanobj-y	+= reset_manager.o
12d89e979cSLey Foon Tanobj-y	+= timer.o
13e5ad7d98SDinh Nguyen
14d89e979cSLey Foon Tanifdef CONFIG_TARGET_SOCFPGA_GEN5
15d89e979cSLey Foon Tanobj-y	+= clock_manager_gen5.o
16d89e979cSLey Foon Tanobj-y	+= misc_gen5.o
17d89e979cSLey Foon Tanobj-y	+= reset_manager_gen5.o
18d89e979cSLey Foon Tanobj-y	+= scan_manager.o
19d89e979cSLey Foon Tanobj-y	+= system_manager_gen5.o
20d89e979cSLey Foon Tanobj-y	+= wrap_pll_config.o
216867e19aSTien Fong Cheeobj-y	+= fpga_manager.o
22d89e979cSLey Foon Tanendif
23827e6a7eSLey Foon Tan
24d89e979cSLey Foon Tanifdef CONFIG_TARGET_SOCFPGA_ARRIA10
25d89e979cSLey Foon Tanobj-y	+= clock_manager_arria10.o
26d89e979cSLey Foon Tanobj-y	+= misc_arria10.o
27d89e979cSLey Foon Tanobj-y	+= pinmux_arria10.o
28d89e979cSLey Foon Tanobj-y	+= reset_manager_arria10.o
29d89e979cSLey Foon Tanendif
30ca62d2e1SMarek Vasut
31508791a0SLey Foon Tanifdef CONFIG_TARGET_SOCFPGA_STRATIX10
32508791a0SLey Foon Tanobj-y	+= clock_manager_s10.o
333607a808SLey Foon Tanobj-y	+= reset_manager_s10.o
34*73175d04SLey Foon Tanobj-y	+= system_manager_s10.o
35*73175d04SLey Foon Tanobj-y	+= wrap_pinmux_config_s10.o
36508791a0SLey Foon Tanobj-y	+= wrap_pll_config_s10.o
37508791a0SLey Foon Tanendif
38d89e979cSLey Foon Tanifdef CONFIG_SPL_BUILD
39d89e979cSLey Foon Tanobj-y	+= spl.o
40d89e979cSLey Foon Tanifdef CONFIG_TARGET_SOCFPGA_GEN5
41d89e979cSLey Foon Tanobj-y	+= freeze_controller.o
42d89e979cSLey Foon Tanobj-y	+= wrap_iocsr_config.o
43d89e979cSLey Foon Tanobj-y	+= wrap_pinmux_config.o
44d89e979cSLey Foon Tanobj-y	+= wrap_sdram_config.o
45d89e979cSLey Foon Tanendif
46d89e979cSLey Foon Tanendif
47d89e979cSLey Foon Tan
48d89e979cSLey Foon Tanifdef CONFIG_TARGET_SOCFPGA_GEN5
49ca62d2e1SMarek Vasut# QTS-generated config file wrappers
50ca62d2e1SMarek VasutCFLAGS_wrap_iocsr_config.o	+= -I$(srctree)/board/$(BOARDDIR)
51ca62d2e1SMarek VasutCFLAGS_wrap_pinmux_config.o	+= -I$(srctree)/board/$(BOARDDIR)
52ca62d2e1SMarek VasutCFLAGS_wrap_pll_config.o	+= -I$(srctree)/board/$(BOARDDIR)
53ca62d2e1SMarek VasutCFLAGS_wrap_sdram_config.o	+= -I$(srctree)/board/$(BOARDDIR)
54d89e979cSLey Foon Tanendif
55