1# SPDX-License-Identifier: GPL-2.0+ 2# 3# (C) Copyright 2000-2003 4# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 5# 6# Copyright (C) 2012-2017 Altera Corporation <www.altera.com> 7 8obj-y += board.o 9obj-y += clock_manager.o 10obj-y += misc.o 11obj-y += reset_manager.o 12obj-y += timer.o 13 14ifdef 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 21obj-y += fpga_manager.o 22endif 23 24ifdef 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 30 31ifdef CONFIG_SPL_BUILD 32obj-y += spl.o 33ifdef CONFIG_TARGET_SOCFPGA_GEN5 34obj-y += freeze_controller.o 35obj-y += wrap_iocsr_config.o 36obj-y += wrap_pinmux_config.o 37obj-y += wrap_sdram_config.o 38endif 39endif 40 41ifdef CONFIG_TARGET_SOCFPGA_GEN5 42# QTS-generated config file wrappers 43CFLAGS_wrap_iocsr_config.o += -I$(srctree)/board/$(BOARDDIR) 44CFLAGS_wrap_pinmux_config.o += -I$(srctree)/board/$(BOARDDIR) 45CFLAGS_wrap_pll_config.o += -I$(srctree)/board/$(BOARDDIR) 46CFLAGS_wrap_sdram_config.o += -I$(srctree)/board/$(BOARDDIR) 47endif 48