From: Simon Glass Date: Sun, 18 Oct 2015 01:41:23 +0000 (-0600) Subject: dm: arm: zynq: Enable device tree control in SPL X-Git-Tag: v2016.01-rc1~119 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=71556fbcbfb8918c093bcb0095dcaf12fa29e0dc;p=u-boot dm: arm: zynq: Enable device tree control in SPL Move to using device tree control in SPL so that we can use the same driver code in both SPL and U-Boot proper. Signed-off-by: Simon Glass Signed-off-by: Michal Simek --- diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 3992f69b12..97b9647d19 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -543,9 +543,12 @@ config ARCH_ZYNQ select CPU_V7 select SUPPORT_SPL select OF_CONTROL + select SPL_OF_CONTROL select DM + select SPL_DM select DM_SPI select DM_SPI_FLASH + select SPL_SEPARATE_BSS config ARCH_ZYNQMP bool "Support Xilinx ZynqMP Platform" diff --git a/arch/arm/mach-zynq/u-boot-spl.lds b/arch/arm/mach-zynq/u-boot-spl.lds index 0f2f756f83..ecdf6a031e 100644 --- a/arch/arm/mach-zynq/u-boot-spl.lds +++ b/arch/arm/mach-zynq/u-boot-spl.lds @@ -38,10 +38,18 @@ SECTIONS } > .sram . = ALIGN(4); +#ifdef CONFIG_SPL_DM + .u_boot_list : { + KEEP(*(SORT(.u_boot_list_*_driver_*))); + KEEP(*(SORT(.u_boot_list_*_uclass_*))); + } > .sram + + . = ALIGN(4); +#endif . = .; - __image_copy_end = .; + _image_binary_end = .; _end = .;