blob: d243b9e895aa612d9e9653192c987b30e3b87b4f [file] [log] [blame]
Ian Campbell49aeca32014-05-05 11:52:23 +01001#
2# (C) Copyright 2012 Henrik Nordstrom <henrik@henriknordstrom.net>
3#
4# Based on some other Makefile
5# (C) Copyright 2000-2003
6# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7#
8# SPDX-License-Identifier: GPL-2.0+
9#
10obj-y += timer.o
Ian Campbell6efe3692014-05-05 11:52:26 +010011obj-y += board.o
Ian Campbell49aeca32014-05-05 11:52:23 +010012obj-y += clock.o
Hans de Goede6faddbc2014-11-15 23:18:18 +010013obj-y += cpu_info.o
Hans de Goededea16d22015-02-04 12:14:56 +010014obj-y += dram_helpers.o
Ian Campbellb2765ec2014-05-05 11:52:24 +010015obj-y += pinmux.o
Hans de Goede7bfe2bb2015-01-13 19:25:06 +010016ifndef CONFIG_MACH_SUN9I
Hans de Goede26a90052015-04-27 15:05:10 +020017obj-y += usb_phy.o
Hans de Goede7bfe2bb2015-01-13 19:25:06 +010018endif
Ian Campbell8f32aaa2014-10-24 21:20:47 +010019obj-$(CONFIG_MACH_SUN6I) += prcm.o
20obj-$(CONFIG_MACH_SUN8I) += prcm.o
Hans de Goede8760c912015-01-26 16:46:43 +010021obj-$(CONFIG_MACH_SUN9I) += prcm.o
Oliver Schinagl4f9a0082013-07-25 14:07:42 +020022obj-$(CONFIG_MACH_SUN6I) += p2wi.o
Hans de Goede699415b2014-11-29 13:38:35 +010023obj-$(CONFIG_MACH_SUN8I) += rsb.o
Hans de Goede8760c912015-01-26 16:46:43 +010024obj-$(CONFIG_MACH_SUN9I) += rsb.o
Ian Campbell8f32aaa2014-10-24 21:20:47 +010025obj-$(CONFIG_MACH_SUN4I) += clock_sun4i.o
26obj-$(CONFIG_MACH_SUN5I) += clock_sun4i.o
27obj-$(CONFIG_MACH_SUN6I) += clock_sun6i.o
28obj-$(CONFIG_MACH_SUN7I) += clock_sun4i.o
vishnupatekar39754b62015-11-29 01:07:24 +080029ifdef CONFIG_MACH_SUN8I_A83T
30obj-y += clock_sun8i_a83t.o
31else
Ian Campbell8f32aaa2014-10-24 21:20:47 +010032obj-$(CONFIG_MACH_SUN8I) += clock_sun6i.o
vishnupatekar39754b62015-11-29 01:07:24 +080033endif
Hans de Goede29e04f82015-01-14 19:56:33 +010034obj-$(CONFIG_MACH_SUN9I) += clock_sun9i.o
Chen-Yu Tsaifcc7b702015-08-25 10:49:19 +080035obj-$(CONFIG_MACH_SUN6I) += tzpc.o
Ian Campbell6efe3692014-05-05 11:52:26 +010036
Hans de Goede858b6db2015-04-25 22:18:09 +020037obj-$(CONFIG_AXP152_POWER) += pmic_bus.o
38obj-$(CONFIG_AXP209_POWER) += pmic_bus.o
Hans de Goedebb930c32015-04-25 14:07:37 +020039obj-$(CONFIG_AXP221_POWER) += pmic_bus.o
vishnupatekar1895dfd2015-11-29 01:07:22 +080040obj-$(CONFIG_AXP818_POWER) += pmic_bus.o
Hans de Goedebb930c32015-04-25 14:07:37 +020041
Ian Campbell6efe3692014-05-05 11:52:26 +010042ifndef CONFIG_SPL_BUILD
Marc Zyngier0237c632014-07-18 21:06:38 +010043ifdef CONFIG_ARMV7_PSCI
Chen-Yu Tsai4670eb42015-05-28 21:25:31 +080044obj-$(CONFIG_MACH_SUN6I) += psci_sun6i.o
Chen-Yu Tsaid196fad2015-05-28 21:25:30 +080045obj-$(CONFIG_MACH_SUN7I) += psci_sun7i.o
Chen-Yu Tsai5b9f1aa2015-05-28 21:25:33 +080046obj-$(CONFIG_MACH_SUN8I) += psci_sun6i.o
Marc Zyngier0237c632014-07-18 21:06:38 +010047endif
Ian Campbell6efe3692014-05-05 11:52:26 +010048endif
49
50ifdef CONFIG_SPL_BUILD
Hans de Goede5037c452014-11-02 20:31:16 +010051obj-$(CONFIG_MACH_SUN4I) += dram_sun4i.o
52obj-$(CONFIG_MACH_SUN5I) += dram_sun4i.o
Hans de Goede31521222014-10-25 20:27:23 +020053obj-$(CONFIG_MACH_SUN6I) += dram_sun6i.o
Hans de Goede5037c452014-11-02 20:31:16 +010054obj-$(CONFIG_MACH_SUN7I) += dram_sun4i.o
Hans de Goedef055ed62015-04-06 20:55:39 +020055obj-$(CONFIG_MACH_SUN8I_A23) += dram_sun8i_a23.o
Vishnu Patekar3702f142015-03-01 23:47:48 +053056obj-$(CONFIG_MACH_SUN8I_A33) += dram_sun8i_a33.o
Jens Kuske53f018e2015-11-17 15:12:59 +010057obj-$(CONFIG_MACH_SUN8I_H3) += dram_sun8i_h3.o
Simon Glass5debe1f2015-02-07 10:47:30 -070058obj-y += fel_utils.o
Ian Campbell6efe3692014-05-05 11:52:26 +010059endif