]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: sama5d27_som1_ek: Set FDT filename based on defconfig
authorGreg Gallagher <greg@embeddedgreg.com>
Thu, 21 Jan 2021 16:55:35 +0000 (11:55 -0500)
committerEugen Hristev <eugen.hristev@microchip.com>
Fri, 22 Jan 2021 13:09:59 +0000 (15:09 +0200)
Make the FDT file name based on the default on that is specified in the
defconfig file.

Signed-off-by: Greg Gallagher <greg@embeddedgreg.com>
include/configs/sama5d27_som1_ek.h

index 3358149e662dc73c45c065cb12f2b8efc372b2a5..8942d159349a0b5796468f73222992757cc9dab1 100644 (file)
 
 #define CONFIG_SYS_LOAD_ADDR           0x22000000 /* load address */
 
-/* NAND flash */
-
-/* SPI flash */
-
 #undef CONFIG_BOOTCOMMAND
 #ifdef CONFIG_SD_BOOT
 /* bootstrap + u-boot + env in sd card */
-#define CONFIG_BOOTCOMMAND     "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x21000000 at91-sama5d27_som1_ek.dtb; " \
+#define CONFIG_BOOTCOMMAND     "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x21000000 " \
+                               CONFIG_DEFAULT_DEVICE_TREE ".dtb; " \
                                "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x22000000 zImage; " \
                                "bootz 0x22000000 - 0x21000000"
 #endif