mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +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>
132 lines
3.7 KiB
Makefile
132 lines
3.7 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)BIOSEMU) += bios_emulator/
|
|
obj-$(CONFIG_$(SPL_TPL_)BLK) += block/
|
|
obj-$(CONFIG_$(SPL_TPL_)BOOTCOUNT_LIMIT) += bootcount/
|
|
obj-$(CONFIG_$(SPL_TPL_)BUTTON) += button/
|
|
obj-$(CONFIG_$(SPL_TPL_)CACHE) += cache/
|
|
obj-$(CONFIG_$(SPL_TPL_)CLK) += clk/
|
|
obj-$(CONFIG_$(SPL_TPL_)DM) += core/
|
|
obj-$(CONFIG_$(SPL_TPL_)DMA) += dma/
|
|
obj-$(CONFIG_$(SPL_TPL_)DMA_LEGACY) += dma/
|
|
obj-$(CONFIG_$(SPL_TPL_)DFU) += dfu/
|
|
obj-$(CONFIG_$(SPL_TPL_)EXTCON) += extcon/
|
|
obj-$(CONFIG_$(SPL_TPL_)GPIO) += gpio/
|
|
obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC) += misc/
|
|
obj-$(CONFIG_$(SPL_TPL_)SYSRESET) += sysreset/
|
|
obj-$(CONFIG_$(SPL_TPL_)FIRMWARE) +=firmware/
|
|
obj-$(CONFIG_$(SPL_TPL_)I2C) += i2c/
|
|
obj-$(CONFIG_$(SPL_TPL_)INPUT) += input/
|
|
obj-$(CONFIG_$(SPL_TPL_)LED) += led/
|
|
obj-$(CONFIG_$(SPL_TPL_)MMC) += mmc/
|
|
obj-y += mtd/
|
|
obj-$(CONFIG_$(SPL_TPL_)ETH) += net/
|
|
obj-$(CONFIG_$(SPL_TPL_)PCH) += pch/
|
|
obj-$(CONFIG_$(SPL_TPL_)PCI) += pci/
|
|
obj-$(CONFIG_$(SPL_TPL_)PHY) += phy/
|
|
obj-$(CONFIG_$(SPL_TPL_)PINCTRL) += pinctrl/
|
|
obj-$(CONFIG_$(SPL_TPL_)POWER) += power/
|
|
obj-$(CONFIG_$(SPL_TPL_)RAM) += ram/
|
|
obj-$(CONFIG_$(SPL_TPL_)RTC) += rtc/
|
|
obj-$(CONFIG_$(SPL_TPL_)SERIAL) += serial/
|
|
obj-$(CONFIG_$(SPL_TPL_)SPI) += spi/
|
|
obj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/
|
|
obj-$(CONFIG_$(SPL_TPL_)VIRTIO) += virtio/
|
|
obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox/
|
|
obj-$(CONFIG_$(SPL_)REMOTEPROC) += remoteproc/
|
|
obj-$(CONFIG_$(SPL_)SYSINFO) += sysinfo/
|
|
obj-$(CONFIG_$(SPL_TPL_)SM) += sm/
|
|
obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm/
|
|
obj-$(CONFIG_$(SPL_)NVME) += nvme/
|
|
obj-$(CONFIG_XEN) += xen/
|
|
obj-$(CONFIG_$(SPL_)FPGA) += fpga/
|
|
obj-$(CONFIG_$(SPL_)VIDEO) += video/
|
|
|
|
obj-y += bus/
|
|
|
|
ifndef CONFIG_TPL_BUILD
|
|
ifndef CONFIG_VPL_BUILD
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
obj-$(CONFIG_SPL_CPU) += cpu/
|
|
obj-$(CONFIG_SPL_CRYPTO) += crypto/
|
|
obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR) += ddr/fsl/
|
|
obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
|
|
obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
|
|
obj-$(CONFIG_$(SPL_)ALTERA_SDRAM) += ddr/altera/
|
|
obj-$(CONFIG_ARCH_IMX8M) += ddr/imx/imx8m/
|
|
obj-$(CONFIG_IMX8ULP_DRAM) += ddr/imx/imx8ulp/
|
|
obj-$(CONFIG_ARCH_IMX9) += ddr/imx/imx9/
|
|
obj-$(CONFIG_DRAM_SUN20I_D1) += ram/
|
|
obj-$(CONFIG_SPL_DM_RESET) += reset/
|
|
obj-$(CONFIG_SPL_MUSB_NEW) += usb/musb-new/
|
|
obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/
|
|
obj-$(CONFIG_SPL_USB_GADGET) += usb/common/
|
|
obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/udc/
|
|
obj-$(CONFIG_SPL_WATCHDOG) += watchdog/
|
|
obj-$(CONFIG_SPL_USB_HOST) += usb/host/
|
|
obj-$(CONFIG_SPL_SATA) += ata/ scsi/
|
|
obj-$(CONFIG_SPL_LEGACY_BLOCK) += block/
|
|
obj-$(CONFIG_SPL_THERMAL) += thermal/
|
|
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
ifdef CONFIG_TPL_BUILD
|
|
|
|
obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR) += ddr/fsl/
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
|
|
|
|
obj-y += adc/
|
|
obj-y += ata/
|
|
obj-$(CONFIG_DM_DEMO) += demo/
|
|
obj-y += block/
|
|
obj-y += cache/
|
|
obj-$(CONFIG_CPU) += cpu/
|
|
obj-y += crypto/
|
|
obj-$(CONFIG_FASTBOOT) += fastboot/
|
|
obj-$(CONFIG_FWU_MDATA) += fwu-mdata/
|
|
obj-y += misc/
|
|
obj-$(CONFIG_MMC) += mmc/
|
|
obj-$(CONFIG_MULTIPLEXER) += mux/
|
|
obj-$(CONFIG_NVME) += nvme/
|
|
obj-$(CONFIG_PCI_ENDPOINT) += pci_endpoint/
|
|
obj-y += dfu/
|
|
obj-$(CONFIG_PCH) += pch/
|
|
obj-$(CONFIG_DM_REBOOT_MODE) += reboot-mode/
|
|
obj-y += rtc/
|
|
obj-y += scsi/
|
|
obj-y += sound/
|
|
obj-y += spmi/
|
|
obj-y += watchdog/
|
|
obj-$(CONFIG_QE) += qe/
|
|
obj-$(CONFIG_U_QE) += qe/
|
|
obj-y += mailbox/
|
|
obj-y += memory/
|
|
obj-y += mfd/
|
|
obj-y += mtd/
|
|
obj-y += pwm/
|
|
obj-y += reset/
|
|
obj-y += input/
|
|
obj-y += iommu/
|
|
# SOC specific infrastructure drivers.
|
|
obj-y += smem/
|
|
obj-y += thermal/
|
|
obj-$(CONFIG_TEE) += tee/
|
|
obj-$(CONFIG_ARM_FFA_TRANSPORT) += firmware/arm-ffa/
|
|
obj-y += axi/
|
|
obj-y += ufs/
|
|
obj-$(CONFIG_W1) += w1/
|
|
obj-$(CONFIG_W1_EEPROM) += w1-eeprom/
|
|
|
|
obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
|
|
obj-$(CONFIG_FUZZ) += fuzz/
|
|
obj-$(CONFIG_DM_HWSPINLOCK) += hwspinlock/
|
|
obj-$(CONFIG_DM_RNG) += rng/
|
|
endif
|
|
|
|
obj-y += soc/
|