blob: 654999cdf680eef370a278d60a3658c7f1caf040 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Dinh Nguyenad51f7c2012-10-04 06:46:02 +00002#
3# (C) Copyright 2000-2003
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5#
Ley Foon Tan5b7cea62017-04-26 02:44:48 +08006# Copyright (C) 2012-2017 Altera Corporation <www.altera.com>
Dinh Nguyenad51f7c2012-10-04 06:46:02 +00007
Ley Foon Tan5b7cea62017-04-26 02:44:48 +08008obj-y += board.o
9obj-y += clock_manager.o
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080010obj-y += misc.o
11obj-y += reset_manager.o
Dinh Nguyen9365e902015-12-02 13:31:32 -060012
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080013ifdef 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
Ley Foon Tan4eadafc22018-05-24 00:17:29 +080019obj-y += timer.o
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080020obj-y += wrap_pll_config.o
Tien Fong Chee31e50f42017-07-26 13:05:38 +080021obj-y += fpga_manager.o
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080022endif
Ley Foon Tan778ed2c2017-04-26 02:44:38 +080023
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080024ifdef 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
Ley Foon Tan4eadafc22018-05-24 00:17:29 +080029obj-y += timer.o
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080030endif
Marek Vasutaefb78d2015-08-02 21:12:09 +020031
Ley Foon Tan6751e7d2018-05-18 22:05:22 +080032ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
33obj-y += clock_manager_s10.o
Ley Foon Tane5b6a662018-05-24 00:17:25 +080034obj-y += mailbox_s10.o
Ley Foon Tanf80cb342018-05-24 00:17:24 +080035obj-y += misc_s10.o
Ley Foon Tanca6afad2018-05-24 00:17:26 +080036obj-y += mmu-arm64_s10.o
Ley Foon Tan449cbae2018-05-18 22:05:23 +080037obj-y += reset_manager_s10.o
Ley Foon Tan7cdb9122018-05-18 22:05:24 +080038obj-y += system_manager_s10.o
Ley Foon Tan4eadafc22018-05-24 00:17:29 +080039obj-y += timer_s10.o
Ley Foon Tan7cdb9122018-05-18 22:05:24 +080040obj-y += wrap_pinmux_config_s10.o
Ley Foon Tan6751e7d2018-05-18 22:05:22 +080041obj-y += wrap_pll_config_s10.o
42endif
Ley Foon Tan975e4962018-05-24 00:17:28 +080043
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080044ifdef CONFIG_SPL_BUILD
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080045ifdef CONFIG_TARGET_SOCFPGA_GEN5
Ley Foon Tan3305ba72018-05-24 00:17:27 +080046obj-y += spl_gen5.o
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080047obj-y += freeze_controller.o
48obj-y += wrap_iocsr_config.o
49obj-y += wrap_pinmux_config.o
50obj-y += wrap_sdram_config.o
51endif
Ley Foon Tan3305ba72018-05-24 00:17:27 +080052ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
53obj-y += spl_a10.o
54endif
Ley Foon Tan975e4962018-05-24 00:17:28 +080055ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
56obj-y += spl_s10.o
57endif
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080058endif
59
60ifdef CONFIG_TARGET_SOCFPGA_GEN5
Marek Vasutaefb78d2015-08-02 21:12:09 +020061# QTS-generated config file wrappers
Marek Vasutaefb78d2015-08-02 21:12:09 +020062CFLAGS_wrap_iocsr_config.o += -I$(srctree)/board/$(BOARDDIR)
63CFLAGS_wrap_pinmux_config.o += -I$(srctree)/board/$(BOARDDIR)
64CFLAGS_wrap_pll_config.o += -I$(srctree)/board/$(BOARDDIR)
65CFLAGS_wrap_sdram_config.o += -I$(srctree)/board/$(BOARDDIR)
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080066endif