Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com> |
| 3 | * on behalf of DENX Software Engineering GmbH |
| 4 | * |
Wolfgang Denk | bd8ec7e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 6 | */ |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 7 | #ifndef __CONFIGS_M28EVK_H__ |
| 8 | #define __CONFIGS_M28EVK_H__ |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 9 | |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 10 | /* System configurations */ |
| 11 | #define CONFIG_MX28 /* i.MX28 SoC */ |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 12 | #define MACH_TYPE_M28EVK 3613 |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 13 | #define CONFIG_MACH_TYPE MACH_TYPE_M28EVK |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 14 | |
Marek Vasut | eb0c701 | 2014-06-26 11:01:27 +0200 | [diff] [blame] | 15 | #define CONFIG_TIMESTAMP /* Print image info with timestamp */ |
| 16 | |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 17 | /* U-Boot Commands */ |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 18 | #define CONFIG_SYS_NO_FLASH |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 19 | #define CONFIG_DISPLAY_CPUINFO |
| 20 | #define CONFIG_DOS_PARTITION |
Marek Vasut | eb0c701 | 2014-06-26 11:01:27 +0200 | [diff] [blame] | 21 | #define CONFIG_FAT_WRITE |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 22 | |
Marek Vasut | eb0c701 | 2014-06-26 11:01:27 +0200 | [diff] [blame] | 23 | #define CONFIG_CMD_BMP |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 24 | #define CONFIG_CMD_DATE |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 25 | #define CONFIG_CMD_EEPROM |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 26 | #define CONFIG_CMD_NAND |
Marek Vasut | e154c71 | 2013-07-07 20:20:26 +0200 | [diff] [blame] | 27 | #define CONFIG_CMD_NAND_TRIMFFS |
Marek Vasut | 34ce0e1 | 2013-04-28 09:20:04 +0000 | [diff] [blame] | 28 | #define CONFIG_VIDEO |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 29 | |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 30 | /* Memory configuration */ |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 31 | #define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of DRAM */ |
| 32 | #define PHYS_SDRAM_1 0x40000000 /* Base address */ |
| 33 | #define PHYS_SDRAM_1_SIZE 0x20000000 /* Max 512 MB RAM */ |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 34 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 35 | |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 36 | /* Environment */ |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 37 | #define CONFIG_ENV_SIZE (16 * 1024) |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 38 | #define CONFIG_ENV_IS_IN_NAND |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 39 | |
| 40 | /* Environment is in NAND */ |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 41 | #if defined(CONFIG_CMD_NAND) && defined(CONFIG_ENV_IS_IN_NAND) |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 42 | #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE |
| 43 | #define CONFIG_ENV_SECT_SIZE (128 * 1024) |
Marek Vasut | 72d2dee | 2014-06-26 11:01:28 +0200 | [diff] [blame] | 44 | #define CONFIG_ENV_RANGE (4 * CONFIG_ENV_SECT_SIZE) |
| 45 | #define CONFIG_ENV_OFFSET (24 * CONFIG_ENV_SECT_SIZE) /* 3 MiB */ |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 46 | #define CONFIG_ENV_OFFSET_REDUND \ |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 47 | (CONFIG_ENV_OFFSET + CONFIG_ENV_RANGE) |
| 48 | |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 49 | #define CONFIG_CMD_UBI |
| 50 | #define CONFIG_CMD_UBIFS |
| 51 | #define CONFIG_CMD_MTDPARTS |
| 52 | #define CONFIG_RBTREE |
| 53 | #define CONFIG_LZO |
| 54 | #define CONFIG_MTD_DEVICE |
| 55 | #define CONFIG_MTD_PARTITIONS |
| 56 | #define MTDIDS_DEFAULT "nand0=gpmi-nand" |
| 57 | #define MTDPARTS_DEFAULT \ |
Marek Vasut | 94be365 | 2012-08-28 15:12:48 +0000 | [diff] [blame] | 58 | "mtdparts=gpmi-nand:" \ |
Marek Vasut | 72d2dee | 2014-06-26 11:01:28 +0200 | [diff] [blame] | 59 | "3m(u-boot)," \ |
| 60 | "512k(env1)," \ |
| 61 | "512k(env2)," \ |
| 62 | "14m(boot)," \ |
| 63 | "238m(data)," \ |
| 64 | "-@4096k(UBI)" |
Marek Vasut | 173825c | 2011-12-31 18:28:22 +0000 | [diff] [blame] | 65 | #else |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 66 | #define CONFIG_ENV_IS_NOWHERE |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 67 | #endif |
| 68 | |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 69 | /* FEC Ethernet on SoC */ |
| 70 | #ifdef CONFIG_CMD_NET |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 71 | #define CONFIG_FEC_MXC |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 72 | #endif |
| 73 | |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 74 | /* EEPROM */ |
| 75 | #ifdef CONFIG_CMD_EEPROM |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 76 | #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 77 | #endif |
| 78 | |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 79 | /* RTC */ |
| 80 | #ifdef CONFIG_CMD_DATE |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 81 | /* Use the internal RTC in the MXS chip */ |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 82 | #define CONFIG_RTC_INTERNAL |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 83 | #ifdef CONFIG_RTC_INTERNAL |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 84 | #define CONFIG_RTC_MXS |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 85 | #else |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 86 | #define CONFIG_RTC_M41T62 |
| 87 | #define CONFIG_SYS_I2C_RTC_ADDR 0x68 |
| 88 | #define CONFIG_SYS_M41T11_BASE_YEAR 2000 |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 89 | #endif |
| 90 | #endif |
| 91 | |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 92 | /* USB */ |
| 93 | #ifdef CONFIG_CMD_USB |
Marek Vasut | 191a2ce | 2013-02-23 02:43:02 +0000 | [diff] [blame] | 94 | #define CONFIG_EHCI_MXS_PORT0 |
| 95 | #define CONFIG_EHCI_MXS_PORT1 |
| 96 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 97 | #define CONFIG_USB_STORAGE |
Marek Vasut | bf4362f | 2011-11-08 23:18:27 +0000 | [diff] [blame] | 98 | #endif |
| 99 | |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 100 | /* SPI */ |
| 101 | #ifdef CONFIG_CMD_SPI |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 102 | #define CONFIG_DEFAULT_SPI_BUS 2 |
| 103 | #define CONFIG_DEFAULT_SPI_CS 0 |
| 104 | #define CONFIG_DEFAULT_SPI_MODE SPI_MODE_0 |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 105 | |
| 106 | /* SPI FLASH */ |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 107 | #ifdef CONFIG_CMD_SF |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 108 | #define CONFIG_SF_DEFAULT_BUS 2 |
| 109 | #define CONFIG_SF_DEFAULT_CS 0 |
| 110 | #define CONFIG_SF_DEFAULT_SPEED 40000000 |
| 111 | #define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 112 | |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 113 | #define CONFIG_ENV_SPI_BUS 2 |
| 114 | #define CONFIG_ENV_SPI_CS 0 |
| 115 | #define CONFIG_ENV_SPI_MAX_HZ 40000000 |
| 116 | #define CONFIG_ENV_SPI_MODE SPI_MODE_0 |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 117 | #endif |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 118 | |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 119 | #endif |
| 120 | |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 121 | /* LCD */ |
| 122 | #ifdef CONFIG_VIDEO |
Marek Vasut | 34ce0e1 | 2013-04-28 09:20:04 +0000 | [diff] [blame] | 123 | #define CONFIG_VIDEO_LOGO |
Marek Vasut | 34ce0e1 | 2013-04-28 09:20:04 +0000 | [diff] [blame] | 124 | #define CONFIG_SPLASH_SCREEN |
| 125 | #define CONFIG_CMD_BMP |
| 126 | #define CONFIG_BMP_16BPP |
| 127 | #define CONFIG_VIDEO_BMP_RLE8 |
| 128 | #define CONFIG_VIDEO_BMP_GZIP |
Marek Vasut | eb0c701 | 2014-06-26 11:01:27 +0200 | [diff] [blame] | 129 | #define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (2 << 20) |
Marek Vasut | 34ce0e1 | 2013-04-28 09:20:04 +0000 | [diff] [blame] | 130 | #endif |
| 131 | |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 132 | /* Booting Linux */ |
Lothar Rubusch | 65af06e | 2014-06-26 11:01:29 +0200 | [diff] [blame] | 133 | #define CONFIG_BOOTFILE "fitImage" |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 134 | #define CONFIG_BOOTARGS "console=ttyAMA0,115200n8 " |
Lothar Rubusch | 65af06e | 2014-06-26 11:01:29 +0200 | [diff] [blame] | 135 | #define CONFIG_BOOTCOMMAND "run mmc_mmc" |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 136 | #define CONFIG_LOADADDR 0x42000000 |
| 137 | #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 138 | |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 139 | /* Extra Environment */ |
Lothar Rubusch | 65af06e | 2014-06-26 11:01:29 +0200 | [diff] [blame] | 140 | #define CONFIG_PREBOOT "run try_bootscript" |
| 141 | #define CONFIG_HOSTNAME m28evk |
| 142 | |
Wolfgang Denk | bed617d | 2013-03-23 23:50:35 +0000 | [diff] [blame] | 143 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
Lothar Rubusch | 65af06e | 2014-06-26 11:01:29 +0200 | [diff] [blame] | 144 | "consdev=ttyAMA0\0" \ |
| 145 | "baudrate=115200\0" \ |
Marek Vasut | 04457b7 | 2014-10-12 00:00:50 +0200 | [diff] [blame] | 146 | "bootscript=boot.scr\0" \ |
Lothar Rubusch | 65af06e | 2014-06-26 11:01:29 +0200 | [diff] [blame] | 147 | "bootdev=/dev/mmcblk0p2\0" \ |
| 148 | "rootdev=/dev/mmcblk0p3\0" \ |
| 149 | "netdev=eth0\0" \ |
| 150 | "hostname=m28evk\0" \ |
| 151 | "rootpath=/opt/eldk-5.5/armv5te/rootfs-qte-sdk\0" \ |
| 152 | "kernel_addr_r=0x42000000\0" \ |
| 153 | "videomode=video=ctfb:x:800,y:480,depth:18,mode:0,pclk:30066," \ |
| 154 | "le:0,ri:256,up:0,lo:45,hs:1,vs:1,sync:100663296," \ |
| 155 | "vmode:0\0" \ |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 156 | "update_nand_full_filename=u-boot.nand\0" \ |
| 157 | "update_nand_firmware_filename=u-boot.sb\0" \ |
Marek Vasut | f501386 | 2012-05-01 11:09:43 +0000 | [diff] [blame] | 158 | "update_sd_firmware_filename=u-boot.sd\0" \ |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 159 | "update_nand_firmware_maxsz=0x100000\0" \ |
| 160 | "update_nand_stride=0x40\0" /* MX28 datasheet ch. 12.12 */ \ |
| 161 | "update_nand_count=0x4\0" /* MX28 datasheet ch. 12.12 */ \ |
| 162 | "update_nand_get_fcb_size=" /* Get size of FCB blocks */ \ |
| 163 | "nand device 0 ; " \ |
| 164 | "nand info ; " \ |
| 165 | "setexpr fcb_sz ${update_nand_stride} * ${update_nand_count};" \ |
| 166 | "setexpr update_nand_fcb ${fcb_sz} * ${nand_writesize}\0" \ |
| 167 | "update_nand_full=" /* Update FCB, DBBT and FW */ \ |
| 168 | "if tftp ${update_nand_full_filename} ; then " \ |
| 169 | "run update_nand_get_fcb_size ; " \ |
| 170 | "nand scrub -y 0x0 ${filesize} ; " \ |
Lothar Rubusch | 65af06e | 2014-06-26 11:01:29 +0200 | [diff] [blame] | 171 | "nand write.raw ${loadaddr} 0x0 ${fcb_sz} ; " \ |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 172 | "setexpr update_off ${loadaddr} + ${update_nand_fcb} ; " \ |
| 173 | "setexpr update_sz ${filesize} - ${update_nand_fcb} ; " \ |
| 174 | "nand write ${update_off} ${update_nand_fcb} ${update_sz} ; " \ |
| 175 | "fi\0" \ |
| 176 | "update_nand_firmware=" /* Update only firmware */ \ |
| 177 | "if tftp ${update_nand_firmware_filename} ; then " \ |
| 178 | "run update_nand_get_fcb_size ; " \ |
| 179 | "setexpr fcb_sz ${update_nand_fcb} * 2 ; " /* FCB + DBBT */ \ |
| 180 | "setexpr fw_sz ${update_nand_firmware_maxsz} * 2 ; " \ |
| 181 | "setexpr fw_off ${fcb_sz} + ${update_nand_firmware_maxsz};" \ |
| 182 | "nand erase ${fcb_sz} ${fw_sz} ; " \ |
| 183 | "nand write ${loadaddr} ${fcb_sz} ${filesize} ; " \ |
| 184 | "nand write ${loadaddr} ${fw_off} ${filesize} ; " \ |
Marek Vasut | f501386 | 2012-05-01 11:09:43 +0000 | [diff] [blame] | 185 | "fi\0" \ |
| 186 | "update_sd_firmware=" /* Update the SD firmware partition */ \ |
| 187 | "if mmc rescan ; then " \ |
| 188 | "if tftp ${update_sd_firmware_filename} ; then " \ |
| 189 | "setexpr fw_sz ${filesize} / 0x200 ; " /* SD block size */ \ |
| 190 | "setexpr fw_sz ${fw_sz} + 1 ; " \ |
| 191 | "mmc write ${loadaddr} 0x800 ${fw_sz} ; " \ |
| 192 | "fi ; " \ |
Lothar Rubusch | 65af06e | 2014-06-26 11:01:29 +0200 | [diff] [blame] | 193 | "fi\0" \ |
| 194 | "addcons=" \ |
| 195 | "setenv bootargs ${bootargs} " \ |
| 196 | "console=${consdev},${baudrate}\0" \ |
| 197 | "addip=" \ |
| 198 | "setenv bootargs ${bootargs} " \ |
| 199 | "ip=${ipaddr}:${serverip}:${gatewayip}:" \ |
| 200 | "${netmask}:${hostname}:${netdev}:off\0" \ |
| 201 | "addmisc=" \ |
| 202 | "setenv bootargs ${bootargs} ${miscargs}\0" \ |
| 203 | "adddfltmtd=" \ |
| 204 | "if test \"x${mtdparts}\" == \"x\" ; then " \ |
| 205 | "mtdparts default ; " \ |
| 206 | "fi\0" \ |
| 207 | "addmtd=" \ |
| 208 | "run adddfltmtd ; " \ |
| 209 | "setenv bootargs ${bootargs} ${mtdparts}\0" \ |
| 210 | "addargs=run addcons addmtd addmisc\0" \ |
| 211 | "mmcload=" \ |
| 212 | "mmc rescan ; " \ |
Marek Vasut | bfbeff2 | 2014-09-23 13:18:20 +0200 | [diff] [blame] | 213 | "load mmc 0:2 ${kernel_addr_r} ${bootfile}\0" \ |
Lothar Rubusch | 65af06e | 2014-06-26 11:01:29 +0200 | [diff] [blame] | 214 | "ubiload=" \ |
| 215 | "ubi part UBI ; ubifsmount ubi0:rootfs ; " \ |
| 216 | "ubifsload ${kernel_addr_r} /boot/${bootfile}\0" \ |
| 217 | "netload=" \ |
| 218 | "tftp ${kernel_addr_r} ${hostname}/${bootfile}\0" \ |
| 219 | "miscargs=nohlt panic=1\0" \ |
| 220 | "mmcargs=setenv bootargs root=${rootdev} rw rootwait\0" \ |
| 221 | "ubiargs=" \ |
| 222 | "setenv bootargs ubi.mtd=5 " \ |
| 223 | "root=ubi0:rootfs rootfstype=ubifs\0" \ |
| 224 | "nfsargs=" \ |
| 225 | "setenv bootargs root=/dev/nfs rw " \ |
| 226 | "nfsroot=${serverip}:${rootpath},v3,tcp\0" \ |
| 227 | "mmc_mmc=" \ |
| 228 | "run mmcload mmcargs addargs ; " \ |
| 229 | "bootm ${kernel_addr_r}\0" \ |
| 230 | "mmc_ubi=" \ |
| 231 | "run mmcload ubiargs addargs ; " \ |
| 232 | "bootm ${kernel_addr_r}\0" \ |
| 233 | "mmc_nfs=" \ |
| 234 | "run mmcload nfsargs addip addargs ; " \ |
| 235 | "bootm ${kernel_addr_r}\0" \ |
| 236 | "ubi_mmc=" \ |
| 237 | "run ubiload mmcargs addargs ; " \ |
| 238 | "bootm ${kernel_addr_r}\0" \ |
| 239 | "ubi_ubi=" \ |
| 240 | "run ubiload ubiargs addargs ; " \ |
| 241 | "bootm ${kernel_addr_r}\0" \ |
| 242 | "ubi_nfs=" \ |
| 243 | "run ubiload nfsargs addip addargs ; " \ |
| 244 | "bootm ${kernel_addr_r}\0" \ |
| 245 | "net_mmc=" \ |
| 246 | "run netload mmcargs addargs ; " \ |
| 247 | "bootm ${kernel_addr_r}\0" \ |
| 248 | "net_ubi=" \ |
| 249 | "run netload ubiargs addargs ; " \ |
| 250 | "bootm ${kernel_addr_r}\0" \ |
| 251 | "net_nfs=" \ |
| 252 | "run netload nfsargs addip addargs ; " \ |
| 253 | "bootm ${kernel_addr_r}\0" \ |
| 254 | "try_bootscript=" \ |
| 255 | "mmc rescan;" \ |
Marek Vasut | eab2cb6 | 2014-09-23 13:18:18 +0200 | [diff] [blame] | 256 | "if test -e mmc 0:2 ${bootscript} ; then " \ |
Marek Vasut | bfbeff2 | 2014-09-23 13:18:20 +0200 | [diff] [blame] | 257 | "if load mmc 0:2 ${kernel_addr_r} ${bootscript};" \ |
Marek Vasut | a977f48 | 2014-09-25 21:14:16 +0200 | [diff] [blame] | 258 | "then ; " \ |
| 259 | "echo Running bootscript... ; " \ |
| 260 | "source ${kernel_addr_r} ; " \ |
Marek Vasut | eab2cb6 | 2014-09-23 13:18:18 +0200 | [diff] [blame] | 261 | "fi ; " \ |
Marek Vasut | 78687b7 | 2011-11-08 23:18:20 +0000 | [diff] [blame] | 262 | "fi\0" |
| 263 | |
Marek Vasut | b51f8ae | 2013-06-16 15:39:02 +0200 | [diff] [blame] | 264 | /* The rest of the configuration is shared */ |
| 265 | #include <configs/mxs.h> |
| 266 | |
| 267 | #endif /* __CONFIGS_M28EVK_H__ */ |