xref: /openbmc/u-boot/include/configs/cyrus.h (revision 9d466f2f)
1 /*
2  * Based on corenet_ds.h
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 #ifndef __CONFIG_H
8 #define __CONFIG_H
9 
10 #if !defined(CONFIG_ARCH_P5020) && !defined(CONFIG_ARCH_P5040)
11 #error Must call Cyrus CONFIG with a specific CPU enabled.
12 #endif
13 
14 #define CONFIG_SDCARD
15 #define CONFIG_FSL_SATA_V2
16 #define CONFIG_PCIE3
17 #define CONFIG_PCIE4
18 #ifdef CONFIG_ARCH_P5020
19 #define CONFIG_SYS_FSL_RAID_ENGINE
20 #define CONFIG_SYS_DPAA_RMAN
21 #endif
22 #define CONFIG_SYS_DPAA_PME
23 
24 /*
25  * Corenet DS style board configuration file
26  */
27 #define CONFIG_RAMBOOT_TEXT_BASE	CONFIG_SYS_TEXT_BASE
28 #define CONFIG_RESET_VECTOR_ADDRESS	0xfffffffc
29 #define CONFIG_SYS_FSL_PBL_PBI board/varisys/cyrus/pbi.cfg
30 #if defined(CONFIG_ARCH_P5020)
31 #define CONFIG_SYS_CLK_FREQ 133000000
32 #define CONFIG_SYS_FSL_PBL_RCW board/varisys/cyrus/rcw_p5020_v2.cfg
33 #elif defined(CONFIG_ARCH_P5040)
34 #define CONFIG_SYS_CLK_FREQ 100000000
35 #define CONFIG_SYS_FSL_PBL_RCW board/varisys/cyrus/rcw_p5040.cfg
36 #endif
37 
38 /* High Level Configuration Options */
39 #define CONFIG_SYS_BOOK3E_HV		/* Category E.HV supported */
40 #define CONFIG_MP			/* support multiple processors */
41 
42 #define CONFIG_SYS_MMC_MAX_DEVICE     1
43 
44 #define CONFIG_SYS_FSL_CPC		/* Corenet Platform Cache */
45 #define CONFIG_SYS_NUM_CPC		CONFIG_SYS_NUM_DDR_CTLRS
46 #define CONFIG_PCIE1			/* PCIE controller 1 */
47 #define CONFIG_PCIE2			/* PCIE controller 2 */
48 #define CONFIG_FSL_PCI_INIT		/* Use common FSL init code */
49 #define CONFIG_SYS_PCI_64BIT		/* enable 64-bit PCI resources */
50 
51 #define CONFIG_ENV_OVERWRITE
52 
53 #if defined(CONFIG_SDCARD)
54 #define CONFIG_SYS_EXTRA_ENV_RELOC
55 #define CONFIG_FSL_FIXED_MMC_LOCATION
56 #define CONFIG_SYS_MMC_ENV_DEV          0
57 #define CONFIG_ENV_SIZE			0x2000
58 #define CONFIG_ENV_OFFSET		(512 * 1658)
59 #endif
60 
61 /*
62  * These can be toggled for performance analysis, otherwise use default.
63  */
64 #define CONFIG_SYS_CACHE_STASHING
65 #define CONFIG_BACKSIDE_L2_CACHE
66 #define CONFIG_SYS_INIT_L2CSR0		L2CSR0_L2E
67 #define CONFIG_BTB			/* toggle branch predition */
68 #define	CONFIG_DDR_ECC
69 #ifdef CONFIG_DDR_ECC
70 #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER
71 #define CONFIG_MEM_INIT_VALUE		0xdeadbeef
72 #endif
73 
74 #define CONFIG_ENABLE_36BIT_PHYS
75 
76 #ifdef CONFIG_PHYS_64BIT
77 #define CONFIG_ADDR_MAP
78 #define CONFIG_SYS_NUM_ADDR_MAP		64	/* number of TLB1 entries */
79 #endif
80 
81 /* test POST memory test */
82 #undef CONFIG_POST
83 #define CONFIG_SYS_MEMTEST_START	0x00200000	/* memtest works on */
84 #define CONFIG_SYS_MEMTEST_END		0x00400000
85 #define CONFIG_SYS_ALT_MEMTEST
86 
87 /*
88  *  Config the L3 Cache as L3 SRAM
89  */
90 #define CONFIG_SYS_INIT_L3_ADDR		CONFIG_RAMBOOT_TEXT_BASE
91 #ifdef CONFIG_PHYS_64BIT
92 #define CONFIG_SYS_INIT_L3_ADDR_PHYS	(0xf00000000ull | CONFIG_RAMBOOT_TEXT_BASE)
93 #else
94 #define CONFIG_SYS_INIT_L3_ADDR_PHYS	CONFIG_SYS_INIT_L3_ADDR
95 #endif
96 #define CONFIG_SYS_L3_SIZE		(1024 << 10)
97 #define CONFIG_SYS_INIT_L3_END (CONFIG_SYS_INIT_L3_ADDR + CONFIG_SYS_L3_SIZE)
98 
99 #ifdef CONFIG_PHYS_64BIT
100 #define CONFIG_SYS_DCSRBAR		0xf0000000
101 #define CONFIG_SYS_DCSRBAR_PHYS		0xf00000000ull
102 #endif
103 
104 /*
105  * DDR Setup
106  */
107 #define CONFIG_VERY_BIG_RAM
108 #define CONFIG_SYS_DDR_SDRAM_BASE	0x00000000
109 #define CONFIG_SYS_SDRAM_BASE		CONFIG_SYS_DDR_SDRAM_BASE
110 
111 #define CONFIG_DIMM_SLOTS_PER_CTLR	1
112 #define CONFIG_CHIP_SELECTS_PER_CTRL	(4 * CONFIG_DIMM_SLOTS_PER_CTLR)
113 
114 #define CONFIG_DDR_SPD
115 
116 #define CONFIG_SYS_SPD_BUS_NUM	1
117 #define SPD_EEPROM_ADDRESS1	0x51
118 #define SPD_EEPROM_ADDRESS2	0x52
119 #define CONFIG_SYS_SDRAM_SIZE	4096	/* for fixed parameter use */
120 
121 /*
122  * Local Bus Definitions
123  */
124 
125 #define CONFIG_SYS_LBC0_BASE		0xe0000000 /* Start of LBC Registers */
126 #ifdef CONFIG_PHYS_64BIT
127 #define CONFIG_SYS_LBC0_BASE_PHYS	0xfe0000000ull
128 #else
129 #define CONFIG_SYS_LBC0_BASE_PHYS	CONFIG_SYS_LBC0_BASE
130 #endif
131 
132 #define CONFIG_SYS_LBC1_BASE		0xe1000000 /* Start of LBC Registers */
133 #ifdef CONFIG_PHYS_64BIT
134 #define CONFIG_SYS_LBC1_BASE_PHYS	0xfe1000000ull
135 #else
136 #define CONFIG_SYS_LBC1_BASE_PHYS	CONFIG_SYS_LBC1_BASE
137 #endif
138 
139 /* Set the local bus clock 1/16 of platform clock */
140 #define CONFIG_SYS_LBC_LCRR		(LCRR_CLKDIV_16 | LCRR_EADC_1)
141 
142 #define CONFIG_SYS_BR0_PRELIM \
143 (BR_PHYS_ADDR(CONFIG_SYS_LBC0_BASE_PHYS) | BR_PS_16 | BR_V)
144 #define CONFIG_SYS_BR1_PRELIM \
145 (BR_PHYS_ADDR(CONFIG_SYS_LBC1_BASE_PHYS) | BR_PS_16 | BR_V)
146 
147 #define CONFIG_SYS_OR0_PRELIM	0xfff00010
148 #define CONFIG_SYS_OR1_PRELIM	0xfff00010
149 
150 #define CONFIG_SYS_MONITOR_BASE		CONFIG_SYS_TEXT_BASE	/* start of monitor */
151 
152 #if defined(CONFIG_RAMBOOT_PBL)
153 #define CONFIG_SYS_RAMBOOT
154 #endif
155 
156 #define CONFIG_BOARD_EARLY_INIT_R	/* call board_early_init_r function */
157 #define CONFIG_MISC_INIT_R
158 
159 #define CONFIG_HWCONFIG
160 
161 /* define to use L1 as initial stack */
162 #define CONFIG_L1_INIT_RAM
163 #define CONFIG_SYS_INIT_RAM_LOCK
164 #define CONFIG_SYS_INIT_RAM_ADDR	0xfdd00000	/* Initial L1 address */
165 #ifdef CONFIG_PHYS_64BIT
166 #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH 0xf
167 #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW CONFIG_SYS_INIT_RAM_ADDR
168 /* The assembler doesn't like typecast */
169 #define CONFIG_SYS_INIT_RAM_ADDR_PHYS \
170 	((CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH * 1ull << 32) | \
171 	  CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW)
172 #else
173 #define CONFIG_SYS_INIT_RAM_ADDR_PHYS	CONFIG_SYS_INIT_RAM_ADDR /* Initial L1 address */
174 #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH 0
175 #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW CONFIG_SYS_INIT_RAM_ADDR_PHYS
176 #endif
177 #define CONFIG_SYS_INIT_RAM_SIZE		0x00004000	/* Size of used area in RAM */
178 
179 #define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
180 #define CONFIG_SYS_INIT_SP_OFFSET	CONFIG_SYS_GBL_DATA_OFFSET
181 
182 #define CONFIG_SYS_MONITOR_LEN		(768 * 1024)
183 #define CONFIG_SYS_MALLOC_LEN		(1024 * 1024)	/* Reserved for malloc */
184 
185 /* Serial Port - controlled on board with jumper J8
186  * open - index 2
187  * shorted - index 1
188  */
189 #define CONFIG_SYS_NS16550_SERIAL
190 #define CONFIG_SYS_NS16550_REG_SIZE	1
191 #define CONFIG_SYS_NS16550_CLK		(get_bus_freq(0)/2)
192 
193 #define CONFIG_SYS_BAUDRATE_TABLE	\
194 {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
195 
196 #define CONFIG_SYS_NS16550_COM1	(CONFIG_SYS_CCSRBAR+0x11C500)
197 #define CONFIG_SYS_NS16550_COM2	(CONFIG_SYS_CCSRBAR+0x11C600)
198 #define CONFIG_SYS_NS16550_COM3	(CONFIG_SYS_CCSRBAR+0x11D500)
199 #define CONFIG_SYS_NS16550_COM4	(CONFIG_SYS_CCSRBAR+0x11D600)
200 
201 /* I2C */
202 #define CONFIG_SYS_I2C
203 #define CONFIG_SYS_I2C_FSL
204 #define CONFIG_I2C_MULTI_BUS
205 #define CONFIG_I2C_CMD_TREE
206 #define CONFIG_SYS_FSL_I2C_SPEED		400000	/* I2C speed and slave address */
207 #define CONFIG_SYS_FSL_I2C_SLAVE		0x7F
208 #define CONFIG_SYS_FSL_I2C_OFFSET		0x118000
209 #define CONFIG_SYS_FSL_I2C2_SPEED		400000	/* I2C speed and slave address */
210 #define CONFIG_SYS_FSL_I2C2_SLAVE		0x7F
211 #define CONFIG_SYS_FSL_I2C2_OFFSET		0x118100
212 #define CONFIG_SYS_FSL_I2C3_SPEED		400000	/* I2C speed and slave address */
213 #define CONFIG_SYS_FSL_I2C3_SLAVE		0x7F
214 #define CONFIG_SYS_FSL_I2C3_OFFSET		0x119000
215 #define CONFIG_SYS_FSL_I2C4_SPEED		400000	/* I2C speed and slave address */
216 #define CONFIG_SYS_FSL_I2C4_SLAVE		0x7F
217 #define CONFIG_SYS_FSL_I2C4_OFFSET		0x119100
218 
219 #define CONFIG_ID_EEPROM
220 #define CONFIG_SYS_I2C_EEPROM_NXID
221 #define CONFIG_SYS_EEPROM_BUS_NUM	0
222 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN	1
223 #define CONFIG_SYS_I2C_EEPROM_ADDR	0x57
224 
225 #define CONFIG_SYS_I2C_GENERIC_MAC
226 #define CONFIG_SYS_I2C_MAC1_BUS 3
227 #define CONFIG_SYS_I2C_MAC1_CHIP_ADDR 0x57
228 #define CONFIG_SYS_I2C_MAC1_DATA_ADDR 0xf2
229 #define CONFIG_SYS_I2C_MAC2_BUS 0
230 #define CONFIG_SYS_I2C_MAC2_CHIP_ADDR 0x50
231 #define CONFIG_SYS_I2C_MAC2_DATA_ADDR 0xfa
232 
233 #define CONFIG_RTC_MCP79411		1
234 #define CONFIG_SYS_RTC_BUS_NUM		3
235 #define CONFIG_SYS_I2C_RTC_ADDR		0x6f
236 
237 /*
238  * eSPI - Enhanced SPI
239  */
240 
241 /*
242  * General PCI
243  * Memory space is mapped 1-1, but I/O space must start from 0.
244  */
245 
246 /* controller 1, direct to uli, tgtid 3, Base address 20000 */
247 #define CONFIG_SYS_PCIE1_MEM_VIRT	0x80000000
248 #ifdef CONFIG_PHYS_64BIT
249 #define CONFIG_SYS_PCIE1_MEM_BUS	0xe0000000
250 #define CONFIG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
251 #else
252 #define CONFIG_SYS_PCIE1_MEM_BUS	0x80000000
253 #define CONFIG_SYS_PCIE1_MEM_PHYS	0x80000000
254 #endif
255 #define CONFIG_SYS_PCIE1_MEM_SIZE	0x20000000	/* 512M */
256 #define CONFIG_SYS_PCIE1_IO_VIRT	0xf8000000
257 #define CONFIG_SYS_PCIE1_IO_BUS		0x00000000
258 #ifdef CONFIG_PHYS_64BIT
259 #define CONFIG_SYS_PCIE1_IO_PHYS	0xff8000000ull
260 #else
261 #define CONFIG_SYS_PCIE1_IO_PHYS	0xf8000000
262 #endif
263 #define CONFIG_SYS_PCIE1_IO_SIZE	0x00010000	/* 64k */
264 
265 /* controller 2, Slot 2, tgtid 2, Base address 201000 */
266 #define CONFIG_SYS_PCIE2_MEM_VIRT	0xa0000000
267 #ifdef CONFIG_PHYS_64BIT
268 #define CONFIG_SYS_PCIE2_MEM_BUS	0xe0000000
269 #define CONFIG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
270 #else
271 #define CONFIG_SYS_PCIE2_MEM_BUS	0xa0000000
272 #define CONFIG_SYS_PCIE2_MEM_PHYS	0xa0000000
273 #endif
274 #define CONFIG_SYS_PCIE2_MEM_SIZE	0x20000000	/* 512M */
275 #define CONFIG_SYS_PCIE2_IO_VIRT	0xf8010000
276 #define CONFIG_SYS_PCIE2_IO_BUS		0x00000000
277 #ifdef CONFIG_PHYS_64BIT
278 #define CONFIG_SYS_PCIE2_IO_PHYS	0xff8010000ull
279 #else
280 #define CONFIG_SYS_PCIE2_IO_PHYS	0xf8010000
281 #endif
282 #define CONFIG_SYS_PCIE2_IO_SIZE	0x00010000	/* 64k */
283 
284 /* controller 3, Slot 1, tgtid 1, Base address 202000 */
285 #define CONFIG_SYS_PCIE3_MEM_VIRT	0xc0000000
286 #ifdef CONFIG_PHYS_64BIT
287 #define CONFIG_SYS_PCIE3_MEM_BUS	0xe0000000
288 #define CONFIG_SYS_PCIE3_MEM_PHYS	0xc40000000ull
289 #else
290 #define CONFIG_SYS_PCIE3_MEM_BUS	0xc0000000
291 #define CONFIG_SYS_PCIE3_MEM_PHYS	0xc0000000
292 #endif
293 #define CONFIG_SYS_PCIE3_MEM_SIZE	0x20000000	/* 512M */
294 #define CONFIG_SYS_PCIE3_IO_VIRT	0xf8020000
295 #define CONFIG_SYS_PCIE3_IO_BUS		0x00000000
296 #ifdef CONFIG_PHYS_64BIT
297 #define CONFIG_SYS_PCIE3_IO_PHYS	0xff8020000ull
298 #else
299 #define CONFIG_SYS_PCIE3_IO_PHYS	0xf8020000
300 #endif
301 #define CONFIG_SYS_PCIE3_IO_SIZE	0x00010000	/* 64k */
302 
303 /* controller 4, Base address 203000 */
304 #define CONFIG_SYS_PCIE4_MEM_BUS	0xe0000000
305 #define CONFIG_SYS_PCIE4_MEM_PHYS	0xc60000000ull
306 #define CONFIG_SYS_PCIE4_MEM_SIZE	0x20000000	/* 512M */
307 #define CONFIG_SYS_PCIE4_IO_BUS		0x00000000
308 #define CONFIG_SYS_PCIE4_IO_PHYS	0xff8030000ull
309 #define CONFIG_SYS_PCIE4_IO_SIZE	0x00010000	/* 64k */
310 
311 /* Qman/Bman */
312 #define CONFIG_SYS_BMAN_NUM_PORTALS	10
313 #define CONFIG_SYS_BMAN_MEM_BASE	0xf4000000
314 #ifdef CONFIG_PHYS_64BIT
315 #define CONFIG_SYS_BMAN_MEM_PHYS	0xff4000000ull
316 #else
317 #define CONFIG_SYS_BMAN_MEM_PHYS	CONFIG_SYS_BMAN_MEM_BASE
318 #endif
319 #define CONFIG_SYS_BMAN_MEM_SIZE	0x00200000
320 #define CONFIG_SYS_BMAN_SP_CENA_SIZE    0x4000
321 #define CONFIG_SYS_BMAN_SP_CINH_SIZE    0x1000
322 #define CONFIG_SYS_BMAN_CENA_BASE       CONFIG_SYS_BMAN_MEM_BASE
323 #define CONFIG_SYS_BMAN_CENA_SIZE       (CONFIG_SYS_BMAN_MEM_SIZE >> 1)
324 #define CONFIG_SYS_BMAN_CINH_BASE       (CONFIG_SYS_BMAN_MEM_BASE + \
325 					 CONFIG_SYS_BMAN_CENA_SIZE)
326 #define CONFIG_SYS_BMAN_CINH_SIZE       (CONFIG_SYS_BMAN_MEM_SIZE >> 1)
327 #define CONFIG_SYS_BMAN_SWP_ISDR_REG   0xE08
328 #define CONFIG_SYS_QMAN_NUM_PORTALS	10
329 #define CONFIG_SYS_QMAN_MEM_BASE	0xf4200000
330 #ifdef CONFIG_PHYS_64BIT
331 #define CONFIG_SYS_QMAN_MEM_PHYS	0xff4200000ull
332 #else
333 #define CONFIG_SYS_QMAN_MEM_PHYS	CONFIG_SYS_QMAN_MEM_BASE
334 #endif
335 #define CONFIG_SYS_QMAN_MEM_SIZE	0x00200000
336 #define CONFIG_SYS_QMAN_SP_CENA_SIZE    0x4000
337 #define CONFIG_SYS_QMAN_SP_CINH_SIZE    0x1000
338 #define CONFIG_SYS_QMAN_CENA_BASE       CONFIG_SYS_QMAN_MEM_BASE
339 #define CONFIG_SYS_QMAN_CENA_SIZE       (CONFIG_SYS_QMAN_MEM_SIZE >> 1)
340 #define CONFIG_SYS_QMAN_CINH_BASE       (CONFIG_SYS_QMAN_MEM_BASE + \
341 					  CONFIG_SYS_QMAN_CENA_SIZE)
342 #define CONFIG_SYS_QMAN_CINH_SIZE       (CONFIG_SYS_QMAN_MEM_SIZE >> 1)
343 #define CONFIG_SYS_QMAN_SWP_ISDR_REG   0xE08
344 
345 #define CONFIG_SYS_DPAA_FMAN
346 /* Default address of microcode for the Linux Fman driver */
347 /*
348  * PBL SD boot image should stored at 0x1000(8 blocks), the size of the image is
349  * about 825KB (1650 blocks), Env is stored after the image, and the env size is
350  * 0x2000 (16 blocks), 8 + 1650 + 16 = 1674, enlarge it to 1680.
351  */
352 #define CONFIG_SYS_QE_FMAN_FW_IN_MMC
353 #define CONFIG_SYS_FMAN_FW_ADDR	(512 * 1680)
354 
355 #define CONFIG_SYS_QE_FMAN_FW_LENGTH	0x10000
356 #define CONFIG_SYS_FDT_PAD		(0x3000 + CONFIG_SYS_QE_FMAN_FW_LENGTH)
357 
358 #ifdef CONFIG_SYS_DPAA_FMAN
359 #define CONFIG_FMAN_ENET
360 #endif
361 
362 #ifdef CONFIG_PCI
363 #define CONFIG_PCI_INDIRECT_BRIDGE
364 
365 #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup */
366 #endif	/* CONFIG_PCI */
367 
368 /* SATA */
369 #ifdef CONFIG_FSL_SATA_V2
370 #define CONFIG_SYS_SATA_MAX_DEVICE	2
371 #define CONFIG_SATA1
372 #define CONFIG_SYS_SATA1		CONFIG_SYS_MPC85xx_SATA1_ADDR
373 #define CONFIG_SYS_SATA1_FLAGS		FLAGS_DMA
374 #define CONFIG_SATA2
375 #define CONFIG_SYS_SATA2		CONFIG_SYS_MPC85xx_SATA2_ADDR
376 #define CONFIG_SYS_SATA2_FLAGS		FLAGS_DMA
377 
378 #define CONFIG_LBA48
379 #endif
380 
381 #ifdef CONFIG_FMAN_ENET
382 #define CONFIG_SYS_TBIPA_VALUE	8
383 #define CONFIG_MII		/* MII PHY management */
384 #define CONFIG_ETHPRIME		"FM1@DTSEC4"
385 #endif
386 
387 /*
388  * Environment
389  */
390 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
391 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
392 
393 /*
394  * USB
395  */
396 #define CONFIG_HAS_FSL_DR_USB
397 #define CONFIG_HAS_FSL_MPH_USB
398 
399 #if defined(CONFIG_HAS_FSL_DR_USB) || defined(CONFIG_HAS_FSL_MPH_USB)
400 #define CONFIG_USB_EHCI_FSL
401 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
402 #define CONFIG_EHCI_IS_TDI
403  /* _VIA_CONTROL_EP  */
404 #endif
405 
406 #ifdef CONFIG_MMC
407 #define CONFIG_FSL_ESDHC
408 #define CONFIG_SYS_FSL_ESDHC_ADDR       CONFIG_SYS_MPC85xx_ESDHC_ADDR
409 #define CONFIG_SYS_FSL_ESDHC_BROKEN_TIMEOUT
410 #endif
411 
412 /*
413  * Miscellaneous configurable options
414  */
415 #define CONFIG_SYS_LOAD_ADDR	0x2000000	/* default load address */
416 
417 /*
418  * For booting Linux, the board info and command line data
419  * have to be in the first 64 MB of memory, since this is
420  * the maximum mapped by the Linux kernel during initialization.
421  */
422 #define CONFIG_SYS_BOOTMAPSZ	(64 << 20)	/* Initial Memory map for Linux*/
423 #define CONFIG_SYS_BOOTM_LEN	(64 << 20)	/* Increase max gunzip size */
424 
425 #ifdef CONFIG_CMD_KGDB
426 #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */
427 #endif
428 
429 /*
430  * Environment Configuration
431  */
432 #define CONFIG_ROOTPATH		"/opt/nfsroot"
433 #define CONFIG_BOOTFILE		"uImage"
434 #define CONFIG_UBOOTPATH	u-boot.bin	/* U-Boot image on TFTP server */
435 
436 /* default location for tftp and bootm */
437 #define CONFIG_LOADADDR		1000000
438 
439 #define __USB_PHY_TYPE	utmi
440 
441 #define	CONFIG_EXTRA_ENV_SETTINGS \
442 "hwconfig=fsl_ddr:ctlr_intlv=cacheline,"		\
443 "bank_intlv=cs0_cs1;"					\
444 "usb1:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) ";"\
445 "usb2:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) "\0"\
446 "netdev=eth0\0"						\
447 "uboot=" __stringify(CONFIG_UBOOTPATH) "\0"			\
448 "ubootaddr=" __stringify(CONFIG_SYS_TEXT_BASE) "\0"			\
449 "consoledev=ttyS0\0"					\
450 "ramdiskaddr=2000000\0"					\
451 "fdtaddr=1e00000\0"					\
452 "bdev=sda3\0"
453 
454 #define CONFIG_HDBOOT					\
455 "setenv bootargs root=/dev/$bdev rw "		\
456 "console=$consoledev,$baudrate $othbootargs;"	\
457 "tftp $loadaddr $bootfile;"			\
458 "tftp $fdtaddr $fdtfile;"			\
459 "bootm $loadaddr - $fdtaddr"
460 
461 #define CONFIG_NFSBOOTCOMMAND			\
462 "setenv bootargs root=/dev/nfs rw "	\
463 "nfsroot=$serverip:$rootpath "		\
464 "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
465 "console=$consoledev,$baudrate $othbootargs;"	\
466 "tftp $loadaddr $bootfile;"		\
467 "tftp $fdtaddr $fdtfile;"		\
468 "bootm $loadaddr - $fdtaddr"
469 
470 #define CONFIG_RAMBOOTCOMMAND				\
471 "setenv bootargs root=/dev/ram rw "		\
472 "console=$consoledev,$baudrate $othbootargs;"	\
473 "tftp $ramdiskaddr $ramdiskfile;"		\
474 "tftp $loadaddr $bootfile;"			\
475 "tftp $fdtaddr $fdtfile;"			\
476 "bootm $loadaddr $ramdiskaddr $fdtaddr"
477 
478 #define CONFIG_BOOTCOMMAND		CONFIG_HDBOOT
479 
480 #include <asm/fsl_secure_boot.h>
481 
482 #ifdef CONFIG_SECURE_BOOT
483 #endif
484 
485 #endif	/* __CONFIG_H */
486