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