]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
at91: configs: Drop duplication of defconfig macros
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 20 Sep 2019 10:52:58 +0000 (10:52 +0000)
committerEugen Hristev <eugen.hristev@microchip.com>
Mon, 30 Sep 2019 06:15:23 +0000 (09:15 +0300)
'commit a9221f3ebd6d ("at91, omap2plus: configs: migrate CONFIG_ENV_ to defconfigs")'
migrated CONFIG_ENV_ macros to defconfigs but did not remove the
identical redefinition of these macros in include/configs/.

Since the duplicated macros have the same value as the ones in defconfigs,
no "redefined" warnings were raised. Remove duplicated macros for all
sama5 and sam9x5ek boards.

While verifying that the removal of the macros from include/configs did
not change the same macros in defconfigs, overwrite the old defconfig by
saving them with the output from "make arch=ARM savedefconfig". This
resulted in the movement of some macros in the defconfig files.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
include/configs/at91-sama5_common.h
include/configs/at91sam9x5ek.h
include/configs/sama5d27_som1_ek.h
include/configs/sama5d2_icp.h

index 7af6b8b84362ef0f899bdf5be59750b7fd478e78..61312773671d09d4cb71aa1b2a4d1845385feb32 100644 (file)
 #ifdef CONFIG_SD_BOOT
 
 #ifdef CONFIG_ENV_IS_IN_MMC
-/* Use raw reserved sectors to save environment */
-#define CONFIG_ENV_OFFSET              0x2000
-#define CONFIG_ENV_SIZE                        0x1000
 #define CONFIG_SYS_MMC_ENV_DEV         0
-#else
-/* u-boot env in sd/mmc card */
-#define CONFIG_ENV_SIZE                0x4000
 #endif
 
 #define CONFIG_BOOTCOMMAND     "if test ! -n ${dtb_name}; then "       \
@@ -66,8 +60,6 @@
                                        "sf read 0x22000000 0x6c000 0x394000; " \
                                        "bootz 0x22000000 - 0x21000000"
 #elif CONFIG_QSPI_BOOT
-#define CONFIG_ENV_OFFSET              0x140000
-#define CONFIG_ENV_SIZE                        0x20000
 #define CONFIG_BOOTCOMMAND             "sf probe 0; "                                  \
                                        "sf read 0x21000000 0x180000 0x80000; "         \
                                        "sf read 0x22000000 0x200000 0x600000; "        \
index ad7d281dd63250bba292c59ba38d0569ef858fad..f9a100ba24621a9647ad0f5c6bcc2eae9fb4450a 100644 (file)
 
 #ifdef CONFIG_NAND_BOOT
 /* bootstrap + u-boot + env + linux in nandflash */
-#define CONFIG_ENV_OFFSET              0x140000
 #define CONFIG_ENV_OFFSET_REDUND       0x100000
-#define CONFIG_ENV_SIZE                0x20000         /* 1 sector = 128 kB */
 #define CONFIG_BOOTCOMMAND     "nand read " \
                                "0x22000000 0x200000 0x600000; " \
                                "nand read 0x21000000 0x180000 0x20000; " \
                                "bootz 0x22000000 - 0x21000000"
 #elif defined(CONFIG_SPI_BOOT)
 /* bootstrap + u-boot + env + linux in spi flash */
-#define CONFIG_ENV_OFFSET      0x5000
-#define CONFIG_ENV_SIZE                0x3000
-#define CONFIG_ENV_SECT_SIZE   0x1000
 #define CONFIG_BOOTCOMMAND     "sf probe 0; " \
                                "sf read 0x22000000 0x100000 0x300000; " \
                                "bootm 0x22000000"
 #elif defined(CONFIG_SYS_USE_DATAFLASH)
 /* bootstrap + u-boot + env + linux in data flash */
-#define CONFIG_ENV_OFFSET      0x4200
-#define CONFIG_ENV_SIZE                0x4200
-#define CONFIG_ENV_SECT_SIZE   0x210
 #define CONFIG_BOOTCOMMAND     "sf probe 0; " \
                                "sf read 0x22000000 0x84000 0x294000; " \
                                "bootm 0x22000000"
-#else /* CONFIG_SD_BOOT */
-/* bootstrap + u-boot + env + linux in mmc */
-#define CONFIG_ENV_SIZE                0x4000
 #endif
 
 /*
index 9b33acd40d27f94694c6cd0a42239efe3b6b4a47..73432010985af3eb091c90d8d18091aa7cf73536 100644 (file)
@@ -34,8 +34,6 @@
 
 #undef CONFIG_BOOTCOMMAND
 #ifdef CONFIG_SD_BOOT
-/* u-boot env in sd/mmc card */
-#define CONFIG_ENV_SIZE                0x4000
 /* bootstrap + u-boot + env in sd card */
 #define CONFIG_BOOTCOMMAND     "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x21000000 at91-sama5d27_som1_ek.dtb; " \
                                "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x22000000 zImage; " \
index 5c54a9c0611e8ce26c25ef80886b98b23ec272bb..17028ca1456c9f57d41e980787fd61d48a93f6ff 100644 (file)
@@ -41,7 +41,6 @@
 #define FAT_ENV_INTERFACE      "mmc"
 #define FAT_ENV_DEVICE_AND_PART        "0"
 #define FAT_ENV_FILE           "uboot.env"
-#define CONFIG_ENV_SIZE                0x4000
 /* bootstrap + u-boot + env in sd card */
 #define CONFIG_BOOTCOMMAND     "fatload mmc 0:1 0x21000000 at91-sama5d2_icp.dtb; " \
                                "fatload mmc 0:1 0x22000000 zImage; " \