blob: 418f543b20fe850e6d552e76b671bc1e5f9a957f [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Dinh Nguyen77754402012-10-04 06:46:02 +00002#
3# (C) Copyright 2000-2003
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5#
Ley Foon Tand89e9792017-04-26 02:44:48 +08006# Copyright (C) 2012-2017 Altera Corporation <www.altera.com>
Dinh Nguyen77754402012-10-04 06:46:02 +00007
Ley Foon Tand89e9792017-04-26 02:44:48 +08008obj-y += board.o
9obj-y += clock_manager.o
Ley Foon Tand89e9792017-04-26 02:44:48 +080010obj-y += misc.o
Dinh Nguyene5ad7d92015-12-02 13:31:32 -060011
Ley Foon Tand89e9792017-04-26 02:44:48 +080012ifdef CONFIG_TARGET_SOCFPGA_GEN5
13obj-y += clock_manager_gen5.o
14obj-y += misc_gen5.o
15obj-y += reset_manager_gen5.o
16obj-y += scan_manager.o
17obj-y += system_manager_gen5.o
Ley Foon Tan73aede52018-05-24 00:17:29 +080018obj-y += timer.o
Ley Foon Tand89e9792017-04-26 02:44:48 +080019obj-y += wrap_pll_config.o
Tien Fong Chee6867e192017-07-26 13:05:38 +080020obj-y += fpga_manager.o
Ley Foon Tand89e9792017-04-26 02:44:48 +080021endif
Ley Foon Tan827e6a72017-04-26 02:44:38 +080022
Ley Foon Tand89e9792017-04-26 02:44:48 +080023ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
24obj-y += clock_manager_arria10.o
25obj-y += misc_arria10.o
26obj-y += pinmux_arria10.o
27obj-y += reset_manager_arria10.o
28endif
Marek Vasutca62d2e2015-08-02 21:12:09 +020029
Ley Foon Tan508791a2018-05-18 22:05:22 +080030ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
31obj-y += clock_manager_s10.o
Ley Foon Tana280e9d2018-05-24 00:17:25 +080032obj-y += mailbox_s10.o
Ley Foon Tand5591302018-05-24 00:17:24 +080033obj-y += misc_s10.o
Ley Foon Tan914a84e2018-05-24 00:17:26 +080034obj-y += mmu-arm64_s10.o
Ley Foon Tan3607a802018-05-18 22:05:23 +080035obj-y += reset_manager_s10.o
Ley Foon Tan73175d02018-05-18 22:05:24 +080036obj-y += system_manager_s10.o
Ley Foon Tan73aede52018-05-24 00:17:29 +080037obj-y += timer_s10.o
Ley Foon Tan73175d02018-05-18 22:05:24 +080038obj-y += wrap_pinmux_config_s10.o
Ley Foon Tan508791a2018-05-18 22:05:22 +080039obj-y += wrap_pll_config_s10.o
40endif
Ley Foon Tan4765ddb2018-05-24 00:17:28 +080041
Ley Foon Tanb4a20cb2019-11-27 15:55:23 +080042ifdef CONFIG_TARGET_SOCFPGA_AGILEX
43obj-y += clock_manager_agilex.o
Ley Foon Tana76b7112019-11-27 15:55:32 +080044obj-y += mailbox_s10.o
45obj-y += misc_s10.o
46obj-y += mmu-arm64_s10.o
47obj-y += reset_manager_s10.o
48obj-y += system_manager_s10.o
49obj-y += timer_s10.o
50obj-y += wrap_pinmux_config_s10.o
51obj-y += wrap_pll_config_s10.o
Ley Foon Tanb4a20cb2019-11-27 15:55:23 +080052endif
53
Ley Foon Tand89e9792017-04-26 02:44:48 +080054ifdef CONFIG_SPL_BUILD
Ley Foon Tand89e9792017-04-26 02:44:48 +080055ifdef CONFIG_TARGET_SOCFPGA_GEN5
Ley Foon Tanc859f2a2018-05-24 00:17:27 +080056obj-y += spl_gen5.o
Ley Foon Tand89e9792017-04-26 02:44:48 +080057obj-y += freeze_controller.o
58obj-y += wrap_iocsr_config.o
59obj-y += wrap_pinmux_config.o
60obj-y += wrap_sdram_config.o
61endif
Ley Foon Tanc859f2a2018-05-24 00:17:27 +080062ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
63obj-y += spl_a10.o
64endif
Ley Foon Tan4765ddb2018-05-24 00:17:28 +080065ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
Ley Foon Tan8b7962a2019-11-27 15:55:15 +080066obj-y += firewall.o
Ley Foon Tan4765ddb2018-05-24 00:17:28 +080067obj-y += spl_s10.o
68endif
Ley Foon Tan594cacf2019-11-27 15:55:29 +080069ifdef CONFIG_TARGET_SOCFPGA_AGILEX
Ley Foon Tana76b7112019-11-27 15:55:32 +080070obj-y += firewall.o
Ley Foon Tan594cacf2019-11-27 15:55:29 +080071obj-y += spl_agilex.o
72endif
Ley Foon Tand89e9792017-04-26 02:44:48 +080073endif
74
75ifdef CONFIG_TARGET_SOCFPGA_GEN5
Marek Vasutca62d2e2015-08-02 21:12:09 +020076# QTS-generated config file wrappers
Marek Vasutca62d2e2015-08-02 21:12:09 +020077CFLAGS_wrap_iocsr_config.o += -I$(srctree)/board/$(BOARDDIR)
78CFLAGS_wrap_pinmux_config.o += -I$(srctree)/board/$(BOARDDIR)
79CFLAGS_wrap_pll_config.o += -I$(srctree)/board/$(BOARDDIR)
80CFLAGS_wrap_sdram_config.o += -I$(srctree)/board/$(BOARDDIR)
Ley Foon Tand89e9792017-04-26 02:44:48 +080081endif