mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-03 18:10:13 +00:00
124289bd56
The Allwinner R528/T113-s/D1/D1s SoCs all share the same die, so use the same DRAM initialisation code. Make use of prior art here and lift some code from awboot[1], which carried init code based on earlier decompilation efforts, but with a GPL2 license tag. This code has been heavily reworked and cleaned up, to match previous DRAM routines for other SoCs, and also to be closer to U-Boot's coding style and support routines. The actual DRAM chip timing parameters are included in the main file, since they cover all DRAM types, and are protected by a new Kconfig CONFIG_SUNXI_DRAM_TYPE symbol, which allows the compiler to pick only the relevant settings, at build time. The relevant DRAM chips/board specific configuration parameters are delivered via Kconfig, so this code here should work for all supported SoCs and DRAM chips combinations. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Tested-by: Sam Edwards <CFSworks@gmail.com>
32 lines
903 B
Makefile
32 lines
903 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (c) 2015 Google, Inc
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
#
|
|
obj-$(CONFIG_$(SPL_TPL_)DM) += ram-uclass.o
|
|
obj-$(CONFIG_MPC83XX_SDRAM) += mpc83xx_sdram.o
|
|
obj-$(CONFIG_SANDBOX) += sandbox_ram.o
|
|
obj-$(CONFIG_STM32MP1_DDR) += stm32mp1/
|
|
obj-$(CONFIG_STM32_SDRAM) += stm32_sdram.o
|
|
obj-$(CONFIG_ARCH_BMIPS) += bmips_ram.o
|
|
|
|
obj-$(CONFIG_ARCH_ROCKCHIP) += rockchip/
|
|
|
|
obj-$(CONFIG_K3_AM654_DDRSS) += k3-am654-ddrss.o
|
|
obj-$(CONFIG_ARCH_MEDIATEK) += mediatek/
|
|
obj-$(CONFIG_ARCH_ASPEED) += aspeed/
|
|
obj-$(CONFIG_K3_DDRSS) += k3-ddrss/
|
|
|
|
obj-$(CONFIG_IMXRT_SDRAM) += imxrt_sdram.o
|
|
|
|
obj-$(CONFIG_RAM_SIFIVE) += sifive/
|
|
ifdef CONFIG_SPL_BUILD
|
|
obj-$(CONFIG_SPL_STARFIVE_DDR) += starfive/
|
|
endif
|
|
|
|
obj-$(CONFIG_DRAM_SUN20I_D1) += sunxi/
|
|
|
|
obj-$(CONFIG_ARCH_OCTEON) += octeon/
|
|
|
|
obj-$(CONFIG_ARCH_RMOBILE) += renesas/
|
|
obj-$(CONFIG_CADENCE_DDR_CTRL) += cadence/
|