OLD | NEW |
1 /* | 1 /* |
2 * (C) Copyright 2010 | 2 * (C) Copyright 2010 |
3 * NVIDIA Corporation <www.nvidia.com> | 3 * NVIDIA Corporation <www.nvidia.com> |
4 * | 4 * |
5 * See file CREDITS for list of people who contributed to this | 5 * See file CREDITS for list of people who contributed to this |
6 * project. | 6 * project. |
7 * | 7 * |
8 * This program is free software; you can redistribute it and/or | 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 | 9 * modify it under the terms of the GNU General Public License as |
10 * published by the Free Software Foundation; either version 2 of | 10 * published by the Free Software Foundation; either version 2 of |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 #include <config_cmd_default.h> | 130 #include <config_cmd_default.h> |
131 | 131 |
132 /* turn on command-line edit/hist/auto */ | 132 /* turn on command-line edit/hist/auto */ |
133 | 133 |
134 #define CONFIG_CMDLINE_EDITING 1 | 134 #define CONFIG_CMDLINE_EDITING 1 |
135 #define CONFIG_COMMAND_HISTORY 1 | 135 #define CONFIG_COMMAND_HISTORY 1 |
136 #define CONFIG_AUTOCOMPLETE 1 | 136 #define CONFIG_AUTOCOMPLETE 1 |
137 | 137 |
138 #define TEGRAPARTS_DEFAULT "system:3680:2bc0:800" | 138 #define TEGRAPARTS_DEFAULT "system:3680:2bc0:800" |
139 #define TEGRABOOT_DEFAULT "nand" | 139 #define TEGRABOOT_DEFAULT "nand" |
| 140 |
140 #undef CONFIG_YAFFS2 /* YAFFS2 Support */ | 141 #undef CONFIG_YAFFS2 /* YAFFS2 Support */ |
141 #define CONFIG_YAFFS2_TAG_NO_ECC /* Disable YAFFS2 ECC calculation */ | 142 #define CONFIG_YAFFS2_TAG_NO_ECC /* Disable YAFFS2 ECC calculation */ |
142 /* This is required in order to reduce nand | 143 /* This is required in order to reduce nand |
143 * tag space used by yaffs2 to fit the 20 bytes | 144 * tag space used by yaffs2 to fit the 20 bytes |
144 * available with Reed-Solomon ecc enabled. | 145 * available with Reed-Solomon ecc enabled. |
145 * Ecc is calculated and checked by nvddk | 146 * Ecc is calculated and checked by nvddk |
146 * stack. */ | 147 * stack. */ |
147 #undef CONFIG_YAFFS_DOES_ECC /* Ditto */ | 148 #undef CONFIG_YAFFS_DOES_ECC /* Ditto */ |
148 #define CONFIG_SYS_64BIT_STRTOUL 1 | 149 #define CONFIG_SYS_64BIT_STRTOUL 1 |
149 #define CONFIG_SYS_64BIT_VSPRINTF 1 | 150 #define CONFIG_SYS_64BIT_VSPRINTF 1 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 * packets depending on the buffer address and size. | 201 * packets depending on the buffer address and size. |
201 */ | 202 */ |
202 #define CONFIG_USB_EHCI_TXFIFO_THRESH 10 | 203 #define CONFIG_USB_EHCI_TXFIFO_THRESH 10 |
203 | 204 |
204 #define CONFIG_EHCI_IS_TDI | 205 #define CONFIG_EHCI_IS_TDI |
205 #define CONFIG_USB_STORAGE | 206 #define CONFIG_USB_STORAGE |
206 #define CONFIG_USB_HOST_ETHER | 207 #define CONFIG_USB_HOST_ETHER |
207 #define CONFIG_USB_ETHER_ASIX | 208 #define CONFIG_USB_ETHER_ASIX |
208 #define CONFIG_USB_ETHER_SMSC95XX | 209 #define CONFIG_USB_ETHER_SMSC95XX |
209 | 210 |
| 211 /* Enable Warmboot code and lp0_vec */ |
| 212 #define CONFIG_TEGRA2_LP0 1 |
| 213 |
| 214 #ifdef CONFIG_TEGRA2_LP0 |
| 215 #define TEGRA_LP0_DEFAULT_ADDR 0x1C406000 /* inside carveout memory region */ |
| 216 #define TEGRA_LP0_SIZE 0x2000 /* 8KB */ |
| 217 |
| 218 /* make sure the following has the same value of TEGRA_LP0_DEFAULT_ADDR */ |
| 219 #define TEGRA_LP0_DEFAULT_ADDR_STR "0x1C406000" |
| 220 /* make sure the following has the same value of TEGRA_LP0_SIZE */ |
| 221 #define TEGRA_LP0_SIZE_STR "0x2000" |
| 222 #define AT "@" |
| 223 #define LP0_VEC "lp0_vec=" |
| 224 #else |
| 225 #define TEGRA_LP0_DEFAULT_ADDR_STR " " |
| 226 #define TEGRA_LP0_SIZE_STR " " |
| 227 #define AT " " |
| 228 #define LP0_VEC " " |
| 229 #endif |
| 230 |
210 /* Environment information */ | 231 /* Environment information */ |
211 #define CONFIG_DEFAULT_ENV_SETTINGS \ | 232 #define CONFIG_DEFAULT_ENV_SETTINGS \ |
212 "tegraparts=" TEGRAPARTS_DEFAULT "\0" \ | 233 "tegraparts=" TEGRAPARTS_DEFAULT "\0" \ |
213 "tegraboot=" TEGRABOOT_DEFAULT "\0" \ | 234 "tegraboot=" TEGRABOOT_DEFAULT "\0" \ |
214 "nfsport=" TEGRA_NFSPORT_DEFAULT "\0" \ | 235 "nfsport=" TEGRA_NFSPORT_DEFAULT "\0" \ |
215 "console=ttyS0,115200n8\0" \ | 236 "console=ttyS0,115200n8\0" \ |
216 "mem=" TEGRA2_SYSMEM "\0" \ | 237 "mem=" TEGRA2_SYSMEM "\0" \ |
217 "smpflag=smp\0" \ | 238 "smpflag=smp\0" \ |
218 » "videospec=tegrafb\0" | 239 » "videospec=tegrafb\0" \ |
| 240 » "lp0_vec=" LP0_VEC TEGRA_LP0_SIZE_STR AT TEGRA_LP0_DEFAULT_ADDR_STR "\0" |
219 | 241 |
220 #define CONFIG_IPADDR 10.0.0.2 | 242 #define CONFIG_IPADDR 10.0.0.2 |
221 #define CONFIG_SERVERIP 10.0.0.1 | 243 #define CONFIG_SERVERIP 10.0.0.1 |
222 #define CONFIG_LOADADDR 0x408000 /* free RAM to download kernel to */ | 244 #define CONFIG_LOADADDR 0x408000 /* free RAM to download kernel to */ |
223 #define CONFIG_BOOTFILE vmlinux.uimg | 245 #define CONFIG_BOOTFILE vmlinux.uimg |
224 #define TEGRA_EHCI_PROBE_DELAY_DEFAULT "5000" | 246 #define TEGRA_EHCI_PROBE_DELAY_DEFAULT "5000" |
225 #define CONFIG_BOOTDELAY 2 /* -1 to disable auto boot */ | 247 #define CONFIG_BOOTDELAY 2 /* -1 to disable auto boot */ |
226 #define CONFIG_EXTRA_ENV_SETTINGS \ | 248 #define CONFIG_EXTRA_ENV_SETTINGS \ |
227 "usbprobedelay=" TEGRA_EHCI_PROBE_DELAY_DEFAULT "\0" \ | 249 "usbprobedelay=" TEGRA_EHCI_PROBE_DELAY_DEFAULT "\0" \ |
228 "usbhost=on\0" \ | 250 "usbhost=on\0" \ |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 "tegra_ehci_probe_delay=${usbprobedelay}; " \ | 287 "tegra_ehci_probe_delay=${usbprobedelay}; " \ |
266 "fi;\0" \ | 288 "fi;\0" \ |
267 "usbboot=usb start; " \ | 289 "usbboot=usb start; " \ |
268 "ext2load usb 0:3 ${loadaddr} /boot/${bootfile}; " \ | 290 "ext2load usb 0:3 ${loadaddr} /boot/${bootfile}; " \ |
269 "setenv bootargs root=/dev/sda3 rw rootwait " \ | 291 "setenv bootargs root=/dev/sda3 rw rootwait " \ |
270 "${mem} " \ | 292 "${mem} " \ |
271 "video=${videospec} " \ | 293 "video=${videospec} " \ |
272 "console=${console} " \ | 294 "console=${console} " \ |
273 "usbcore.old_scheme_first=1 " \ | 295 "usbcore.old_scheme_first=1 " \ |
274 "tegraboot=${tegraboot} " \ | 296 "tegraboot=${tegraboot} " \ |
| 297 "${lp0_vec} " \ |
275 "tegrap earlyprintk; "\ | 298 "tegrap earlyprintk; "\ |
276 "bootm ${loadaddr}\0" \ | 299 "bootm ${loadaddr}\0" \ |
277 "nandboot=setenv bootcmd " \ | 300 "nandboot=setenv bootcmd " \ |
278 "run nandargs \\; " \ | 301 "run nandargs \\; " \ |
279 "ymount /flash\\; " \ | 302 "ymount /flash\\; " \ |
280 "yrdm /flash/boot/${bootfile} ${loadaddr}\\; " \ | 303 "yrdm /flash/boot/${bootfile} ${loadaddr}\\; " \ |
281 "yumount /flash\\; " \ | 304 "yumount /flash\\; " \ |
282 "bootm ${loadaddr}\0" \ | 305 "bootm ${loadaddr}\0" \ |
283 "mmcboot=ext2load mmc 0:3 ${loadaddr} /boot/${bootfile}; " \ | 306 "mmcboot=ext2load mmc 0:3 ${loadaddr} /boot/${bootfile}; " \ |
284 "setenv bootargs root=/dev/mmcblk0p3 rw rootwait " \ | 307 "setenv bootargs root=/dev/mmcblk0p3 rw rootwait " \ |
285 "${mem} " \ | 308 "${mem} " \ |
286 "video=${videospec} " \ | 309 "video=${videospec} " \ |
287 "console=${console} " \ | 310 "console=${console} " \ |
288 "usbcore.old_scheme_first=1 " \ | 311 "usbcore.old_scheme_first=1 " \ |
289 "tegraboot=${tegraboot} " \ | 312 "tegraboot=${tegraboot} " \ |
| 313 "${lp0_vec} " \ |
290 "tegrap earlyprintk; "\ | 314 "tegrap earlyprintk; "\ |
291 "bootm ${loadaddr}\0" \ | 315 "bootm ${loadaddr}\0" \ |
292 "nfsboot=setenv bootcmd " \ | 316 "nfsboot=setenv bootcmd " \ |
293 "run nfsargs\\; "\ | 317 "run nfsargs\\; "\ |
294 "tftpboot ${loadaddr}\\;"\ | 318 "tftpboot ${loadaddr}\\;"\ |
295 "bootm ${loadaddr}\0" | 319 "bootm ${loadaddr}\0" |
296 | 320 |
297 /* auto load */ | 321 /* auto load */ |
298 /* try load from usb first, then mmc */ | 322 /* try load from usb first, then mmc */ |
299 #undef CONFIG_BOOTCOMMAND | 323 #undef CONFIG_BOOTCOMMAND |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 */ | 419 */ |
396 #define CONFIG_TEGRA2_I2C | 420 #define CONFIG_TEGRA2_I2C |
397 | 421 |
398 #ifdef CONFIG_TEGRA2_I2C | 422 #ifdef CONFIG_TEGRA2_I2C |
399 #define CONFIG_CMD_I2C | 423 #define CONFIG_CMD_I2C |
400 #define CONFIG_I2C_MULTI_BUS 1 | 424 #define CONFIG_I2C_MULTI_BUS 1 |
401 #define CONFIG_SYS_MAX_I2C_BUS 4 | 425 #define CONFIG_SYS_MAX_I2C_BUS 4 |
402 #endif | 426 #endif |
403 | 427 |
404 #endif /* __CONFIG_H */ | 428 #endif /* __CONFIG_H */ |
OLD | NEW |