Merge tag 'u-boot-atmel-fixes-2021.01-b' of https://gitlab.denx.de/u-boot/custodians...
[platform/kernel/u-boot.git] / include / configs / km / keymile-common.h
index 8433d8e..ad0041d 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef __CONFIG_KEYMILE_H
 #define __CONFIG_KEYMILE_H
 
+#include <linux/stringify.h>
+
 /*
  * Miscellaneous configurable options
  */
  */
 #define CONFIG_BOOTP_BOOTFILESIZE
 
-/* UBI Support for all Keymile boards */
-#define CONFIG_MTD_CONCAT
-
 #ifndef CONFIG_KM_DEF_ENV_BOOTPARAMS
 #define CONFIG_KM_DEF_ENV_BOOTPARAMS \
        "actual_bank=0\0"
 #endif
 
-#ifndef CONFIG_KM_DEF_NETDEV
-#define CONFIG_KM_DEF_NETDEV   \
-       "netdev=eth0\0"
-#endif
-
 #ifndef CONFIG_KM_UBI_PARTITION_NAME_BOOT
 #define CONFIG_KM_UBI_PARTITION_NAME_BOOT      "ubi0"
 #endif /* CONFIG_KM_UBI_PARTITION_NAME_BOOT */
                "set_fdthigh cramfsloadkernel flashargs add_default "   \
                "addpanic boot\0"                                       \
        "develop="                                                      \
-               "tftp 200000 scripts/develop-${arch}.txt && "           \
-               "env import -t 200000 ${filesize} && "                  \
+               "tftp ${load_addr_r} scripts/develop-${arch}.txt && "   \
+               "env import -t ${load_addr_r} ${filesize} && "          \
                "run setup_debug_env\0"                                 \
        "ramfs="                                                        \
-               "tftp 200000 scripts/ramfs-${arch}.txt && "             \
-               "env import -t 200000 ${filesize} && "                  \
+               "tftp ${load_addr_r} scripts/ramfs-${arch}.txt && "     \
+               "env import -t ${load_addr_r} ${filesize} && "          \
                "run setup_debug_env\0"                                 \
        ""
 
 #define CONFIG_KM_DEF_ENV_FLASH_BOOT                                   \
        "cramfsaddr=" __stringify(CONFIG_KM_CRAMFS_ADDR) "\0"           \
        "cramfsloadkernel=cramfsload ${load_addr_r} ${uimage}\0"        \
-       "ubicopy=ubi read "__stringify(CONFIG_KM_CRAMFS_ADDR)           \
-                       " bootfs${boot_bank}\0"                         \
+       "ubicopy=ubi read ${cramfsaddr} bootfs${boot_bank}\0"           \
        "uimage=" CONFIG_KM_UIMAGE_NAME                                 \
        CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI
 
        "pnvramsize=" __stringify(CONFIG_KM_PNVRAM) "\0"                \
        "testbootcmd=setenv boot_bank ${test_bank}; "                   \
                "run ${subbootcmds}; reset\0"                           \
+       "env_version=1\0"                                               \
        ""
 
 #ifndef CONFIG_KM_DEF_ENV
 #define CONFIG_KM_DEF_ENV      \
        CONFIG_KM_DEF_ENV_BOOTPARAMS                                    \
-       CONFIG_KM_DEF_NETDEV                                            \
+       "netdev=" __stringify(CONFIG_KM_DEF_NETDEV) "\0"                \
        CONFIG_KM_DEF_ENV_CPU                                           \
        CONFIG_KM_DEF_ENV_BOOTTARGETS                                   \
        CONFIG_KM_DEF_ENV_BOOTARGS                                      \