xref: /openbmc/u-boot/arch/arm/mach-mvebu/Makefile (revision d9b88d25)
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
30endif # CONFIG_SPL_BUILD
31obj-y	+= gpio.o
32obj-y	+= mbus.o
33obj-y	+= timer.o
34obj-$(CONFIG_SPL_BUILD) += spl.o
35obj-$(CONFIG_SPL_BUILD) += lowlevel_spl.o
36
37obj-$(CONFIG_ARMADA_38X) += serdes/a38x/
38obj-$(CONFIG_ARMADA_XP) += serdes/axp/
39
40endif # CONFIG_KIRKWOOD
41endif # CONFIG_ARM64
42