Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Dinh Nguyen | ad51f7c | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 2 | # |
| 3 | # (C) Copyright 2000-2003 |
| 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 5 | # |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 6 | # Copyright (C) 2012-2017 Altera Corporation <www.altera.com> |
Jit Loon Lim | 977071e | 2024-03-12 22:01:03 +0800 | [diff] [blame^] | 7 | # Copyright (C) 2017-2024 Intel Corporation <www.intel.com> |
Dinh Nguyen | ad51f7c | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 8 | |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 9 | obj-y += board.o |
| 10 | obj-y += clock_manager.o |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 11 | obj-y += misc.o |
Dinh Nguyen | 9365e90 | 2015-12-02 13:31:32 -0600 | [diff] [blame] | 12 | |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 13 | ifdef CONFIG_TARGET_SOCFPGA_GEN5 |
| 14 | obj-y += clock_manager_gen5.o |
| 15 | obj-y += misc_gen5.o |
| 16 | obj-y += reset_manager_gen5.o |
| 17 | obj-y += scan_manager.o |
| 18 | obj-y += system_manager_gen5.o |
Ley Foon Tan | 4eadafc2 | 2018-05-24 00:17:29 +0800 | [diff] [blame] | 19 | obj-y += timer.o |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 20 | obj-y += wrap_pll_config.o |
Tien Fong Chee | 31e50f4 | 2017-07-26 13:05:38 +0800 | [diff] [blame] | 21 | obj-y += fpga_manager.o |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 22 | endif |
Ley Foon Tan | 778ed2c | 2017-04-26 02:44:38 +0800 | [diff] [blame] | 23 | |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 24 | ifdef CONFIG_TARGET_SOCFPGA_ARRIA10 |
| 25 | obj-y += clock_manager_arria10.o |
| 26 | obj-y += misc_arria10.o |
| 27 | obj-y += pinmux_arria10.o |
| 28 | obj-y += reset_manager_arria10.o |
| 29 | endif |
Marek Vasut | aefb78d | 2015-08-02 21:12:09 +0200 | [diff] [blame] | 30 | |
Ley Foon Tan | 6751e7d | 2018-05-18 22:05:22 +0800 | [diff] [blame] | 31 | ifdef CONFIG_TARGET_SOCFPGA_STRATIX10 |
| 32 | obj-y += clock_manager_s10.o |
Chee Hong Ang | bb272ed | 2020-12-24 18:20:58 +0800 | [diff] [blame] | 33 | obj-y += lowlevel_init_soc64.o |
Ley Foon Tan | e5b6a66 | 2018-05-24 00:17:25 +0800 | [diff] [blame] | 34 | obj-y += mailbox_s10.o |
Siew Chin Lim | e377bf2 | 2021-08-10 11:26:35 +0800 | [diff] [blame] | 35 | obj-y += misc_soc64.o |
Ley Foon Tan | ca6afad | 2018-05-24 00:17:26 +0800 | [diff] [blame] | 36 | obj-y += mmu-arm64_s10.o |
Ley Foon Tan | 449cbae | 2018-05-18 22:05:23 +0800 | [diff] [blame] | 37 | obj-y += reset_manager_s10.o |
Siew Chin Lim | 634a4ce | 2021-03-24 13:11:36 +0800 | [diff] [blame] | 38 | obj-y += system_manager_soc64.o |
Ley Foon Tan | 4eadafc2 | 2018-05-24 00:17:29 +0800 | [diff] [blame] | 39 | obj-y += timer_s10.o |
Siew Chin Lim | ff1eec3 | 2021-03-24 13:11:38 +0800 | [diff] [blame] | 40 | obj-y += wrap_handoff_soc64.o |
Siew Chin Lim | be73451 | 2021-03-24 13:11:35 +0800 | [diff] [blame] | 41 | obj-y += wrap_pll_config_soc64.o |
Ley Foon Tan | 6751e7d | 2018-05-18 22:05:22 +0800 | [diff] [blame] | 42 | endif |
Ley Foon Tan | 975e496 | 2018-05-24 00:17:28 +0800 | [diff] [blame] | 43 | |
Ley Foon Tan | b7d95b7 | 2019-11-27 15:55:23 +0800 | [diff] [blame] | 44 | ifdef CONFIG_TARGET_SOCFPGA_AGILEX |
| 45 | obj-y += clock_manager_agilex.o |
Chee Hong Ang | bb272ed | 2020-12-24 18:20:58 +0800 | [diff] [blame] | 46 | obj-y += lowlevel_init_soc64.o |
Ley Foon Tan | 461d298 | 2019-11-27 15:55:32 +0800 | [diff] [blame] | 47 | obj-y += mailbox_s10.o |
Siew Chin Lim | e377bf2 | 2021-08-10 11:26:35 +0800 | [diff] [blame] | 48 | obj-y += misc_soc64.o |
Ley Foon Tan | 461d298 | 2019-11-27 15:55:32 +0800 | [diff] [blame] | 49 | obj-y += mmu-arm64_s10.o |
| 50 | obj-y += reset_manager_s10.o |
Siew Chin Lim | 2492d59 | 2021-03-01 20:04:11 +0800 | [diff] [blame] | 51 | obj-$(CONFIG_SOCFPGA_SECURE_VAB_AUTH) += secure_vab.o |
Siew Chin Lim | 634a4ce | 2021-03-24 13:11:36 +0800 | [diff] [blame] | 52 | obj-y += system_manager_soc64.o |
Ley Foon Tan | 461d298 | 2019-11-27 15:55:32 +0800 | [diff] [blame] | 53 | obj-y += timer_s10.o |
Siew Chin Lim | d883450 | 2021-03-01 20:04:12 +0800 | [diff] [blame] | 54 | obj-$(CONFIG_SOCFPGA_SECURE_VAB_AUTH) += vab.o |
Siew Chin Lim | ff1eec3 | 2021-03-24 13:11:38 +0800 | [diff] [blame] | 55 | obj-y += wrap_handoff_soc64.o |
Siew Chin Lim | be73451 | 2021-03-24 13:11:35 +0800 | [diff] [blame] | 56 | obj-y += wrap_pll_config_soc64.o |
Ley Foon Tan | b7d95b7 | 2019-11-27 15:55:23 +0800 | [diff] [blame] | 57 | endif |
| 58 | |
Jit Loon Lim | 977071e | 2024-03-12 22:01:03 +0800 | [diff] [blame^] | 59 | ifdef CONFIG_TARGET_SOCFPGA_AGILEX5 |
| 60 | obj-y += clock_manager_agilex5.o |
| 61 | obj-y += mailbox_s10.o |
| 62 | obj-y += misc_soc64.o |
| 63 | obj-y += mmu-arm64_s10.o |
| 64 | obj-y += reset_manager_s10.o |
| 65 | obj-y += wrap_pll_config_soc64.o |
| 66 | endif |
| 67 | |
Siew Chin Lim | 988bfe4 | 2021-08-10 11:26:42 +0800 | [diff] [blame] | 68 | ifdef CONFIG_TARGET_SOCFPGA_N5X |
| 69 | obj-y += clock_manager_n5x.o |
| 70 | obj-y += lowlevel_init_soc64.o |
| 71 | obj-y += mailbox_s10.o |
| 72 | obj-y += misc_soc64.o |
| 73 | obj-y += mmu-arm64_s10.o |
| 74 | obj-y += reset_manager_s10.o |
| 75 | obj-$(CONFIG_SOCFPGA_SECURE_VAB_AUTH) += secure_vab.o |
| 76 | obj-y += system_manager_soc64.o |
| 77 | obj-y += timer_s10.o |
| 78 | obj-$(CONFIG_SOCFPGA_SECURE_VAB_AUTH) += vab.o |
| 79 | obj-y += wrap_handoff_soc64.o |
| 80 | obj-y += wrap_pll_config_soc64.o |
| 81 | endif |
| 82 | |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 83 | ifdef CONFIG_SPL_BUILD |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 84 | ifdef CONFIG_TARGET_SOCFPGA_GEN5 |
Ley Foon Tan | 3305ba7 | 2018-05-24 00:17:27 +0800 | [diff] [blame] | 85 | obj-y += spl_gen5.o |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 86 | obj-y += freeze_controller.o |
| 87 | obj-y += wrap_iocsr_config.o |
| 88 | obj-y += wrap_pinmux_config.o |
| 89 | obj-y += wrap_sdram_config.o |
| 90 | endif |
Siew Chin Lim | 988bfe4 | 2021-08-10 11:26:42 +0800 | [diff] [blame] | 91 | ifdef CONFIG_TARGET_SOCFPGA_SOC64 |
| 92 | obj-y += firewall.o |
| 93 | obj-y += spl_soc64.o |
| 94 | endif |
Ley Foon Tan | 3305ba7 | 2018-05-24 00:17:27 +0800 | [diff] [blame] | 95 | ifdef CONFIG_TARGET_SOCFPGA_ARRIA10 |
| 96 | obj-y += spl_a10.o |
| 97 | endif |
Ley Foon Tan | 975e496 | 2018-05-24 00:17:28 +0800 | [diff] [blame] | 98 | ifdef CONFIG_TARGET_SOCFPGA_STRATIX10 |
| 99 | obj-y += spl_s10.o |
| 100 | endif |
Ley Foon Tan | 600c731 | 2019-11-27 15:55:29 +0800 | [diff] [blame] | 101 | ifdef CONFIG_TARGET_SOCFPGA_AGILEX |
| 102 | obj-y += spl_agilex.o |
Siew Chin Lim | 988bfe4 | 2021-08-10 11:26:42 +0800 | [diff] [blame] | 103 | endif |
| 104 | ifdef CONFIG_TARGET_SOCFPGA_N5X |
| 105 | obj-y += spl_n5x.o |
Ley Foon Tan | 600c731 | 2019-11-27 15:55:29 +0800 | [diff] [blame] | 106 | endif |
Jit Loon Lim | 977071e | 2024-03-12 22:01:03 +0800 | [diff] [blame^] | 107 | ifdef CONFIG_TARGET_SOCFPGA_AGILEX5 |
| 108 | obj-y += spl_soc64.o |
| 109 | endif |
Chee Hong Ang | b5ddb91 | 2020-12-24 18:21:00 +0800 | [diff] [blame] | 110 | else |
Siew Chin Lim | c984e1f | 2020-12-24 18:21:02 +0800 | [diff] [blame] | 111 | obj-$(CONFIG_SPL_ATF) += secure_reg_helper.o |
Chee Hong Ang | b5ddb91 | 2020-12-24 18:21:00 +0800 | [diff] [blame] | 112 | obj-$(CONFIG_SPL_ATF) += smc_api.o |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 113 | endif |
| 114 | |
| 115 | ifdef CONFIG_TARGET_SOCFPGA_GEN5 |
Marek Vasut | aefb78d | 2015-08-02 21:12:09 +0200 | [diff] [blame] | 116 | # QTS-generated config file wrappers |
Marek Vasut | aefb78d | 2015-08-02 21:12:09 +0200 | [diff] [blame] | 117 | CFLAGS_wrap_iocsr_config.o += -I$(srctree)/board/$(BOARDDIR) |
| 118 | CFLAGS_wrap_pinmux_config.o += -I$(srctree)/board/$(BOARDDIR) |
| 119 | CFLAGS_wrap_pll_config.o += -I$(srctree)/board/$(BOARDDIR) |
| 120 | CFLAGS_wrap_sdram_config.o += -I$(srctree)/board/$(BOARDDIR) |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 121 | endif |