Chromium Code Reviews| 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 */ | |
|
Tom Warren
2010/11/16 16:44:11
This set of #defines is awfully messy. Better to j
yelin
2010/11/16 23:41:04
No, I can not do that. The #ifdef can not be part
| |
| 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 | |
| 210 | 230 |
| 211 /* Environment information */ | 231 /* Environment information */ |
| 212 #define CONFIG_DEFAULT_ENV_SETTINGS \ | 232 #define CONFIG_DEFAULT_ENV_SETTINGS \ |
| 213 "tegraparts=" TEGRAPARTS_DEFAULT "\0" \ | 233 "tegraparts=" TEGRAPARTS_DEFAULT "\0" \ |
| 214 "tegraboot=" TEGRABOOT_DEFAULT "\0" \ | 234 "tegraboot=" TEGRABOOT_DEFAULT "\0" \ |
| 215 "nfsport=" TEGRA_NFSPORT_DEFAULT "\0" \ | 235 "nfsport=" TEGRA_NFSPORT_DEFAULT "\0" \ |
| 216 "console=ttyS0,115200n8\0" \ | 236 "console=ttyS0,115200n8\0" \ |
| 217 "mem=" TEGRA2_SYSMEM "\0" \ | 237 "mem=" TEGRA2_SYSMEM "\0" \ |
| 218 "smpflag=smp\0" \ | 238 "smpflag=smp\0" \ |
| 219 » "videospec=tegrafb\0" | 239 » "videospec=tegrafb\0" \ |
| 240 » "lp0_vec=" LP0_VEC TEGRA_LP0_SIZE_STR AT TEGRA_LP0_DEFAULT_ADDR_STR "\0" | |
| 220 | 241 |
| 221 #define CONFIG_IPADDR 10.0.0.2 | 242 #define CONFIG_IPADDR 10.0.0.2 |
| 222 #define CONFIG_SERVERIP 10.0.0.1 | 243 #define CONFIG_SERVERIP 10.0.0.1 |
| 223 #define CONFIG_LOADADDR 0x408000 /* free RAM to download kernel to */ | 244 #define CONFIG_LOADADDR 0x408000 /* free RAM to download kernel to */ |
| 224 #define CONFIG_BOOTFILE vmlinux.uimg | 245 #define CONFIG_BOOTFILE vmlinux.uimg |
| 225 #define TEGRA_EHCI_PROBE_DELAY_DEFAULT "5000" | 246 #define TEGRA_EHCI_PROBE_DELAY_DEFAULT "5000" |
| 226 #define CONFIG_BOOTDELAY 2 /* -1 to disable auto boot */ | 247 #define CONFIG_BOOTDELAY 2 /* -1 to disable auto boot */ |
| 227 #define CONFIG_EXTRA_ENV_SETTINGS \ | 248 #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 228 "usbprobedelay=" TEGRA_EHCI_PROBE_DELAY_DEFAULT "\0" \ | 249 "usbprobedelay=" TEGRA_EHCI_PROBE_DELAY_DEFAULT "\0" \ |
| 229 "usbhost=on\0" \ | 250 "usbhost=on\0" \ |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 265 "tegra_ehci_probe_delay=${usbprobedelay}; " \ | 286 "tegra_ehci_probe_delay=${usbprobedelay}; " \ |
| 266 "fi;\0" \ | 287 "fi;\0" \ |
| 267 "usbboot=usb start; " \ | 288 "usbboot=usb start; " \ |
| 268 "ext2load usb 0:3 ${loadaddr} /boot/${bootfile}; " \ | 289 "ext2load usb 0:3 ${loadaddr} /boot/${bootfile}; " \ |
| 269 "setenv bootargs root=/dev/sda3 rw rootwait " \ | 290 "setenv bootargs root=/dev/sda3 rw rootwait " \ |
| 270 "${mem} " \ | 291 "${mem} " \ |
| 271 "video=${videospec} " \ | 292 "video=${videospec} " \ |
| 272 "console=${console} " \ | 293 "console=${console} " \ |
| 273 "usbcore.old_scheme_first=1 " \ | 294 "usbcore.old_scheme_first=1 " \ |
| 274 "tegraboot=${tegraboot} " \ | 295 "tegraboot=${tegraboot} " \ |
| 296 "${lp0_vec} " \ | |
|
Tom Warren
2010/11/16 16:44:11
Shouldn't this be "lp0_vec=$(lp0_vec) "? And below
yelin
2010/11/16 23:41:04
No. That is correct. It is the same way as "${mem}
| |
| 275 "tegrap earlyprintk; "\ | 297 "tegrap earlyprintk; "\ |
| 276 "bootm ${loadaddr}\0" \ | 298 "bootm ${loadaddr}\0" \ |
| 277 "nandboot=setenv bootcmd " \ | 299 "nandboot=setenv bootcmd " \ |
| 278 "run nandargs \\; " \ | 300 "run nandargs \\; " \ |
| 279 "ymount /flash\\; " \ | 301 "ymount /flash\\; " \ |
| 280 "yrdm /flash/boot/${bootfile} ${loadaddr}\\; " \ | 302 "yrdm /flash/boot/${bootfile} ${loadaddr}\\; " \ |
| 281 "yumount /flash\\; " \ | 303 "yumount /flash\\; " \ |
| 282 "bootm ${loadaddr}\0" \ | 304 "bootm ${loadaddr}\0" \ |
| 283 "mmcboot=ext2load mmc 0:3 ${loadaddr} /boot/${bootfile}; " \ | 305 "mmcboot=ext2load mmc 0:3 ${loadaddr} /boot/${bootfile}; " \ |
| 284 "setenv bootargs root=/dev/mmcblk0p3 rw rootwait " \ | 306 "setenv bootargs root=/dev/mmcblk0p3 rw rootwait " \ |
| 285 "${mem} " \ | 307 "${mem} " \ |
| 286 "video=${videospec} " \ | 308 "video=${videospec} " \ |
| 287 "console=${console} " \ | 309 "console=${console} " \ |
| 288 "usbcore.old_scheme_first=1 " \ | 310 "usbcore.old_scheme_first=1 " \ |
| 289 "tegraboot=${tegraboot} " \ | 311 "tegraboot=${tegraboot} " \ |
| 312 "${lp0_vec} " \ | |
| 290 "tegrap earlyprintk; "\ | 313 "tegrap earlyprintk; "\ |
| 291 "bootm ${loadaddr}\0" \ | 314 "bootm ${loadaddr}\0" \ |
| 292 "nfsboot=setenv bootcmd " \ | 315 "nfsboot=setenv bootcmd " \ |
| 293 "run nfsargs\\; "\ | 316 "run nfsargs\\; "\ |
| 294 "tftpboot ${loadaddr}\\;"\ | 317 "tftpboot ${loadaddr}\\;"\ |
| 295 "bootm ${loadaddr}\0" | 318 "bootm ${loadaddr}\0" |
| 296 | 319 |
| 297 /* auto load */ | 320 /* auto load */ |
| 298 /* try load from usb first, then mmc */ | 321 /* try load from usb first, then mmc */ |
| 299 #undef CONFIG_BOOTCOMMAND | 322 #undef CONFIG_BOOTCOMMAND |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 395 */ | 418 */ |
| 396 #define CONFIG_TEGRA2_I2C | 419 #define CONFIG_TEGRA2_I2C |
| 397 | 420 |
| 398 #ifdef CONFIG_TEGRA2_I2C | 421 #ifdef CONFIG_TEGRA2_I2C |
| 399 #define CONFIG_CMD_I2C | 422 #define CONFIG_CMD_I2C |
| 400 #define CONFIG_I2C_MULTI_BUS 1 | 423 #define CONFIG_I2C_MULTI_BUS 1 |
| 401 #define CONFIG_SYS_MAX_I2C_BUS 4 | 424 #define CONFIG_SYS_MAX_I2C_BUS 4 |
| 402 #endif | 425 #endif |
| 403 | 426 |
| 404 #endif /* __CONFIG_H */ | 427 #endif /* __CONFIG_H */ |
| OLD | NEW |