2018-05-06 17:58:06 -04:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2012-10-04 06:46:02 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2003
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2017-04-26 02:44:48 +08:00
|
|
|
# Copyright (C) 2012-2017 Altera Corporation <www.altera.com>
|
2021-08-10 11:26:42 +08:00
|
|
|
# Copyright (C) 2017-2021 Intel Corporation <www.intel.com>
|
2012-10-04 06:46:02 +00:00
|
|
|
|
2017-04-26 02:44:48 +08:00
|
|
|
obj-y += board.o
|
|
|
|
obj-y += clock_manager.o
|
|
|
|
obj-y += misc.o
|
2015-12-02 13:31:32 -06:00
|
|
|
|
2017-04-26 02:44:48 +08:00
|
|
|
ifdef CONFIG_TARGET_SOCFPGA_GEN5
|
|
|
|
obj-y += clock_manager_gen5.o
|
|
|
|
obj-y += misc_gen5.o
|
|
|
|
obj-y += reset_manager_gen5.o
|
|
|
|
obj-y += scan_manager.o
|
|
|
|
obj-y += system_manager_gen5.o
|
2018-05-24 00:17:29 +08:00
|
|
|
obj-y += timer.o
|
2017-04-26 02:44:48 +08:00
|
|
|
obj-y += wrap_pll_config.o
|
2017-07-26 13:05:38 +08:00
|
|
|
obj-y += fpga_manager.o
|
2017-04-26 02:44:48 +08:00
|
|
|
endif
|
2017-04-26 02:44:38 +08:00
|
|
|
|
2017-04-26 02:44:48 +08:00
|
|
|
ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
|
|
|
|
obj-y += clock_manager_arria10.o
|
|
|
|
obj-y += misc_arria10.o
|
|
|
|
obj-y += pinmux_arria10.o
|
|
|
|
obj-y += reset_manager_arria10.o
|
|
|
|
endif
|
2015-08-02 21:12:09 +02:00
|
|
|
|
2018-05-18 22:05:22 +08:00
|
|
|
ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
|
|
|
|
obj-y += clock_manager_s10.o
|
2020-12-24 18:20:58 +08:00
|
|
|
obj-y += lowlevel_init_soc64.o
|
2018-05-24 00:17:25 +08:00
|
|
|
obj-y += mailbox_s10.o
|
2021-08-10 11:26:35 +08:00
|
|
|
obj-y += misc_soc64.o
|
2018-05-24 00:17:26 +08:00
|
|
|
obj-y += mmu-arm64_s10.o
|
2018-05-18 22:05:23 +08:00
|
|
|
obj-y += reset_manager_s10.o
|
2021-03-24 13:11:36 +08:00
|
|
|
obj-y += system_manager_soc64.o
|
2018-05-24 00:17:29 +08:00
|
|
|
obj-y += timer_s10.o
|
2021-03-24 13:11:38 +08:00
|
|
|
obj-y += wrap_handoff_soc64.o
|
2021-03-24 13:11:35 +08:00
|
|
|
obj-y += wrap_pll_config_soc64.o
|
2018-05-18 22:05:22 +08:00
|
|
|
endif
|
2018-05-24 00:17:28 +08:00
|
|
|
|
2019-11-27 15:55:23 +08:00
|
|
|
ifdef CONFIG_TARGET_SOCFPGA_AGILEX
|
|
|
|
obj-y += clock_manager_agilex.o
|
2020-12-24 18:20:58 +08:00
|
|
|
obj-y += lowlevel_init_soc64.o
|
2019-11-27 15:55:32 +08:00
|
|
|
obj-y += mailbox_s10.o
|
2021-08-10 11:26:35 +08:00
|
|
|
obj-y += misc_soc64.o
|
2019-11-27 15:55:32 +08:00
|
|
|
obj-y += mmu-arm64_s10.o
|
|
|
|
obj-y += reset_manager_s10.o
|
2021-03-01 20:04:11 +08:00
|
|
|
obj-$(CONFIG_SOCFPGA_SECURE_VAB_AUTH) += secure_vab.o
|
2021-03-24 13:11:36 +08:00
|
|
|
obj-y += system_manager_soc64.o
|
2019-11-27 15:55:32 +08:00
|
|
|
obj-y += timer_s10.o
|
2021-03-01 20:04:12 +08:00
|
|
|
obj-$(CONFIG_SOCFPGA_SECURE_VAB_AUTH) += vab.o
|
2021-03-24 13:11:38 +08:00
|
|
|
obj-y += wrap_handoff_soc64.o
|
2021-03-24 13:11:35 +08:00
|
|
|
obj-y += wrap_pll_config_soc64.o
|
2019-11-27 15:55:23 +08:00
|
|
|
endif
|
|
|
|
|
2021-08-10 11:26:42 +08:00
|
|
|
ifdef CONFIG_TARGET_SOCFPGA_N5X
|
|
|
|
obj-y += clock_manager_n5x.o
|
|
|
|
obj-y += lowlevel_init_soc64.o
|
|
|
|
obj-y += mailbox_s10.o
|
|
|
|
obj-y += misc_soc64.o
|
|
|
|
obj-y += mmu-arm64_s10.o
|
|
|
|
obj-y += reset_manager_s10.o
|
|
|
|
obj-$(CONFIG_SOCFPGA_SECURE_VAB_AUTH) += secure_vab.o
|
|
|
|
obj-y += system_manager_soc64.o
|
|
|
|
obj-y += timer_s10.o
|
|
|
|
obj-$(CONFIG_SOCFPGA_SECURE_VAB_AUTH) += vab.o
|
|
|
|
obj-y += wrap_handoff_soc64.o
|
|
|
|
obj-y += wrap_pll_config_soc64.o
|
|
|
|
endif
|
|
|
|
|
2017-04-26 02:44:48 +08:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
ifdef CONFIG_TARGET_SOCFPGA_GEN5
|
2018-05-24 00:17:27 +08:00
|
|
|
obj-y += spl_gen5.o
|
2017-04-26 02:44:48 +08:00
|
|
|
obj-y += freeze_controller.o
|
|
|
|
obj-y += wrap_iocsr_config.o
|
|
|
|
obj-y += wrap_pinmux_config.o
|
|
|
|
obj-y += wrap_sdram_config.o
|
|
|
|
endif
|
2021-08-10 11:26:42 +08:00
|
|
|
ifdef CONFIG_TARGET_SOCFPGA_SOC64
|
|
|
|
obj-y += firewall.o
|
|
|
|
obj-y += spl_soc64.o
|
|
|
|
endif
|
2018-05-24 00:17:27 +08:00
|
|
|
ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
|
|
|
|
obj-y += spl_a10.o
|
|
|
|
endif
|
2018-05-24 00:17:28 +08:00
|
|
|
ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
|
|
|
|
obj-y += spl_s10.o
|
|
|
|
endif
|
2019-11-27 15:55:29 +08:00
|
|
|
ifdef CONFIG_TARGET_SOCFPGA_AGILEX
|
|
|
|
obj-y += spl_agilex.o
|
2021-08-10 11:26:42 +08:00
|
|
|
endif
|
|
|
|
ifdef CONFIG_TARGET_SOCFPGA_N5X
|
|
|
|
obj-y += spl_n5x.o
|
2019-11-27 15:55:29 +08:00
|
|
|
endif
|
2020-12-24 18:21:00 +08:00
|
|
|
else
|
2020-12-24 18:21:02 +08:00
|
|
|
obj-$(CONFIG_SPL_ATF) += secure_reg_helper.o
|
2020-12-24 18:21:00 +08:00
|
|
|
obj-$(CONFIG_SPL_ATF) += smc_api.o
|
2017-04-26 02:44:48 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_TARGET_SOCFPGA_GEN5
|
2015-08-02 21:12:09 +02:00
|
|
|
# QTS-generated config file wrappers
|
|
|
|
CFLAGS_wrap_iocsr_config.o += -I$(srctree)/board/$(BOARDDIR)
|
|
|
|
CFLAGS_wrap_pinmux_config.o += -I$(srctree)/board/$(BOARDDIR)
|
|
|
|
CFLAGS_wrap_pll_config.o += -I$(srctree)/board/$(BOARDDIR)
|
|
|
|
CFLAGS_wrap_sdram_config.o += -I$(srctree)/board/$(BOARDDIR)
|
2017-04-26 02:44:48 +08:00
|
|
|
endif
|