Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: include/configs/tegra2-common.h

Issue 4841001: Tegra2: implement Warmboot code and lp0_vec (Closed) Base URL: http://git.chromium.org/git/u-boot-next.git@chromeos-v2010.09
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
141 /* make sure the following 2 defines have the same values (_STR is the string of TEGRA_LP0_DEFAULT_ADDR) */
142 #define TEGRA_LP0_DEFAULT_ADDR 0x1C406000 /* inside carveo ut memory region */
143 #define TEGRA_LP0_DEFAULT_ADDR_STR "0x1C406000" /* inside carveo ut memory region */
144
145 /* make sure the following 2 defines have the same values (_STR is the string of TEGRA_LP0_SIZE) */
146 #define TEGRA_LP0_SIZE 0x2000 /* 8KB */
147 #define TEGRA_LP0_SIZE_STR "0x2000" /* 8KB */
148
149
140 #undef CONFIG_YAFFS2 /* YAFFS2 Support */ 150 #undef CONFIG_YAFFS2 /* YAFFS2 Support */
141 #define CONFIG_YAFFS2_TAG_NO_ECC /* Disable YAFFS2 ECC calculation */ 151 #define CONFIG_YAFFS2_TAG_NO_ECC /* Disable YAFFS2 ECC calculation */
142 /* This is required in order to reduce nand 152 /* This is required in order to reduce nand
143 * tag space used by yaffs2 to fit the 20 bytes 153 * tag space used by yaffs2 to fit the 20 bytes
144 * available with Reed-Solomon ecc enabled. 154 * available with Reed-Solomon ecc enabled.
145 * Ecc is calculated and checked by nvddk 155 * Ecc is calculated and checked by nvddk
146 * stack. */ 156 * stack. */
147 #undef CONFIG_YAFFS_DOES_ECC /* Ditto */ 157 #undef CONFIG_YAFFS_DOES_ECC /* Ditto */
148 #define CONFIG_SYS_64BIT_STRTOUL 1 158 #define CONFIG_SYS_64BIT_STRTOUL 1
149 #define CONFIG_SYS_64BIT_VSPRINTF 1 159 #define CONFIG_SYS_64BIT_VSPRINTF 1
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 219
210 220
211 /* Environment information */ 221 /* Environment information */
212 #define CONFIG_DEFAULT_ENV_SETTINGS \ 222 #define CONFIG_DEFAULT_ENV_SETTINGS \
213 "tegraparts=" TEGRAPARTS_DEFAULT "\0" \ 223 "tegraparts=" TEGRAPARTS_DEFAULT "\0" \
214 "tegraboot=" TEGRABOOT_DEFAULT "\0" \ 224 "tegraboot=" TEGRABOOT_DEFAULT "\0" \
215 "nfsport=" TEGRA_NFSPORT_DEFAULT "\0" \ 225 "nfsport=" TEGRA_NFSPORT_DEFAULT "\0" \
216 "console=ttyS0,115200n8\0" \ 226 "console=ttyS0,115200n8\0" \
217 "mem=" TEGRA2_SYSMEM "\0" \ 227 "mem=" TEGRA2_SYSMEM "\0" \
218 "smpflag=smp\0" \ 228 "smpflag=smp\0" \
219 » "videospec=tegrafb\0" 229 » "videospec=tegrafb\0" \
230 » "lp0addr=" TEGRA_LP0_DEFAULT_ADDR_STR "\0" \
231 » "lp0size=" TEGRA_LP0_SIZE_STR "\0"
220 232
221 #define CONFIG_IPADDR 10.0.0.2 233 #define CONFIG_IPADDR 10.0.0.2
222 #define CONFIG_SERVERIP 10.0.0.1 234 #define CONFIG_SERVERIP 10.0.0.1
223 #define CONFIG_LOADADDR 0x408000 /* free RAM to download kernel to */ 235 #define CONFIG_LOADADDR 0x408000 /* free RAM to download kernel to */
224 #define CONFIG_BOOTFILE vmlinux.uimg 236 #define CONFIG_BOOTFILE vmlinux.uimg
225 #define TEGRA_EHCI_PROBE_DELAY_DEFAULT "5000" 237 #define TEGRA_EHCI_PROBE_DELAY_DEFAULT "5000"
226 #define CONFIG_BOOTDELAY 2 /* -1 to disable auto boot */ 238 #define CONFIG_BOOTDELAY 2 /* -1 to disable auto boot */
227 #define CONFIG_EXTRA_ENV_SETTINGS \ 239 #define CONFIG_EXTRA_ENV_SETTINGS \
228 "usbprobedelay=" TEGRA_EHCI_PROBE_DELAY_DEFAULT "\0" \ 240 "usbprobedelay=" TEGRA_EHCI_PROBE_DELAY_DEFAULT "\0" \
229 "usbhost=on\0" \ 241 "usbhost=on\0" \
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 "tegra_ehci_probe_delay=${usbprobedelay}; " \ 277 "tegra_ehci_probe_delay=${usbprobedelay}; " \
266 "fi;\0" \ 278 "fi;\0" \
267 "usbboot=usb start; " \ 279 "usbboot=usb start; " \
268 "ext2load usb 0:3 ${loadaddr} /boot/${bootfile}; " \ 280 "ext2load usb 0:3 ${loadaddr} /boot/${bootfile}; " \
269 "setenv bootargs root=/dev/sda3 rw rootwait " \ 281 "setenv bootargs root=/dev/sda3 rw rootwait " \
270 "${mem} " \ 282 "${mem} " \
271 "video=${videospec} " \ 283 "video=${videospec} " \
272 "console=${console} " \ 284 "console=${console} " \
273 "usbcore.old_scheme_first=1 " \ 285 "usbcore.old_scheme_first=1 " \
274 "tegraboot=${tegraboot} " \ 286 "tegraboot=${tegraboot} " \
287 "lp0_vec=${lp0size}@${lp0addr} " \
275 "tegrap earlyprintk; "\ 288 "tegrap earlyprintk; "\
276 "bootm ${loadaddr}\0" \ 289 "bootm ${loadaddr}\0" \
277 "nandboot=setenv bootcmd " \ 290 "nandboot=setenv bootcmd " \
278 "run nandargs \\; " \ 291 "run nandargs \\; " \
279 "ymount /flash\\; " \ 292 "ymount /flash\\; " \
280 "yrdm /flash/boot/${bootfile} ${loadaddr}\\; " \ 293 "yrdm /flash/boot/${bootfile} ${loadaddr}\\; " \
281 "yumount /flash\\; " \ 294 "yumount /flash\\; " \
282 "bootm ${loadaddr}\0" \ 295 "bootm ${loadaddr}\0" \
283 "mmcboot=ext2load mmc 0:3 ${loadaddr} /boot/${bootfile}; " \ 296 "mmcboot=ext2load mmc 0:3 ${loadaddr} /boot/${bootfile}; " \
284 "setenv bootargs root=/dev/mmcblk0p3 rw rootwait " \ 297 "setenv bootargs root=/dev/mmcblk0p3 rw rootwait " \
285 "${mem} " \ 298 "${mem} " \
286 "video=${videospec} " \ 299 "video=${videospec} " \
287 "console=${console} " \ 300 "console=${console} " \
288 "usbcore.old_scheme_first=1 " \ 301 "usbcore.old_scheme_first=1 " \
289 "tegraboot=${tegraboot} " \ 302 "tegraboot=${tegraboot} " \
303 "lp0_vec=${lp0size}@${lp0addr} " \
290 "tegrap earlyprintk; "\ 304 "tegrap earlyprintk; "\
291 "bootm ${loadaddr}\0" \ 305 "bootm ${loadaddr}\0" \
292 "nfsboot=setenv bootcmd " \ 306 "nfsboot=setenv bootcmd " \
293 "run nfsargs\\; "\ 307 "run nfsargs\\; "\
294 "tftpboot ${loadaddr}\\;"\ 308 "tftpboot ${loadaddr}\\;"\
295 "bootm ${loadaddr}\0" 309 "bootm ${loadaddr}\0"
296 310
297 /* auto load */ 311 /* auto load */
298 /* try load from usb first, then mmc */ 312 /* try load from usb first, then mmc */
299 #undef CONFIG_BOOTCOMMAND 313 #undef CONFIG_BOOTCOMMAND
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 */ 409 */
396 #define CONFIG_TEGRA2_I2C 410 #define CONFIG_TEGRA2_I2C
397 411
398 #ifdef CONFIG_TEGRA2_I2C 412 #ifdef CONFIG_TEGRA2_I2C
399 #define CONFIG_CMD_I2C 413 #define CONFIG_CMD_I2C
400 #define CONFIG_I2C_MULTI_BUS 1 414 #define CONFIG_I2C_MULTI_BUS 1
401 #define CONFIG_SYS_MAX_I2C_BUS 4 415 #define CONFIG_SYS_MAX_I2C_BUS 4
402 #endif 416 #endif
403 417
404 #endif /* __CONFIG_H */ 418 #endif /* __CONFIG_H */
OLDNEW
« board/tegra2/seaboard/Makefile ('K') | « include/configs/chromeos/tegra2/seaboard/recovery.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698