Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 1 | /* |
Heiko Schocher | b11f53f | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 2 | * (C) Copyright 2008-2011 |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 3 | * Heiko Schocher, DENX Software Engineering, hs@denx.de. |
| 4 | * |
Wolfgang Denk | 3765b3e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __CONFIG_KEYMILE_H |
| 9 | #define __CONFIG_KEYMILE_H |
| 10 | |
Heiko Schocher | f1fef1d | 2010-04-26 13:07:28 +0200 | [diff] [blame] | 11 | #define CONFIG_BOOTCOUNT_LIMIT |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 12 | |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 13 | /* |
| 14 | * Command line configuration. |
| 15 | */ |
| 16 | #include <config_cmd_default.h> |
| 17 | |
| 18 | #define CONFIG_CMD_ASKENV |
| 19 | #define CONFIG_CMD_DHCP |
Gerlando Falauto | b0e55d5 | 2011-09-22 05:06:12 +0000 | [diff] [blame] | 20 | #define CONFIG_CMD_DEFAULTENV_VARS |
Holger Brunck | 7d77203 | 2013-07-04 15:37:32 +0200 | [diff] [blame] | 21 | #define CONFIG_CMD_GREPENV |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 22 | #define CONFIG_CMD_ECHO |
| 23 | #define CONFIG_CMD_IMMAP |
| 24 | #define CONFIG_CMD_MII |
| 25 | #define CONFIG_CMD_PING |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 26 | #define CONFIG_CMD_EEPROM |
| 27 | #define CONFIG_CMD_I2C |
Heiko Schocher | 364123d | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 28 | #define CONFIG_CMD_JFFS2 |
Heiko Schocher | dc71b24 | 2009-07-09 12:04:18 +0200 | [diff] [blame] | 29 | #define CONFIG_CMD_MTDPARTS |
Holger Brunck | f41ee96 | 2011-03-14 15:49:05 +0100 | [diff] [blame] | 30 | #define CONFIG_CMD_SETEXPR |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 31 | |
Heiko Schocher | b11f53f | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 32 | #undef CONFIG_WATCHDOG /* disable platform specific watchdog */ |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 33 | |
Holger Brunck | f41ee96 | 2011-03-14 15:49:05 +0100 | [diff] [blame] | 34 | #define CONFIG_BOOTDELAY 2 /* autoboot after 2 seconds */ |
Heiko Schocher | b11f53f | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 35 | #undef CONFIG_BOOTARGS /* the boot command will set bootargs */ |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 36 | |
| 37 | /* |
| 38 | * Miscellaneous configurable options |
| 39 | */ |
| 40 | #define CONFIG_SYS_HUSH_PARSER |
Heiko Schocher | b11f53f | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 41 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 42 | #if defined(CONFIG_CMD_KGDB) |
Heiko Schocher | b11f53f | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 43 | #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 44 | #else |
Holger Brunck | f41ee96 | 2011-03-14 15:49:05 +0100 | [diff] [blame] | 45 | #define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */ |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 46 | #endif |
Heiko Schocher | b11f53f | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 47 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) |
Holger Brunck | f41ee96 | 2011-03-14 15:49:05 +0100 | [diff] [blame] | 48 | #define CONFIG_SYS_MAXARGS 32 /* max number of command args */ |
Heiko Schocher | b11f53f | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 49 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |
| 50 | #define CONFIG_CMDLINE_EDITING |
| 51 | #define CONFIG_AUTO_COMPLETE |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 52 | |
Heiko Schocher | b11f53f | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 53 | #define CONFIG_HUSH_INIT_VAR |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 54 | |
| 55 | #define CONFIG_SYS_ALT_MEMTEST /* memory test, takes time */ |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 56 | |
Heiko Schocher | b11f53f | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 57 | #define CONFIG_BAUDRATE 115200 |
Holger Brunck | 499b1a4 | 2011-04-08 02:47:46 +0000 | [diff] [blame] | 58 | #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 } |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 59 | |
Heiko Schocher | b11f53f | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 60 | #define CONFIG_LOADS_ECHO |
| 61 | #define CONFIG_SYS_LOADS_BAUD_CHANGE |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 62 | |
Heiko Schocher | 364123d | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 63 | /* Support the IVM EEprom */ |
| 64 | #define CONFIG_SYS_IVM_EEPROM_ADR 0x50 |
| 65 | #define CONFIG_SYS_IVM_EEPROM_MAX_LEN 0x400 |
| 66 | #define CONFIG_SYS_IVM_EEPROM_PAGE_LEN 0x100 |
| 67 | |
Heiko Schocher | b11f53f | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 68 | #define CONFIG_SYS_FLASH_PROTECTION |
Heiko Schocher | 364123d | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 69 | |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 70 | /* |
| 71 | * BOOTP options |
| 72 | */ |
| 73 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 74 | #define CONFIG_BOOTP_BOOTPATH |
| 75 | #define CONFIG_BOOTP_GATEWAY |
| 76 | #define CONFIG_BOOTP_HOSTNAME |
| 77 | |
Heiko Schocher | dc71b24 | 2009-07-09 12:04:18 +0200 | [diff] [blame] | 78 | /* UBI Support for all Keymile boards */ |
| 79 | #define CONFIG_CMD_UBI |
| 80 | #define CONFIG_RBTREE |
| 81 | #define CONFIG_MTD_PARTITIONS |
Heiko Schocher | dc71b24 | 2009-07-09 12:04:18 +0200 | [diff] [blame] | 82 | #define CONFIG_MTD_DEVICE |
| 83 | #define CONFIG_MTD_CONCAT |
| 84 | |
Holger Brunck | f7fb46a | 2011-06-05 22:22:21 +0000 | [diff] [blame] | 85 | #define CONFIG_CMD_CRAMFS |
| 86 | #define CONFIG_CRAMFS_CMDLINE |
| 87 | |
Holger Brunck | a21b5d4 | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 88 | #ifndef CONFIG_KM_DEF_ENV_BOOTPARAMS |
| 89 | #define CONFIG_KM_DEF_ENV_BOOTPARAMS \ |
Holger Brunck | db0bb57 | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 90 | "actual_bank=0\0" |
Heiko Schocher | 364123d | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 91 | #endif |
| 92 | |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 93 | #ifndef CONFIG_KM_DEF_NETDEV |
| 94 | #define CONFIG_KM_DEF_NETDEV \ |
| 95 | "netdev=eth0\0" |
| 96 | #endif |
| 97 | |
Andreas Huber | cf73639 | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 98 | #ifndef CONFIG_KM_UBI_PARTITION_NAME_BOOT |
| 99 | #define CONFIG_KM_UBI_PARTITION_NAME_BOOT "ubi0" |
| 100 | #endif /* CONFIG_KM_UBI_PARTITION_NAME_BOOT */ |
| 101 | |
Valentin Longchamp | cf7707a | 2014-01-27 11:49:10 +0100 | [diff] [blame] | 102 | #ifndef CONFIG_KM_UBI_PART_BOOT_OPTS |
| 103 | #define CONFIG_KM_UBI_PART_BOOT_OPTS "" |
| 104 | #endif /* CONFIG_KM_UBI_PART_BOOT_OPTS */ |
| 105 | |
Andreas Huber | cf73639 | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 106 | #ifndef CONFIG_KM_UBI_PARTITION_NAME_APP |
| 107 | /* one flash chip only called boot */ |
| 108 | /* boot: CONFIG_KM_UBI_PARTITION_NAME_BOOT */ |
| 109 | # define CONFIG_KM_UBI_LINUX_MTD \ |
Valentin Longchamp | cf7707a | 2014-01-27 11:49:10 +0100 | [diff] [blame] | 110 | "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_BOOT \ |
| 111 | CONFIG_KM_UBI_PART_BOOT_OPTS |
Andreas Huber | cf73639 | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 112 | # define CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI \ |
| 113 | "ubiattach=ubi part " CONFIG_KM_UBI_PARTITION_NAME_BOOT "\0" |
| 114 | #else /* CONFIG_KM_UBI_PARTITION_NAME_APP */ |
| 115 | /* two flash chips called boot and app */ |
| 116 | /* boot: CONFIG_KM_UBI_PARTITION_NAME_BOOT */ |
| 117 | /* app: CONFIG_KM_UBI_PARTITION_NAME_APP */ |
| 118 | # define CONFIG_KM_UBI_LINUX_MTD \ |
Valentin Longchamp | cf7707a | 2014-01-27 11:49:10 +0100 | [diff] [blame] | 119 | "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_BOOT \ |
| 120 | CONFIG_KM_UBI_PART_BOOT_OPTS " " \ |
Andreas Huber | cf73639 | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 121 | "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_APP |
| 122 | # define CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI \ |
| 123 | "ubiattach=if test ${boot_bank} -eq 0; then; " \ |
| 124 | "ubi part " CONFIG_KM_UBI_PARTITION_NAME_BOOT "; else; " \ |
| 125 | "ubi part " CONFIG_KM_UBI_PARTITION_NAME_APP "; fi\0" |
| 126 | #endif /* CONFIG_KM_UBI_PARTITION_NAME_APP */ |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 127 | |
Andreas Huber | dacc109 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 128 | #ifdef CONFIG_NAND_ECC_BCH |
| 129 | #define CONFIG_KM_UIMAGE_NAME "ecc_bch_uImage\0" |
Holger Brunck | a7bc914 | 2013-01-21 03:55:24 +0000 | [diff] [blame] | 130 | #define CONFIG_KM_ECC_MODE " eccmode=bch" |
Andreas Huber | dacc109 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 131 | #else |
| 132 | #define CONFIG_KM_UIMAGE_NAME "uImage\0" |
Holger Brunck | a7bc914 | 2013-01-21 03:55:24 +0000 | [diff] [blame] | 133 | #define CONFIG_KM_ECC_MODE |
Andreas Huber | dacc109 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 134 | #endif |
| 135 | |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 136 | /* |
Holger Brunck | a21b5d4 | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 137 | * boottargets |
Holger Brunck | db0bb57 | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 138 | * - set 'subbootcmds' |
Holger Brunck | a21b5d4 | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 139 | * - set 'bootcmd' and 'altbootcmd' |
| 140 | * available targets: |
| 141 | * - 'release': for a standalone system kernel/rootfs from flash |
Holger Brunck | a21b5d4 | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 142 | */ |
| 143 | #define CONFIG_KM_DEF_ENV_BOOTTARGETS \ |
Gerlando Falauto | b1c2a7a | 2014-01-27 16:58:28 +0100 | [diff] [blame] | 144 | "subbootcmds=ubiattach ubicopy cramfsloadfdt set_fdthigh " \ |
| 145 | "cramfsloadkernel flashargs add_default addpanic boot\0"\ |
Holger Brunck | b648bfc | 2011-07-04 21:52:52 +0000 | [diff] [blame] | 146 | "develop=" \ |
| 147 | "tftp 200000 scripts/develop-${arch}.txt && " \ |
Holger Brunck | 2d9528e | 2011-05-04 01:47:34 +0000 | [diff] [blame] | 148 | "env import -t 200000 ${filesize} && " \ |
Holger Brunck | b648bfc | 2011-07-04 21:52:52 +0000 | [diff] [blame] | 149 | "run setup_debug_env\0" \ |
| 150 | "ramfs=" \ |
| 151 | "tftp 200000 scripts/ramfs-${arch}.txt && " \ |
| 152 | "env import -t 200000 ${filesize} && " \ |
| 153 | "run setup_debug_env\0" \ |
Holger Brunck | a21b5d4 | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 154 | "" |
| 155 | |
| 156 | /* |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 157 | * bootargs |
| 158 | * - modify 'bootargs' |
| 159 | * |
Holger Brunck | db0bb57 | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 160 | * - 'add_default': default bootargs common for all arm/ppc boards |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 161 | * - 'addpanic': add kernel panic options |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 162 | * - 'flashargs': defaults arguments for flash base boot |
| 163 | * |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 164 | */ |
| 165 | #define CONFIG_KM_DEF_ENV_BOOTARGS \ |
Holger Brunck | db0bb57 | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 166 | "add_default=" \ |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 167 | "setenv bootargs ${bootargs} " \ |
| 168 | "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ |
Valentin Longchamp | 7c3d6a2 | 2013-10-18 11:47:16 +0200 | [diff] [blame] | 169 | ":${hostname}:${netdev}:off:" \ |
Holger Brunck | db0bb57 | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 170 | " console=" CONFIG_KM_CONSOLE_TTY ",${baudrate}" \ |
Andreas Huber | 2a7714c | 2011-09-13 23:06:11 +0000 | [diff] [blame] | 171 | " mem=${kernelmem} init=${init}" \ |
Holger Brunck | a7bc914 | 2013-01-21 03:55:24 +0000 | [diff] [blame] | 172 | CONFIG_KM_ECC_MODE \ |
Marek Vasut | 93ea89f | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 173 | " phram.phram=phvar,${varaddr}," __stringify(CONFIG_KM_PHRAM)\ |
Andreas Huber | cf73639 | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 174 | " " CONFIG_KM_UBI_LINUX_MTD " " \ |
Holger Brunck | db0bb57 | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 175 | CONFIG_KM_DEF_BOOT_ARGS_CPU \ |
| 176 | "\0" \ |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 177 | "addpanic=" \ |
Holger Brunck | 2d9528e | 2011-05-04 01:47:34 +0000 | [diff] [blame] | 178 | "setenv bootargs ${bootargs} panic=1 panic_on_oops=1\0" \ |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 179 | "flashargs=" \ |
| 180 | "setenv bootargs " \ |
Thomas Herzmann | e80ab3e | 2011-04-08 02:47:41 +0000 | [diff] [blame] | 181 | "root=mtdblock:rootfs${boot_bank} " \ |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 182 | "rootfstype=squashfs ro\0" \ |
| 183 | "" |
| 184 | |
Holger Brunck | a21b5d4 | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 185 | /* |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 186 | * flash_boot |
| 187 | * - commands for booting from flash |
| 188 | * |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 189 | * - 'cramfsloadkernel': copy kernel from a cramfs to ram |
| 190 | * - 'ubiattach': attach ubi partition |
| 191 | * - 'ubicopy': copy ubi volume to ram |
| 192 | * - volume names: bootfs0, bootfs1, bootfs2, ... |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 193 | * |
| 194 | * processor specific settings |
| 195 | * - 'cramfsloadfdt': copy fdt from a cramfs to ram |
| 196 | */ |
| 197 | #define CONFIG_KM_DEF_ENV_FLASH_BOOT \ |
Marek Vasut | 93ea89f | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 198 | "cramfsaddr=" __stringify(CONFIG_KM_CRAMFS_ADDR) "\0" \ |
Andreas Huber | dacc109 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 199 | "cramfsloadkernel=cramfsload ${load_addr_r} ${uimage}\0" \ |
Marek Vasut | 93ea89f | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 200 | "ubicopy=ubi read "__stringify(CONFIG_KM_CRAMFS_ADDR) \ |
Holger Brunck | 2d9528e | 2011-05-04 01:47:34 +0000 | [diff] [blame] | 201 | " bootfs${boot_bank}\0" \ |
Andreas Huber | dacc109 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 202 | "uimage=" CONFIG_KM_UIMAGE_NAME \ |
Andreas Huber | cf73639 | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 203 | CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 204 | |
| 205 | /* |
| 206 | * constants |
| 207 | * - KM specific constants and commands |
| 208 | * |
| 209 | * - 'default': setup default environment |
| 210 | */ |
| 211 | #define CONFIG_KM_DEF_ENV_CONSTANTS \ |
Thomas Herzmann | e80ab3e | 2011-04-08 02:47:41 +0000 | [diff] [blame] | 212 | "backup_bank=0\0" \ |
Holger Brunck | db0bb57 | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 213 | "release=run newenv; reset\0" \ |
Marek Vasut | 93ea89f | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 214 | "pnvramsize=" __stringify(CONFIG_KM_PNVRAM) "\0" \ |
Thomas Herzmann | 0333cfe | 2011-06-05 22:22:13 +0000 | [diff] [blame] | 215 | "testbootcmd=setenv boot_bank ${test_bank}; " \ |
| 216 | "run ${subbootcmds}; reset\0" \ |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 217 | "" |
| 218 | |
Heiko Schocher | 364123d | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 219 | #ifndef CONFIG_KM_DEF_ENV |
| 220 | #define CONFIG_KM_DEF_ENV \ |
Holger Brunck | a21b5d4 | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 221 | CONFIG_KM_DEF_ENV_BOOTPARAMS \ |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 222 | CONFIG_KM_DEF_NETDEV \ |
| 223 | CONFIG_KM_DEF_ENV_CPU \ |
Holger Brunck | a21b5d4 | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 224 | CONFIG_KM_DEF_ENV_BOOTTARGETS \ |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 225 | CONFIG_KM_DEF_ENV_BOOTARGS \ |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 226 | CONFIG_KM_DEF_ENV_FLASH_BOOT \ |
Holger Brunck | a21b5d4 | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 227 | CONFIG_KM_DEF_ENV_CONSTANTS \ |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 228 | "altbootcmd=run bootcmd\0" \ |
Gerlando Falauto | 7b2268b | 2014-01-27 16:58:27 +0100 | [diff] [blame] | 229 | "boot=bootm ${load_addr_r} - ${fdt_addr_r}\0" \ |
Holger Brunck | db0bb57 | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 230 | "bootcmd=km_checkbidhwk && " \ |
Thomas Herzmann | c1b3d84 | 2012-05-04 10:55:58 +0200 | [diff] [blame] | 231 | "setenv bootcmd \'if km_checktestboot; then; " \ |
| 232 | "setenv boot_bank ${test_bank}; else; " \ |
| 233 | "setenv boot_bank ${actual_bank}; fi;" \ |
Holger Brunck | db0bb57 | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 234 | "run ${subbootcmds}; reset\' && " \ |
| 235 | "setenv altbootcmd \'setenv boot_bank ${backup_bank}; " \ |
| 236 | "run ${subbootcmds}; reset\' && " \ |
| 237 | "saveenv && saveenv && boot\0" \ |
Holger Brunck | 31dd898 | 2012-05-04 10:55:54 +0200 | [diff] [blame] | 238 | "bootlimit=3\0" \ |
Gerlando Falauto | 7b2268b | 2014-01-27 16:58:27 +0100 | [diff] [blame] | 239 | "cramfsloadfdt=" \ |
| 240 | "cramfsload ${fdt_addr_r} " \ |
| 241 | "fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb\0" \ |
| 242 | "fdt_addr_r="__stringify(CONFIG_KM_FDT_ADDR) "\0" \ |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 243 | "init=/sbin/init-overlay.sh\0" \ |
Marek Vasut | 93ea89f | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 244 | "load_addr_r="__stringify(CONFIG_KM_KERNEL_ADDR) "\0" \ |
Holger Brunck | db0bb57 | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 245 | "load=tftpboot ${load_addr_r} ${u-boot}\0" \ |
Holger Brunck | de3ad13 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 246 | "mtdids=" MTDIDS_DEFAULT "\0" \ |
| 247 | "mtdparts=" MTDPARTS_DEFAULT "\0" \ |
Heiko Schocher | 364123d | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 248 | "" |
| 249 | #endif /* CONFIG_KM_DEF_ENV */ |
| 250 | |
Holger Brunck | 499b1a4 | 2011-04-08 02:47:46 +0000 | [diff] [blame] | 251 | #define CONFIG_VERSION_VARIABLE /* include version env variable */ |
Heiko Schocher | 364123d | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 252 | |
Heiko Schocher | 1e8f4e7 | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 253 | #endif /* __CONFIG_KEYMILE_H */ |