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> |
Dinh Nguyen | ad51f7c | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 7 | |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 8 | obj-y += board.o |
| 9 | obj-y += clock_manager.o |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 10 | obj-y += misc.o |
| 11 | obj-y += reset_manager.o |
| 12 | obj-y += timer.o |
Dinh Nguyen | 9365e90 | 2015-12-02 13:31:32 -0600 | [diff] [blame] | 13 | |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 14 | ifdef CONFIG_TARGET_SOCFPGA_GEN5 |
| 15 | obj-y += clock_manager_gen5.o |
| 16 | obj-y += misc_gen5.o |
| 17 | obj-y += reset_manager_gen5.o |
| 18 | obj-y += scan_manager.o |
| 19 | obj-y += system_manager_gen5.o |
| 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 |
| 33 | obj-y += wrap_pll_config_s10.o |
| 34 | endif |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 35 | ifdef CONFIG_SPL_BUILD |
| 36 | obj-y += spl.o |
| 37 | ifdef CONFIG_TARGET_SOCFPGA_GEN5 |
| 38 | obj-y += freeze_controller.o |
| 39 | obj-y += wrap_iocsr_config.o |
| 40 | obj-y += wrap_pinmux_config.o |
| 41 | obj-y += wrap_sdram_config.o |
| 42 | endif |
| 43 | endif |
| 44 | |
| 45 | ifdef CONFIG_TARGET_SOCFPGA_GEN5 |
Marek Vasut | aefb78d | 2015-08-02 21:12:09 +0200 | [diff] [blame] | 46 | # QTS-generated config file wrappers |
Marek Vasut | aefb78d | 2015-08-02 21:12:09 +0200 | [diff] [blame] | 47 | CFLAGS_wrap_iocsr_config.o += -I$(srctree)/board/$(BOARDDIR) |
| 48 | CFLAGS_wrap_pinmux_config.o += -I$(srctree)/board/$(BOARDDIR) |
| 49 | CFLAGS_wrap_pll_config.o += -I$(srctree)/board/$(BOARDDIR) |
| 50 | CFLAGS_wrap_sdram_config.o += -I$(srctree)/board/$(BOARDDIR) |
Ley Foon Tan | 5b7cea6 | 2017-04-26 02:44:48 +0800 | [diff] [blame] | 51 | endif |