exynos: Update environment macros a bit
authorTom Rini <trini@konsulko.com>
Tue, 10 Aug 2021 21:34:22 +0000 (17:34 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 30 Aug 2021 18:10:05 +0000 (14:10 -0400)
Rework the default environment a bit to not use non-standard
CONFIG_ENV_... names and similar one-off CONFIG names.

Cc: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
include/configs/exynos4-common.h
include/configs/s5pc210_universal.h
include/configs/trats.h
include/configs/trats2.h

index 5e2aca3..2ca14d0 100644 (file)
@@ -32,7 +32,7 @@
 #define CONFIG_USB_GADGET_DWC2_OTG_PHY
 
 /* Common environment variables */
-#define CONFIG_EXTRA_ENV_ITB \
+#define ENV_ITB \
        "loadkernel=load mmc ${mmcbootdev}:${mmcbootpart} ${kerneladdr} " \
                "${kernelname}\0" \
        "loadinitrd=load mmc ${mmcbootdev}:${mmcbootpart} ${initrdaddr} " \
index 0b679f4..8ee667e 100644 (file)
                                ",100M(swap)"\
                                ",-(UMS)\0"
 
-#define CONFIG_ENV_UBI_MTD     " ubi.mtd=${ubiblock} ubi.mtd=4 ubi.mtd=7"
-#define CONFIG_BOOTBLOCK       "10"
-#define CONFIG_UBIBLOCK                "9"
-
-#define CONFIG_ENV_UBIFS_OPTION        " rootflags=bulk_read,no_chk_data_crc "
-#define CONFIG_ENV_FLASHBOOT   CONFIG_ENV_UBI_MTD CONFIG_ENV_UBIFS_OPTION \
-                               "${mtdparts}"
-
-#define CONFIG_ENV_COMMON_BOOT "${console} ${meminfo}"
-
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        "updateb=" \
                "onenand erase 0x0 0x100000;" \
        "lpj=lpj=3981312\0" \
        "ubifsboot=" \
                "set bootargs root=ubi0!rootfs rootfstype=ubifs ${lpj} " \
-               CONFIG_ENV_FLASHBOOT " ${opts} ${lcdinfo} " \
-               CONFIG_ENV_COMMON_BOOT "; run bootk\0" \
+               "ubi.mtd=${ubiblock} ubi.mtd=4 ubi.mtd=7 " \
+               "rootflags=bulk_read,no_chk_data_crc ${mtdparts} ${opts} " \
+               "${lcdinfo} ${console} ${meminfo}; run bootk\0" \
        "tftpboot=" \
                "set bootargs root=ubi0!rootfs rootfstype=ubifs " \
-               CONFIG_ENV_FLASHBOOT " ${opts} ${lcdinfo} " \
-               CONFIG_ENV_COMMON_BOOT \
+               "ubi.mtd=${ubiblock} ubi.mtd=4 ubi.mtd=7 " \
+               "rootflags=bulk_read,no_chk_data_crc ${mtdparts} ${opts} " \
+               "${lcdinfo} ${console} ${meminfo}" \
                "; tftp 0x40007FC0 uImage; bootm 0x40007FC0\0" \
        "nfsboot=" \
                "set bootargs root=/dev/nfs rw " \
                "nfsroot=${nfsroot},nolock,tcp " \
                "ip=${ipaddr}:${serverip}:${gatewayip}:" \
-               "${netmask}:generic:usb0:off " CONFIG_ENV_COMMON_BOOT \
+               "${netmask}:generic:usb0:off ${console} ${meminfo}" \
                "; run bootk\0" \
        "ramfsboot=" \
                "set bootargs root=/dev/ram0 rw rootfstype=ext2 " \
        "mbrparts=" MBRPARTS_DEFAULT \
        "meminfo=crashkernel=32M@0x50000000\0" \
        "nfsroot=/nfsroot/arm\0" \
-       "bootblock=" CONFIG_BOOTBLOCK "\0" \
-       "ubiblock=" CONFIG_UBIBLOCK" \0" \
+       "bootblock=10\0" \
+       "ubiblock=9\0" \
        "ubi=enabled\0" \
        "loaduimage=fatload mmc ${mmcdev}:${mmcbootpart} 0x40007FC0 uImage\0" \
        "mmcdev=0\0" \
index a44792d..c3f891a 100644 (file)
@@ -40,9 +40,6 @@
 
 #define CONFIG_SYS_MONITOR_BASE        0x00000000
 
-#define CONFIG_BOOTBLOCK               "10"
-#define CONFIG_ENV_COMMON_BOOT         "${console} ${meminfo}"
-
 /* Tizen - partitions definitions */
 #define PARTS_CSA              "csa-mmc"
 #define PARTS_BOOT             "boot"
@@ -94,7 +91,7 @@
                "setenv bootargs root=/dev/nfs rw " \
                "nfsroot=${nfsroot},nolock,tcp " \
                "ip=${ipaddr}:${serverip}:${gatewayip}:" \
-               "${netmask}:generic:usb0:off " CONFIG_ENV_COMMON_BOOT \
+               "${netmask}:generic:usb0:off ${console} ${meminfo}" \
                "; run bootk\0" \
        "ramfsboot=" \
                "setenv bootargs root=/dev/ram0 rw rootfstype=ext2 " \
        "console=console=ttySAC2,115200n8\0" \
        "meminfo=crashkernel=32M@0x50000000\0" \
        "nfsroot=/nfsroot/arm\0" \
-       "bootblock=" CONFIG_BOOTBLOCK "\0" \
+       "bootblock=10\0" \
        "loaduimage=ext4load mmc ${mmcdev}:${mmcbootpart} 0x40007FC0 uImage\0" \
        "loaddtb=ext4load mmc ${mmcdev}:${mmcbootpart} ${fdtaddr} " \
                "${fdtfile}\0" \
                   "setenv spl_imgsize;" \
                   "setenv spl_imgaddr;" \
                   "setenv spl_addr_tmp;\0" \
-       CONFIG_EXTRA_ENV_ITB \
+       ENV_ITB \
        "fdtaddr=40800000\0" \
 
 /* Falcon mode definitions */
index 4b1eff0..e5f2b0c 100644 (file)
                   "setenv spl_imgsize;" \
                   "setenv spl_imgaddr;" \
                   "setenv spl_addr_tmp;\0" \
-       CONFIG_EXTRA_ENV_ITB \
+       ENV_ITB \
        "fdtaddr=40800000\0" \
 
 /* GPT */