blob: 61f5778de576e3a26ea8c523b92fc253804dfe08 [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
11obj-y += reset_manager.o
12obj-y += timer.o
Dinh Nguyene5ad7d92015-12-02 13:31:32 -060013
Ley Foon Tand89e9792017-04-26 02:44:48 +080014ifdef CONFIG_TARGET_SOCFPGA_GEN5
15obj-y += clock_manager_gen5.o
16obj-y += misc_gen5.o
17obj-y += reset_manager_gen5.o
18obj-y += scan_manager.o
19obj-y += system_manager_gen5.o
20obj-y += wrap_pll_config.o
Tien Fong Chee6867e192017-07-26 13:05:38 +080021obj-y += fpga_manager.o
Ley Foon Tand89e9792017-04-26 02:44:48 +080022endif
Ley Foon Tan827e6a72017-04-26 02:44:38 +080023
Ley Foon Tand89e9792017-04-26 02:44:48 +080024ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
25obj-y += clock_manager_arria10.o
26obj-y += misc_arria10.o
27obj-y += pinmux_arria10.o
28obj-y += reset_manager_arria10.o
29endif
Marek Vasutca62d2e2015-08-02 21:12:09 +020030
Ley Foon Tan508791a2018-05-18 22:05:22 +080031ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
32obj-y += clock_manager_s10.o
Ley Foon Tan3607a802018-05-18 22:05:23 +080033obj-y += reset_manager_s10.o
Ley Foon Tan73175d02018-05-18 22:05:24 +080034obj-y += system_manager_s10.o
35obj-y += wrap_pinmux_config_s10.o
Ley Foon Tan508791a2018-05-18 22:05:22 +080036obj-y += wrap_pll_config_s10.o
37endif
Ley Foon Tand89e9792017-04-26 02:44:48 +080038ifdef CONFIG_SPL_BUILD
39obj-y += spl.o
40ifdef CONFIG_TARGET_SOCFPGA_GEN5
41obj-y += freeze_controller.o
42obj-y += wrap_iocsr_config.o
43obj-y += wrap_pinmux_config.o
44obj-y += wrap_sdram_config.o
45endif
46endif
47
48ifdef CONFIG_TARGET_SOCFPGA_GEN5
Marek Vasutca62d2e2015-08-02 21:12:09 +020049# QTS-generated config file wrappers
Marek Vasutca62d2e2015-08-02 21:12:09 +020050CFLAGS_wrap_iocsr_config.o += -I$(srctree)/board/$(BOARDDIR)
51CFLAGS_wrap_pinmux_config.o += -I$(srctree)/board/$(BOARDDIR)
52CFLAGS_wrap_pll_config.o += -I$(srctree)/board/$(BOARDDIR)
53CFLAGS_wrap_sdram_config.o += -I$(srctree)/board/$(BOARDDIR)
Ley Foon Tand89e9792017-04-26 02:44:48 +080054endif