]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: stm32f746-disco: Fix dram_init() in none SPL config
authorPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 27 Apr 2022 11:53:57 +0000 (13:53 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 10 May 2022 11:56:12 +0000 (13:56 +0200)
Replace CONFIG_SUPPORT_SPL by CONFIG_SPL_BUILD to allow
dram_init() execution when using none SPL defconfig
(stm32f746-disco_defconfig).

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
board/st/stm32f746-disco/stm32f746-disco.c

index 69f657c54b88e61d1ccd93da6936ab78a399923b..2ab23f2f4f771dbaac28aa897b4794c41b07fea5 100644 (file)
@@ -29,7 +29,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int dram_init(void)
 {
-#ifndef CONFIG_SUPPORT_SPL
+#ifndef CONFIG_SPL_BUILD
        int rv;
        struct udevice *dev;
        rv = uclass_get_device(UCLASS_RAM, 0, &dev);