2 * (C) Copyright 2010,2011
3 * NVIDIA Corporation <www.nvidia.com>
5 * See file CREDITS for list of people who contributed to this
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
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 #ifndef __TEGRA2_COMMON_H
25 #define __TEGRA2_COMMON_H
26 #include <asm/sizes.h>
28 #include "tegra-common.h"
30 #define CONFIG_TEGRA2 /* NVidia Tegra2 core */
35 #define CONFIG_USB_EHCI
36 #define CONFIG_USB_EHCI_TEGRA
38 /* Tegra2 requires USB buffers to be aligned to a word boundary */
39 #define CONFIG_USB_EHCI_DATA_ALIGN 4
42 * This parameter affects a TXFILLTUNING field that controls how much data is
43 * sent to the latency fifo before it is sent to the wire. Without this
44 * parameter, the default (2) causes occasional Data Buffer Errors in OUT
45 * packets depending on the buffer address and size.
47 #define CONFIG_USB_EHCI_TXFIFO_THRESH 10
49 #define CONFIG_EHCI_IS_TDI
50 #define CONFIG_EHCI_DCACHE
51 #define CONFIG_USB_MAX_CONTROLLER_COUNT 3
52 #define CONFIG_USB_STORAGE
53 #define CONFIG_USB_STOR_NO_RETRY
55 #define CONFIG_CMD_USB /* USB Host support */
57 /* partition types and file systems we want */
58 #define CONFIG_DOS_PARTITION
59 #define CONFIG_EFI_PARTITION
60 #define CONFIG_CMD_EXT2
62 /* support USB ethernet adapters */
63 #define CONFIG_USB_HOST_ETHER
64 #define CONFIG_USB_ETHER_ASIX
65 #define CONFIG_USB_ETHER_SMSC95XX
67 /* include default commands */
68 #include <config_cmd_default.h>
70 /* remove unused commands */
71 #undef CONFIG_CMD_FLASH /* flinfo, erase, protect */
72 #undef CONFIG_CMD_FPGA /* FPGA configuration support */
74 #undef CONFIG_CMD_IMLS
75 #undef CONFIG_CMD_NFS /* NFS support */
77 #define CONFIG_CMD_CACHE
78 #define CONFIG_CMD_TIME
83 #define CONFIG_CMD_NET
84 #define CONFIG_NET_MULTI
85 #define CONFIG_CMD_PING
86 #define CONFIG_CMD_DHCP
89 * BOOTP / TFTP options
91 #define CONFIG_BOOTP_SUBNETMASK
92 #define CONFIG_BOOTP_GATEWAY
93 #define CONFIG_BOOTP_HOSTNAME
94 #define CONFIG_BOOTP_BOOTPATH
95 #define CONFIG_TFTP_TSIZE
96 #define CONFIG_TFTP_SPEED
98 #define CONFIG_IPADDR 10.0.0.2
99 #define CONFIG_SERVERIP 10.0.0.1
100 #define CONFIG_BOOTFILE vmlinux.uimg
102 /* turn on command-line edit/hist/auto */
103 #define CONFIG_CMDLINE_EDITING
104 #define CONFIG_COMMAND_HISTORY
105 #define CONFIG_AUTOCOMPLETE
107 #define CONFIG_SYS_NO_FLASH
109 #ifdef CONFIG_TEGRA2_WARMBOOT
110 #define TEGRA_LP0_ADDR 0x1C406000
111 #define TEGRA_LP0_SIZE 0x2000
112 #define TEGRA_LP0_VEC \
113 "lp0_vec=" QUOTE(TEGRA_LP0_SIZE) "@" QUOTE(TEGRA_LP0_ADDR) " "
115 #define TEGRA_LP0_VEC
118 #define CONFIG_LOADADDR 0x408000 /* def. location for kernel */
119 #define CONFIG_BOOTDELAY 0 /* -1 to disable auto boot */
120 #define CONFIG_ZERO_BOOTDELAY_CHECK
122 /* Passed on the kernel command line to specify the console. */
123 #define CONFIG_LINUXCONSOLE "console=ttyS0,115200n8"
126 * Defines the standard boot args; these are used in the vboot case (which
127 * doesn't run regen_all) as well as used as part of regen_all.
129 #define CONFIG_BOOTARGS \
130 CONFIG_LINUXCONSOLE " " \
135 * Extra bootargs used for direct booting, but not for vboot.
136 * - vmalloc >= carveout size + framebuffer size - 32MB
138 #define CONFIG_DIRECT_BOOTARGS \
139 CONFIG_BOOTARGS " " \
142 #define CONFIG_SYS_LOAD_ADDR (0xA00800) /* default */
144 /*-----------------------------------------------------------------------
147 * The stack sizes are set up in start.S using the settings below
149 #define CONFIG_STACKBASE 0x2800000 /* 40MB */
150 #define CONFIG_STACKSIZE 0x20000 /* 128K regular stack*/
152 /*-----------------------------------------------------------------------
153 * Physical Memory Map
155 #define CONFIG_NR_DRAM_BANKS 1
156 #define PHYS_SDRAM_1 TEGRA_SDRC_CS0
157 #define PHYS_SDRAM_1_SIZE 0x20000000 /* 512M */
159 #define CONFIG_SYS_TEXT_BASE 0x00108000
160 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
162 #define BCT_SDRAM_PARAMS_OFFSET (BCT_OFFSET + 0x88)
164 #endif /* __TEGRA2_COMMON_H */