xref: /openbmc/u-boot/arch/arm/mach-mvebu/Makefile (revision 9d922450)
1#
2# Copyright (C) 2014-2016 Stefan Roese <sr@denx.de>
3#
4# SPDX-License-Identifier:	GPL-2.0+
5#
6
7ifdef CONFIG_ARM64
8
9obj-$(CONFIG_ARMADA_3700) += armada3700/
10obj-$(CONFIG_ARMADA_8K) += armada8k/
11obj-y += arm64-common.o
12obj-y += sata.o
13
14else # CONFIG_ARM64
15
16ifdef CONFIG_KIRKWOOD
17
18obj-y	= dram.o
19obj-y	+= gpio.o
20obj-y	+= timer.o
21
22else # CONFIG_KIRKWOOD
23
24obj-y	= cpu.o
25obj-y	+= dram.o
26ifndef CONFIG_SPL_BUILD
27obj-$(CONFIG_ARMADA_375) += ../../../drivers/ddr/marvell/axp/xor.o
28obj-$(CONFIG_ARMADA_38X) += ../../../drivers/ddr/marvell/a38x/xor.o
29obj-$(CONFIG_ARMADA_XP) += ../../../drivers/ddr/marvell/axp/xor.o
30obj-$(CONFIG_MVEBU_EFUSE) += efuse.o
31endif # CONFIG_SPL_BUILD
32obj-y	+= gpio.o
33obj-y	+= mbus.o
34obj-y	+= timer.o
35obj-$(CONFIG_SPL_BUILD) += spl.o
36obj-$(CONFIG_SPL_BUILD) += lowlevel_spl.o
37
38obj-$(CONFIG_ARMADA_38X) += serdes/a38x/
39obj-$(CONFIG_ARMADA_XP) += serdes/axp/
40
41endif # CONFIG_KIRKWOOD
42endif # CONFIG_ARM64
43