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