mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-02 17:41:08 +00:00
9a07eb0ba0
Add full support for dram initialization, using a fixed clock and autodetection of the memory organization (numbers of channels, bus-width, etc.). This is based on dram_sun6i.c and dram.h from u-boot in the Allwinner A31 SDK, extended with extra initialization sequences and the autodetect algorithm from boot0. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
38 lines
943 B
Makefile
38 lines
943 B
Makefile
#
|
|
# (C) Copyright 2012 Henrik Nordstrom <henrik@henriknordstrom.net>
|
|
#
|
|
# Based on some other Makefile
|
|
# (C) Copyright 2000-2003
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
obj-y += timer.o
|
|
obj-y += board.o
|
|
obj-y += clock.o
|
|
obj-y += pinmux.o
|
|
obj-$(CONFIG_MACH_SUN6I) += prcm.o
|
|
obj-$(CONFIG_MACH_SUN8I) += prcm.o
|
|
obj-$(CONFIG_MACH_SUN6I) += p2wi.o
|
|
obj-$(CONFIG_MACH_SUN4I) += clock_sun4i.o
|
|
obj-$(CONFIG_MACH_SUN5I) += clock_sun4i.o
|
|
obj-$(CONFIG_MACH_SUN6I) += clock_sun6i.o
|
|
obj-$(CONFIG_MACH_SUN7I) += clock_sun4i.o
|
|
obj-$(CONFIG_MACH_SUN8I) += clock_sun6i.o
|
|
|
|
ifndef CONFIG_SPL_BUILD
|
|
obj-y += cpu_info.o
|
|
ifdef CONFIG_ARMV7_PSCI
|
|
obj-y += psci.o
|
|
endif
|
|
endif
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
obj-$(CONFIG_MACH_SUN4I) += dram_sun4i.o
|
|
obj-$(CONFIG_MACH_SUN5I) += dram_sun4i.o
|
|
obj-$(CONFIG_MACH_SUN6I) += dram_sun6i.o
|
|
obj-$(CONFIG_MACH_SUN7I) += dram_sun4i.o
|
|
ifdef CONFIG_SPL_FEL
|
|
obj-y += start.o
|
|
endif
|
|
endif
|