Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 1 | /* |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 2 | * (C) Copyright 2008-2011 |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 3 | * Heiko Schocher, DENX Software Engineering, hs@denx.de. |
| 4 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; either version 2 of |
| 11 | * the License, or (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | * MA 02111-1307 USA |
| 22 | */ |
| 23 | |
| 24 | #ifndef __CONFIG_KEYMILE_H |
| 25 | #define __CONFIG_KEYMILE_H |
| 26 | |
Heiko Schocher | cfc5804 | 2010-04-26 13:07:28 +0200 | [diff] [blame] | 27 | #define CONFIG_BOOTCOUNT_LIMIT |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 28 | |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 29 | /* |
| 30 | * Command line configuration. |
| 31 | */ |
| 32 | #include <config_cmd_default.h> |
| 33 | |
| 34 | #define CONFIG_CMD_ASKENV |
| 35 | #define CONFIG_CMD_DHCP |
Gerlando Falauto | 069b52b | 2011-09-22 05:06:12 +0000 | [diff] [blame] | 36 | #define CONFIG_CMD_DEFAULTENV_VARS |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 37 | #define CONFIG_CMD_ECHO |
| 38 | #define CONFIG_CMD_IMMAP |
| 39 | #define CONFIG_CMD_MII |
| 40 | #define CONFIG_CMD_PING |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 41 | #define CONFIG_CMD_EEPROM |
| 42 | #define CONFIG_CMD_I2C |
Heiko Schocher | a8d5189 | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 43 | #define CONFIG_CMD_JFFS2 |
Heiko Schocher | 875f4728 | 2009-07-09 12:04:18 +0200 | [diff] [blame] | 44 | #define CONFIG_CMD_MTDPARTS |
Holger Brunck | 0bd8202 | 2011-03-14 15:49:05 +0100 | [diff] [blame] | 45 | #define CONFIG_CMD_SETEXPR |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 46 | |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 47 | #undef CONFIG_WATCHDOG /* disable platform specific watchdog */ |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 48 | |
Holger Brunck | 0bd8202 | 2011-03-14 15:49:05 +0100 | [diff] [blame] | 49 | #define CONFIG_BOOTDELAY 2 /* autoboot after 2 seconds */ |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 50 | #undef CONFIG_BOOTARGS /* the boot command will set bootargs */ |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 51 | |
| 52 | /* |
| 53 | * Miscellaneous configurable options |
| 54 | */ |
| 55 | #define CONFIG_SYS_HUSH_PARSER |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 56 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
| 57 | #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 58 | #if defined(CONFIG_CMD_KGDB) |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 59 | #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 60 | #else |
Holger Brunck | 0bd8202 | 2011-03-14 15:49:05 +0100 | [diff] [blame] | 61 | #define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */ |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 62 | #endif |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 63 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) |
Holger Brunck | 0bd8202 | 2011-03-14 15:49:05 +0100 | [diff] [blame] | 64 | #define CONFIG_SYS_MAXARGS 32 /* max number of command args */ |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 65 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |
| 66 | #define CONFIG_CMDLINE_EDITING |
| 67 | #define CONFIG_AUTO_COMPLETE |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 68 | |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 69 | #define CONFIG_HUSH_INIT_VAR |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 70 | |
| 71 | #define CONFIG_SYS_ALT_MEMTEST /* memory test, takes time */ |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 72 | |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 73 | #define CONFIG_SYS_HZ 1000 /* decr. freq: 1 ms ticks */ |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 74 | |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 75 | #define CONFIG_BAUDRATE 115200 |
Holger Brunck | 4559d1f | 2011-04-08 02:47:46 +0000 | [diff] [blame] | 76 | #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 } |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 77 | |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 78 | #define CONFIG_LOADS_ECHO |
| 79 | #define CONFIG_SYS_LOADS_BAUD_CHANGE |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 80 | |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 81 | #define CONFIG_I2C_MULTI_BUS |
Heiko Schocher | 875f4728 | 2009-07-09 12:04:18 +0200 | [diff] [blame] | 82 | #define CONFIG_SYS_MAX_I2C_BUS 1 |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 83 | #define CONFIG_SYS_I2C_INIT_BOARD |
| 84 | #define CONFIG_I2C_MUX |
Heiko Schocher | a8d5189 | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 85 | |
Heiko Schocher | a8d5189 | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 86 | /* Support the IVM EEprom */ |
| 87 | #define CONFIG_SYS_IVM_EEPROM_ADR 0x50 |
| 88 | #define CONFIG_SYS_IVM_EEPROM_MAX_LEN 0x400 |
| 89 | #define CONFIG_SYS_IVM_EEPROM_PAGE_LEN 0x100 |
| 90 | |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 91 | #define CONFIG_SYS_FLASH_PROTECTION |
Heiko Schocher | a8d5189 | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 92 | |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 93 | /* |
| 94 | * BOOTP options |
| 95 | */ |
| 96 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 97 | #define CONFIG_BOOTP_BOOTPATH |
| 98 | #define CONFIG_BOOTP_GATEWAY |
| 99 | #define CONFIG_BOOTP_HOSTNAME |
| 100 | |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 101 | #define CONFIG_SYS_MALLOC_LEN (4 * 1024 * 1024) |
Heiko Schocher | 875f4728 | 2009-07-09 12:04:18 +0200 | [diff] [blame] | 102 | |
Heiko Schocher | 875f4728 | 2009-07-09 12:04:18 +0200 | [diff] [blame] | 103 | /* UBI Support for all Keymile boards */ |
| 104 | #define CONFIG_CMD_UBI |
| 105 | #define CONFIG_RBTREE |
| 106 | #define CONFIG_MTD_PARTITIONS |
Heiko Schocher | 875f4728 | 2009-07-09 12:04:18 +0200 | [diff] [blame] | 107 | #define CONFIG_MTD_DEVICE |
| 108 | #define CONFIG_MTD_CONCAT |
| 109 | |
Holger Brunck | 4056265 | 2011-06-05 22:22:21 +0000 | [diff] [blame] | 110 | #define CONFIG_CMD_CRAMFS |
| 111 | #define CONFIG_CRAMFS_CMDLINE |
| 112 | |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 113 | #ifndef CONFIG_KM_DEF_ENV_BOOTPARAMS |
| 114 | #define CONFIG_KM_DEF_ENV_BOOTPARAMS \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 115 | "actual_bank=0\0" |
Heiko Schocher | a8d5189 | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 116 | #endif |
| 117 | |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 118 | #ifndef CONFIG_KM_DEF_NETDEV |
| 119 | #define CONFIG_KM_DEF_NETDEV \ |
| 120 | "netdev=eth0\0" |
| 121 | #endif |
| 122 | |
Andreas Huber | a81548a | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 123 | #ifndef CONFIG_KM_UBI_PARTITION_NAME_BOOT |
| 124 | #define CONFIG_KM_UBI_PARTITION_NAME_BOOT "ubi0" |
| 125 | #endif /* CONFIG_KM_UBI_PARTITION_NAME_BOOT */ |
| 126 | |
| 127 | #ifndef CONFIG_KM_UBI_PARTITION_NAME_APP |
| 128 | /* one flash chip only called boot */ |
| 129 | /* boot: CONFIG_KM_UBI_PARTITION_NAME_BOOT */ |
| 130 | # define CONFIG_KM_UBI_LINUX_MTD \ |
| 131 | "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_BOOT |
| 132 | # define CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI \ |
| 133 | "ubiattach=ubi part " CONFIG_KM_UBI_PARTITION_NAME_BOOT "\0" |
| 134 | #else /* CONFIG_KM_UBI_PARTITION_NAME_APP */ |
| 135 | /* two flash chips called boot and app */ |
| 136 | /* boot: CONFIG_KM_UBI_PARTITION_NAME_BOOT */ |
| 137 | /* app: CONFIG_KM_UBI_PARTITION_NAME_APP */ |
| 138 | # define CONFIG_KM_UBI_LINUX_MTD \ |
| 139 | "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_BOOT " " \ |
| 140 | "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_APP |
| 141 | # define CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI \ |
| 142 | "ubiattach=if test ${boot_bank} -eq 0; then; " \ |
| 143 | "ubi part " CONFIG_KM_UBI_PARTITION_NAME_BOOT "; else; " \ |
| 144 | "ubi part " CONFIG_KM_UBI_PARTITION_NAME_APP "; fi\0" |
| 145 | #endif /* CONFIG_KM_UBI_PARTITION_NAME_APP */ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 146 | |
Andreas Huber | c31a757 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 147 | #ifdef CONFIG_NAND_ECC_BCH |
| 148 | #define CONFIG_KM_UIMAGE_NAME "ecc_bch_uImage\0" |
Holger Brunck | ffcbb93 | 2013-01-21 03:55:24 +0000 | [diff] [blame] | 149 | #define CONFIG_KM_ECC_MODE " eccmode=bch" |
Andreas Huber | c31a757 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 150 | #else |
| 151 | #define CONFIG_KM_UIMAGE_NAME "uImage\0" |
Holger Brunck | ffcbb93 | 2013-01-21 03:55:24 +0000 | [diff] [blame] | 152 | #define CONFIG_KM_ECC_MODE |
Andreas Huber | c31a757 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 153 | #endif |
| 154 | |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 155 | /* |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 156 | * boottargets |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 157 | * - set 'subbootcmds' |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 158 | * - set 'bootcmd' and 'altbootcmd' |
| 159 | * available targets: |
| 160 | * - 'release': for a standalone system kernel/rootfs from flash |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 161 | */ |
| 162 | #define CONFIG_KM_DEF_ENV_BOOTTARGETS \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 163 | "subbootcmds=ubiattach ubicopy cramfsloadfdt cramfsloadkernel " \ |
| 164 | "flashargs add_default addpanic boot\0" \ |
Holger Brunck | e7bec9b | 2011-07-04 21:52:52 +0000 | [diff] [blame] | 165 | "develop=" \ |
| 166 | "tftp 200000 scripts/develop-${arch}.txt && " \ |
| 167 | "env import -t 200000 ${filesize} && " \ |
| 168 | "run setup_debug_env\0" \ |
| 169 | "ramfs=" \ |
| 170 | "tftp 200000 scripts/ramfs-${arch}.txt && " \ |
Holger Brunck | 0b53902 | 2011-05-04 01:47:34 +0000 | [diff] [blame] | 171 | "env import -t 200000 ${filesize} && " \ |
Holger Brunck | e7bec9b | 2011-07-04 21:52:52 +0000 | [diff] [blame] | 172 | "run setup_debug_env\0" \ |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 173 | "" |
| 174 | |
| 175 | /* |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 176 | * bootargs |
| 177 | * - modify 'bootargs' |
| 178 | * |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 179 | * - 'add_default': default bootargs common for all arm/ppc boards |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 180 | * - 'addpanic': add kernel panic options |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 181 | * - 'flashargs': defaults arguments for flash base boot |
| 182 | * |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 183 | */ |
| 184 | #define CONFIG_KM_DEF_ENV_BOOTARGS \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 185 | "add_default=" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 186 | "setenv bootargs ${bootargs} " \ |
| 187 | "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 188 | ":${hostname}:${netdev}:off3" \ |
| 189 | " console=" CONFIG_KM_CONSOLE_TTY ",${baudrate}" \ |
Andreas Huber | 28c63c7 | 2011-09-13 23:06:11 +0000 | [diff] [blame] | 190 | " mem=${kernelmem} init=${init}" \ |
Holger Brunck | ffcbb93 | 2013-01-21 03:55:24 +0000 | [diff] [blame] | 191 | CONFIG_KM_ECC_MODE \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 192 | " phram.phram=phvar,${varaddr}," __stringify(CONFIG_KM_PHRAM)\ |
Andreas Huber | a81548a | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 193 | " " CONFIG_KM_UBI_LINUX_MTD " " \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 194 | CONFIG_KM_DEF_BOOT_ARGS_CPU \ |
| 195 | "\0" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 196 | "addpanic=" \ |
Holger Brunck | 0b53902 | 2011-05-04 01:47:34 +0000 | [diff] [blame] | 197 | "setenv bootargs ${bootargs} panic=1 panic_on_oops=1\0" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 198 | "flashargs=" \ |
| 199 | "setenv bootargs " \ |
Thomas Herzmann | 1d253c1 | 2011-04-08 02:47:41 +0000 | [diff] [blame] | 200 | "root=mtdblock:rootfs${boot_bank} " \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 201 | "rootfstype=squashfs ro\0" \ |
| 202 | "" |
| 203 | |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 204 | /* |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 205 | * flash_boot |
| 206 | * - commands for booting from flash |
| 207 | * |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 208 | * - 'cramfsloadkernel': copy kernel from a cramfs to ram |
| 209 | * - 'ubiattach': attach ubi partition |
| 210 | * - 'ubicopy': copy ubi volume to ram |
| 211 | * - volume names: bootfs0, bootfs1, bootfs2, ... |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 212 | * |
| 213 | * processor specific settings |
| 214 | * - 'cramfsloadfdt': copy fdt from a cramfs to ram |
| 215 | */ |
| 216 | #define CONFIG_KM_DEF_ENV_FLASH_BOOT \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 217 | "cramfsaddr=" __stringify(CONFIG_KM_CRAMFS_ADDR) "\0" \ |
Andreas Huber | c31a757 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 218 | "cramfsloadkernel=cramfsload ${load_addr_r} ${uimage}\0" \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 219 | "ubicopy=ubi read "__stringify(CONFIG_KM_CRAMFS_ADDR) \ |
Holger Brunck | 0b53902 | 2011-05-04 01:47:34 +0000 | [diff] [blame] | 220 | " bootfs${boot_bank}\0" \ |
Andreas Huber | c31a757 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 221 | "uimage=" CONFIG_KM_UIMAGE_NAME \ |
Andreas Huber | a81548a | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 222 | CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 223 | |
| 224 | /* |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 225 | * constants |
| 226 | * - KM specific constants and commands |
| 227 | * |
| 228 | * - 'default': setup default environment |
| 229 | */ |
| 230 | #define CONFIG_KM_DEF_ENV_CONSTANTS \ |
Thomas Herzmann | 1d253c1 | 2011-04-08 02:47:41 +0000 | [diff] [blame] | 231 | "backup_bank=0\0" \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 232 | "release=run newenv; reset\0" \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 233 | "pnvramsize=" __stringify(CONFIG_KM_PNVRAM) "\0" \ |
Thomas Herzmann | 80d5c9e | 2011-06-05 22:22:13 +0000 | [diff] [blame] | 234 | "testbootcmd=setenv boot_bank ${test_bank}; " \ |
| 235 | "run ${subbootcmds}; reset\0" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 236 | "" |
| 237 | |
Heiko Schocher | a8d5189 | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 238 | #ifndef CONFIG_KM_DEF_ENV |
| 239 | #define CONFIG_KM_DEF_ENV \ |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 240 | CONFIG_KM_DEF_ENV_BOOTPARAMS \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 241 | CONFIG_KM_DEF_NETDEV \ |
| 242 | CONFIG_KM_DEF_ENV_CPU \ |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 243 | CONFIG_KM_DEF_ENV_BOOTTARGETS \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 244 | CONFIG_KM_DEF_ENV_BOOTARGS \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 245 | CONFIG_KM_DEF_ENV_FLASH_BOOT \ |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 246 | CONFIG_KM_DEF_ENV_CONSTANTS \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 247 | "altbootcmd=run bootcmd\0" \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 248 | "bootcmd=km_checkbidhwk && " \ |
Thomas Herzmann | b2c3160 | 2012-05-04 10:55:58 +0200 | [diff] [blame] | 249 | "setenv bootcmd \'if km_checktestboot; then; " \ |
| 250 | "setenv boot_bank ${test_bank}; else; " \ |
| 251 | "setenv boot_bank ${actual_bank}; fi;" \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 252 | "run ${subbootcmds}; reset\' && " \ |
| 253 | "setenv altbootcmd \'setenv boot_bank ${backup_bank}; " \ |
| 254 | "run ${subbootcmds}; reset\' && " \ |
| 255 | "saveenv && saveenv && boot\0" \ |
Holger Brunck | ca907c9 | 2012-05-04 10:55:54 +0200 | [diff] [blame] | 256 | "bootlimit=3\0" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 257 | "init=/sbin/init-overlay.sh\0" \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 258 | "load_addr_r="__stringify(CONFIG_KM_KERNEL_ADDR) "\0" \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 259 | "load=tftpboot ${load_addr_r} ${u-boot}\0" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 260 | "mtdids=" MTDIDS_DEFAULT "\0" \ |
| 261 | "mtdparts=" MTDPARTS_DEFAULT "\0" \ |
Heiko Schocher | a8d5189 | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 262 | "" |
| 263 | #endif /* CONFIG_KM_DEF_ENV */ |
| 264 | |
Holger Brunck | 4559d1f | 2011-04-08 02:47:46 +0000 | [diff] [blame] | 265 | #define CONFIG_VERSION_VARIABLE /* include version env variable */ |
Heiko Schocher | a8d5189 | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 266 | |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 267 | #endif /* __CONFIG_KEYMILE_H */ |