blob: 0b05283a7a1db470a3771312d9282223822ca8c6 [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
Dinh Nguyen9365e902015-12-02 13:31:32 -060011
Ley Foon Tan5b7cea62017-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 Tan4eadafc22018-05-24 00:17:29 +080018obj-y += timer.o
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080019obj-y += wrap_pll_config.o
Tien Fong Chee31e50f42017-07-26 13:05:38 +080020obj-y += fpga_manager.o
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080021endif
Ley Foon Tan778ed2c2017-04-26 02:44:38 +080022
Ley Foon Tan5b7cea62017-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 Vasutaefb78d2015-08-02 21:12:09 +020029
Ley Foon Tan6751e7d2018-05-18 22:05:22 +080030ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
31obj-y += clock_manager_s10.o
Chee Hong Angbb272ed2020-12-24 18:20:58 +080032obj-y += lowlevel_init_soc64.o
Ley Foon Tane5b6a662018-05-24 00:17:25 +080033obj-y += mailbox_s10.o
Ley Foon Tanf80cb342018-05-24 00:17:24 +080034obj-y += misc_s10.o
Ley Foon Tanca6afad2018-05-24 00:17:26 +080035obj-y += mmu-arm64_s10.o
Ley Foon Tan449cbae2018-05-18 22:05:23 +080036obj-y += reset_manager_s10.o
Ley Foon Tan7cdb9122018-05-18 22:05:24 +080037obj-y += system_manager_s10.o
Ley Foon Tan4eadafc22018-05-24 00:17:29 +080038obj-y += timer_s10.o
Ley Foon Tan7cdb9122018-05-18 22:05:24 +080039obj-y += wrap_pinmux_config_s10.o
Ley Foon Tan6751e7d2018-05-18 22:05:22 +080040obj-y += wrap_pll_config_s10.o
41endif
Ley Foon Tan975e4962018-05-24 00:17:28 +080042
Ley Foon Tanb7d95b72019-11-27 15:55:23 +080043ifdef CONFIG_TARGET_SOCFPGA_AGILEX
44obj-y += clock_manager_agilex.o
Chee Hong Angbb272ed2020-12-24 18:20:58 +080045obj-y += lowlevel_init_soc64.o
Ley Foon Tan461d2982019-11-27 15:55:32 +080046obj-y += mailbox_s10.o
47obj-y += misc_s10.o
48obj-y += mmu-arm64_s10.o
49obj-y += reset_manager_s10.o
50obj-y += system_manager_s10.o
51obj-y += timer_s10.o
52obj-y += wrap_pinmux_config_s10.o
53obj-y += wrap_pll_config_s10.o
Ley Foon Tanb7d95b72019-11-27 15:55:23 +080054endif
55
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080056ifdef CONFIG_SPL_BUILD
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080057ifdef CONFIG_TARGET_SOCFPGA_GEN5
Ley Foon Tan3305ba72018-05-24 00:17:27 +080058obj-y += spl_gen5.o
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080059obj-y += freeze_controller.o
60obj-y += wrap_iocsr_config.o
61obj-y += wrap_pinmux_config.o
62obj-y += wrap_sdram_config.o
63endif
Ley Foon Tan3305ba72018-05-24 00:17:27 +080064ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
65obj-y += spl_a10.o
66endif
Ley Foon Tan975e4962018-05-24 00:17:28 +080067ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
Ley Foon Tanf1c4bd52019-11-27 15:55:15 +080068obj-y += firewall.o
Ley Foon Tan975e4962018-05-24 00:17:28 +080069obj-y += spl_s10.o
70endif
Ley Foon Tan600c7312019-11-27 15:55:29 +080071ifdef CONFIG_TARGET_SOCFPGA_AGILEX
Ley Foon Tan461d2982019-11-27 15:55:32 +080072obj-y += firewall.o
Ley Foon Tan600c7312019-11-27 15:55:29 +080073obj-y += spl_agilex.o
74endif
Chee Hong Angb5ddb912020-12-24 18:21:00 +080075else
76obj-$(CONFIG_SPL_ATF) += smc_api.o
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080077endif
78
79ifdef CONFIG_TARGET_SOCFPGA_GEN5
Marek Vasutaefb78d2015-08-02 21:12:09 +020080# QTS-generated config file wrappers
Marek Vasutaefb78d2015-08-02 21:12:09 +020081CFLAGS_wrap_iocsr_config.o += -I$(srctree)/board/$(BOARDDIR)
82CFLAGS_wrap_pinmux_config.o += -I$(srctree)/board/$(BOARDDIR)
83CFLAGS_wrap_pll_config.o += -I$(srctree)/board/$(BOARDDIR)
84CFLAGS_wrap_sdram_config.o += -I$(srctree)/board/$(BOARDDIR)
Ley Foon Tan5b7cea62017-04-26 02:44:48 +080085endif