]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
global: Migrate CONFIG_DFU_ALT et al to CFG
authorTom Rini <trini@konsulko.com>
Sun, 4 Dec 2022 15:03:38 +0000 (10:03 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 23 Dec 2022 15:07:03 +0000 (10:07 -0500)
Perform simple renames of:
   CONFIG_DFU_ALT to CFG_DFU_ALT
   CONFIG_DFU_ALT_BOOT_EMMC to CFG_DFU_ALT_BOOT_EMMC
   CONFIG_DFU_ALT_BOOT_SD to CFG_DFU_ALT_BOOT_SD
   CONFIG_DFU_ALT_SYSTEM to CFG_DFU_ALT_SYSTEM
   CONFIG_DFU_ENV_SETTINGS to CFG_DFU_ENV_SETTINGS

Signed-off-by: Tom Rini <trini@konsulko.com>
12 files changed:
board/samsung/common/exynos5-dt.c
board/samsung/odroid/odroid.c
include/configs/mx7dsabresd.h
include/configs/odroid.h
include/configs/odroid_xu3.h
include/configs/pico-imx6.h
include/configs/pico-imx6ul.h
include/configs/pico-imx7d.h
include/configs/s5p_goni.h
include/configs/trats.h
include/configs/trats2.h
include/configs/warp7.h

index 0d77a57f8082fc6c811ddaf1ce7bb7b2a6699f11..cde77d79a0f6c9d81f88f0580d20a2c6760d4336 100644 (file)
@@ -179,9 +179,9 @@ char *get_dfu_alt_boot(char *interface, char *devstr)
                return NULL;
 
        if (IS_SD(mmc))
-               alt_boot = CONFIG_DFU_ALT_BOOT_SD;
+               alt_boot = CFG_DFU_ALT_BOOT_SD;
        else
-               alt_boot = CONFIG_DFU_ALT_BOOT_EMMC;
+               alt_boot = CFG_DFU_ALT_BOOT_EMMC;
 
        return alt_boot;
 }
index 35e4cee74f44752d05a0125f85bd4a93be16b78f..39a60e4ad2955b5c0f09aca87866199934273db3 100644 (file)
@@ -94,8 +94,8 @@ char *get_dfu_alt_boot(char *interface, char *devstr)
        if (mmc_init(mmc))
                return NULL;
 
-       alt_boot = IS_SD(mmc) ? CONFIG_DFU_ALT_BOOT_SD :
-                               CONFIG_DFU_ALT_BOOT_EMMC;
+       alt_boot = IS_SD(mmc) ? CFG_DFU_ALT_BOOT_SD :
+                               CFG_DFU_ALT_BOOT_EMMC;
 
        return alt_boot;
 }
index bd70b62bd209a05bc412e64228e5f06a2b91c2e4..e56b6101af4306e9652bf353d0a0f510c4da1b2e 100644 (file)
@@ -44,7 +44,7 @@
        "initrd_high=0xffffffff\0" \
        "bootcmd_mfg=run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};\0" \
 
-#define CONFIG_DFU_ENV_SETTINGS \
+#define CFG_DFU_ENV_SETTINGS \
        "dfu_alt_info=image raw 0 0x800000;"\
                "u-boot raw 0 0x4000;"\
                "bootimg part 0 1;"\
@@ -53,7 +53,7 @@
 #define CONFIG_EXTRA_ENV_SETTINGS \
        UPDATE_M4_ENV \
        CONFIG_MFG_ENV_SETTINGS \
-       CONFIG_DFU_ENV_SETTINGS \
+       CFG_DFU_ENV_SETTINGS \
        "script=boot.scr\0" \
        "image=zImage\0" \
        "console=ttymxc0\0" \
index f252b349437c64bbc2c47c1e80d34b0630d91a0c..e2331e45cdfe44563fdadc50b677aba19aa4ff1f 100644 (file)
@@ -27,7 +27,7 @@
 #define PARTS_BOOT             "boot"
 #define PARTS_ROOT             "platform"
 
-#define CONFIG_DFU_ALT \
+#define CFG_DFU_ALT \
        "uImage fat 0 1;" \
        "zImage fat 0 1;" \
        "Image.itb fat 0 1;" \
 
 #define CONFIG_SET_DFU_ALT_BUF_LEN     (SZ_1K)
 
-#define CONFIG_DFU_ALT_BOOT_EMMC \
+#define CFG_DFU_ALT_BOOT_EMMC \
        "u-boot raw 0x3e 0x800 mmcpart 1;" \
        "bl1 raw 0x0 0x1e mmcpart 1;" \
        "bl2 raw 0x1e 0x1d mmcpart 1;" \
        "tzsw raw 0x83e 0x138 mmcpart 1\0"
 
-#define CONFIG_DFU_ALT_BOOT_SD \
+#define CFG_DFU_ALT_BOOT_SD \
        "u-boot raw 0x3f 0x800;" \
        "bl1 raw 0x1 0x1e;" \
        "bl2 raw 0x1f 0x1d;" \
        "mmcbootpart=1\0" \
        "mmcrootdev=0\0" \
        "mmcrootpart=2\0" \
-       "dfu_alt_system="CONFIG_DFU_ALT \
+       "dfu_alt_system="CFG_DFU_ALT \
        "dfu_alt_info=Please reset the board\0" \
        "consoleon=set console console=ttySAC1,115200n8; save; reset\0" \
        "consoleoff=set console console=ram; save; reset\0" \
index bf63a4de076575feb7f0c00c1d782c11cf83f306..e4a81499a7260a66f44214f314be8fb4ef71fd0c 100644 (file)
@@ -20,7 +20,7 @@
 #define DFU_DEFAULT_POLL_TIMEOUT       300
 #define DFU_MANIFEST_POLL_TIMEOUT      25000
 
-#define CONFIG_DFU_ALT_SYSTEM               \
+#define CFG_DFU_ALT_SYSTEM               \
        "uImage fat 0 1;"                   \
        "zImage fat 0 1;"                   \
        "Image.itb fat 0 1;"                \
        "boot part 0 1;"                    \
        "root part 0 2\0"
 
-#define CONFIG_DFU_ALT_BOOT_EMMC           \
+#define CFG_DFU_ALT_BOOT_EMMC           \
        "u-boot raw 0x3e 0x800 mmcpart 1;" \
        "bl1 raw 0x0 0x1e mmcpart 1;"      \
        "bl2 raw 0x1e 0x1d mmcpart 1;"     \
        "tzsw raw 0x83e 0x200 mmcpart 1;"  \
        "params.bin raw 0x1880 0x20\0"
 
-#define CONFIG_DFU_ALT_BOOT_SD   \
+#define CFG_DFU_ALT_BOOT_SD   \
        "u-boot raw 0x3f 0x800;" \
        "bl1 raw 0x1 0x1e;"      \
        "bl2 raw 0x1f 0x1d;"     \
@@ -75,7 +75,7 @@
        "mmcrootdev=0\0" \
        "mmcbootpart=1\0" \
        "mmcrootpart=2\0" \
-       "dfu_alt_system="CONFIG_DFU_ALT_SYSTEM \
+       "dfu_alt_system="CFG_DFU_ALT_SYSTEM \
        "dfu_alt_info=Autoset by THOR/DFU command run.\0"
 
 #endif /* __CONFIG_H */
index 6d7873daa0adf1a1930e34d35b25c138b542d4c8..719b70144051be1926750abaf2604213b5a50b6b 100644 (file)
@@ -21,7 +21,7 @@
 
 #define DFU_DEFAULT_POLL_TIMEOUT 300
 
-#define CONFIG_DFU_ENV_SETTINGS \
+#define CFG_DFU_ENV_SETTINGS \
        "dfu_alt_info=" \
                "spl raw 0x2 0x400;" \
                "u-boot raw 0x8a 0x1000;" \
@@ -47,7 +47,7 @@
        "fdt_addr_r=0x18000000\0" \
        "fdt_addr=0x18000000\0" \
        "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
-       CONFIG_DFU_ENV_SETTINGS \
+       CFG_DFU_ENV_SETTINGS \
        "finduuid=part uuid mmc 0:1 uuid\0" \
        "findfdt="\
                "if test $baseboard = hobbit && test $board_rev = MX6Q ; then " \
index faf11d5a72ad2d34879a22bc386174916e1e66cf..36f648f634006542a0181f5046857c46618f0ec6 100644 (file)
@@ -28,7 +28,7 @@
 
 #define DFU_DEFAULT_POLL_TIMEOUT 300
 
-#define CONFIG_DFU_ENV_SETTINGS \
+#define CFG_DFU_ENV_SETTINGS \
        "dfu_alt_info=" \
                "spl raw 0x2 0x400;" \
                "u-boot raw 0x8a 0x400;" \
@@ -63,7 +63,7 @@
        "ramdiskaddr=0x83000000\0" \
        "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
        "mmcautodetect=yes\0" \
-       CONFIG_DFU_ENV_SETTINGS \
+       CFG_DFU_ENV_SETTINGS \
        "findfdt=" \
                "if test $fdtfile = ask ; then " \
                        "bootmenu -1; fi;" \
index 83907b06ebb41ce83fc3c14571876ddad26f5642..5819215104263a6130b92ad4aaa7dd53b4eb67b8 100644 (file)
@@ -15,7 +15,7 @@
 /* MMC Config */
 #define CFG_SYS_FSL_ESDHC_ADDR 0
 
-#define CONFIG_DFU_ENV_SETTINGS \
+#define CFG_DFU_ENV_SETTINGS \
        "dfu_alt_info=" \
                "spl raw 0x2 0x400;" \
                "u-boot raw 0x8a 0x1000;" \
@@ -67,7 +67,7 @@
        "ramdisk_addr_r=0x83000000\0" \
        "ramdiskaddr=0x83000000\0" \
        "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
-       CONFIG_DFU_ENV_SETTINGS \
+       CFG_DFU_ENV_SETTINGS \
        "findfdt=" \
                "if test $fdtfile = ask ; then " \
                        "bootmenu -1; fi;" \
index da83db1f68ab1d6b0c44ec9122b72a32cc2daa75..555bedb93d659eec93f35484d22cd21006796fd0 100644 (file)
@@ -35,7 +35,7 @@
 #define PARTS_CSC                      "csc"
 #define PARTS_UMS                      "ums"
 
-#define CONFIG_DFU_ALT \
+#define CFG_DFU_ALT \
        "u-boot raw 0x80 0x400;" \
        "uImage ext4 0 2;" \
        "exynos3-goni.dtb ext4 0 2;" \
        "ubiblock=8\0" \
        "ubi=enabled\0" \
        "opts=always_resume=1\0" \
-       "dfu_alt_info=" CONFIG_DFU_ALT "\0"
+       "dfu_alt_info=" CFG_DFU_ALT "\0"
 
 /* Goni has 3 banks of DRAM, but swap the bank */
 #define PHYS_SDRAM_1           CFG_SYS_SDRAM_BASE      /* OneDRAM Bank #0 */
index ec18842bbe8ce3d24d6453b50a4624933282337b..3eac66539dfe7fb30e6afe52c779095cdf001ceb 100644 (file)
@@ -39,7 +39,7 @@
        "name="PARTS_DATA",size=3000MiB,uuid=${uuid_gpt_"PARTS_DATA"};" \
        "name="PARTS_UMS",size=-,uuid=${uuid_gpt_"PARTS_UMS"}\0" \
 
-#define CONFIG_DFU_ALT \
+#define CFG_DFU_ALT \
        "u-boot raw 0x80 0x400;" \
        "/uImage ext4 0 2;" \
        "/modem.bin ext4 0 2;" \
@@ -98,7 +98,7 @@
        "mmcrootpart=5\0" \
        "opts=always_resume=1\0" \
        "partitions=" PARTS_DEFAULT \
-       "dfu_alt_info=" CONFIG_DFU_ALT \
+       "dfu_alt_info=" CFG_DFU_ALT \
        "spladdr=0x40000100\0" \
        "splsize=0x200\0" \
        "splfile=falcon.bin\0" \
index 4d39b4005bd600c9e704bf154c27e8ed1484c139..18fca09a3807354305c9caa7c90465d27bb31393 100644 (file)
@@ -40,7 +40,7 @@
        "name="PARTS_DATA",size=3000MiB,uuid=${uuid_gpt_"PARTS_DATA"};" \
        "name="PARTS_UMS",size=-,uuid=${uuid_gpt_"PARTS_UMS"}\0" \
 
-#define CONFIG_DFU_ALT \
+#define CFG_DFU_ALT \
        "u-boot raw 0x80 0x800;" \
        "/uImage ext4 0 2;" \
        "/modem.bin ext4 0 2;" \
@@ -86,7 +86,7 @@
        "mmcrootpart=5\0" \
        "opts=always_resume=1\0" \
        "partitions=" PARTS_DEFAULT \
-       "dfu_alt_info=" CONFIG_DFU_ALT \
+       "dfu_alt_info=" CFG_DFU_ALT \
        "uartpath=ap\0" \
        "usbpath=ap\0" \
        "consoleon=set console console=ttySAC2,115200n8; save; reset\0" \
index a985c6f28f30ffa7db4e7cc178a3c39c1854e161..188180da54eba699c7d95aa745da15a46fbb2705 100644 (file)
@@ -16,7 +16,7 @@
 /* MMC Config*/
 #define CFG_SYS_FSL_ESDHC_ADDR       USDHC3_BASE_ADDR
 
-#define CONFIG_DFU_ENV_SETTINGS \
+#define CFG_DFU_ENV_SETTINGS \
        "dfu_alt_info=boot raw 0x2 0x1000 mmcpart 1\0" \
 
 /* When booting with FIT specify the node entry containing boot.scr */
@@ -27,7 +27,7 @@
 #endif
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
-       CONFIG_DFU_ENV_SETTINGS \
+       CFG_DFU_ENV_SETTINGS \
        "script=boot.scr\0" \
        "bootscr_fitimage_name=bootscr\0" \
        "script_signed=boot.scr.imx-signed\0" \