]> git.ipfire.org Git - people/ms/u-boot.git/blob - include/configs/ls1021atwr.h
usb: host: Move CONFIG_XHCI_FSL to Kconfig
[people/ms/u-boot.git] / include / configs / ls1021atwr.h
1 /*
2 * Copyright 2014 Freescale Semiconductor, Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7 #ifndef __CONFIG_H
8 #define __CONFIG_H
9
10 #define CONFIG_ARMV7_PSCI_1_0
11
12 #define CONFIG_ARMV7_SECURE_BASE OCRAM_BASE_S_ADDR
13
14 #define CONFIG_SYS_FSL_CLK
15
16 #define CONFIG_SKIP_LOWLEVEL_INIT
17 #define CONFIG_DEEP_SLEEP
18
19 /*
20 * Size of malloc() pool
21 */
22 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 16 * 1024 * 1024)
23
24 #define CONFIG_SYS_INIT_RAM_ADDR OCRAM_BASE_ADDR
25 #define CONFIG_SYS_INIT_RAM_SIZE OCRAM_SIZE
26
27 /*
28 * USB
29 */
30
31 /*
32 * EHCI Support - disbaled by default as
33 * there is no signal coming out of soc on
34 * this board for this controller. However,
35 * the silicon still has this controller,
36 * and anyone can use this controller by
37 * taking signals out on their board.
38 */
39
40 /*#define CONFIG_HAS_FSL_DR_USB*/
41
42 #ifdef CONFIG_HAS_FSL_DR_USB
43 #define CONFIG_USB_EHCI_FSL
44 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
45 #endif
46
47 /* XHCI Support - enabled by default */
48 #define CONFIG_USB_MAX_CONTROLLER_COUNT 1
49
50 #define CONFIG_SYS_CLK_FREQ 100000000
51 #define CONFIG_DDR_CLK_FREQ 100000000
52
53 #define DDR_SDRAM_CFG 0x470c0008
54 #define DDR_CS0_BNDS 0x008000bf
55 #define DDR_CS0_CONFIG 0x80014302
56 #define DDR_TIMING_CFG_0 0x50550004
57 #define DDR_TIMING_CFG_1 0xbcb38c56
58 #define DDR_TIMING_CFG_2 0x0040d120
59 #define DDR_TIMING_CFG_3 0x010e1000
60 #define DDR_TIMING_CFG_4 0x00000001
61 #define DDR_TIMING_CFG_5 0x03401400
62 #define DDR_SDRAM_CFG_2 0x00401010
63 #define DDR_SDRAM_MODE 0x00061c60
64 #define DDR_SDRAM_MODE_2 0x00180000
65 #define DDR_SDRAM_INTERVAL 0x18600618
66 #define DDR_DDR_WRLVL_CNTL 0x8655f605
67 #define DDR_DDR_WRLVL_CNTL_2 0x05060607
68 #define DDR_DDR_WRLVL_CNTL_3 0x05050505
69 #define DDR_DDR_CDR1 0x80040000
70 #define DDR_DDR_CDR2 0x00000001
71 #define DDR_SDRAM_CLK_CNTL 0x02000000
72 #define DDR_DDR_ZQ_CNTL 0x89080600
73 #define DDR_CS0_CONFIG_2 0
74 #define DDR_SDRAM_CFG_MEM_EN 0x80000000
75 #define SDRAM_CFG2_D_INIT 0x00000010
76 #define DDR_CDR2_VREF_TRAIN_EN 0x00000080
77 #define SDRAM_CFG2_FRC_SR 0x80000000
78 #define SDRAM_CFG_BI 0x00000001
79
80 #ifdef CONFIG_RAMBOOT_PBL
81 #define CONFIG_SYS_FSL_PBL_PBI board/freescale/ls1021atwr/ls102xa_pbi.cfg
82 #endif
83
84 #ifdef CONFIG_SD_BOOT
85 #ifdef CONFIG_SD_BOOT_QSPI
86 #define CONFIG_SYS_FSL_PBL_RCW \
87 board/freescale/ls1021atwr/ls102xa_rcw_sd_qspi.cfg
88 #else
89 #define CONFIG_SYS_FSL_PBL_RCW \
90 board/freescale/ls1021atwr/ls102xa_rcw_sd_ifc.cfg
91 #endif
92 #define CONFIG_SPL_FRAMEWORK
93
94 #ifdef CONFIG_SECURE_BOOT
95 /*
96 * HDR would be appended at end of image and copied to DDR along
97 * with U-Boot image.
98 */
99 #define CONFIG_U_BOOT_HDR_SIZE (16 << 10)
100 #endif /* ifdef CONFIG_SECURE_BOOT */
101
102 #define CONFIG_SPL_TEXT_BASE 0x10000000
103 #define CONFIG_SPL_MAX_SIZE 0x1a000
104 #define CONFIG_SPL_STACK 0x1001d000
105 #define CONFIG_SPL_PAD_TO 0x1c000
106 #define CONFIG_SYS_TEXT_BASE 0x82000000
107
108 #define CONFIG_SYS_SPL_MALLOC_START (CONFIG_SYS_TEXT_BASE + \
109 CONFIG_SYS_MONITOR_LEN)
110 #define CONFIG_SYS_SPL_MALLOC_SIZE 0x100000
111 #define CONFIG_SPL_BSS_START_ADDR 0x80100000
112 #define CONFIG_SPL_BSS_MAX_SIZE 0x80000
113
114 #ifdef CONFIG_U_BOOT_HDR_SIZE
115 /*
116 * HDR would be appended at end of image and copied to DDR along
117 * with U-Boot image. Here u-boot max. size is 512K. So if binary
118 * size increases then increase this size in case of secure boot as
119 * it uses raw u-boot image instead of fit image.
120 */
121 #define CONFIG_SYS_MONITOR_LEN (0x100000 + CONFIG_U_BOOT_HDR_SIZE)
122 #else
123 #define CONFIG_SYS_MONITOR_LEN 0x100000
124 #endif /* ifdef CONFIG_U_BOOT_HDR_SIZE */
125 #endif
126
127 #ifdef CONFIG_QSPI_BOOT
128 #define CONFIG_SYS_TEXT_BASE 0x40100000
129 #endif
130
131 #ifndef CONFIG_SYS_TEXT_BASE
132 #define CONFIG_SYS_TEXT_BASE 0x60100000
133 #endif
134
135 #define CONFIG_NR_DRAM_BANKS 1
136 #define PHYS_SDRAM 0x80000000
137 #define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024)
138
139 #define CONFIG_SYS_DDR_SDRAM_BASE 0x80000000UL
140 #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
141
142 #if !defined(CONFIG_SD_BOOT) && !defined(CONFIG_NAND_BOOT) && \
143 !defined(CONFIG_QSPI_BOOT)
144 #define CONFIG_U_QE
145 #define CONFIG_SYS_QE_FMAN_FW_IN_NOR
146 #endif
147
148 /*
149 * IFC Definitions
150 */
151 #if !defined(CONFIG_QSPI_BOOT) && !defined(CONFIG_SD_BOOT_QSPI)
152 #define CONFIG_FSL_IFC
153 #define CONFIG_SYS_FLASH_BASE 0x60000000
154 #define CONFIG_SYS_FLASH_BASE_PHYS CONFIG_SYS_FLASH_BASE
155
156 #define CONFIG_SYS_NOR0_CSPR_EXT (0x0)
157 #define CONFIG_SYS_NOR0_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | \
158 CSPR_PORT_SIZE_16 | \
159 CSPR_MSEL_NOR | \
160 CSPR_V)
161 #define CONFIG_SYS_NOR_AMASK IFC_AMASK(128 * 1024 * 1024)
162
163 /* NOR Flash Timing Params */
164 #define CONFIG_SYS_NOR_CSOR (CSOR_NOR_ADM_SHIFT(4) | \
165 CSOR_NOR_TRHZ_80)
166 #define CONFIG_SYS_NOR_FTIM0 (FTIM0_NOR_TACSE(0x4) | \
167 FTIM0_NOR_TEADC(0x5) | \
168 FTIM0_NOR_TAVDS(0x0) | \
169 FTIM0_NOR_TEAHC(0x5))
170 #define CONFIG_SYS_NOR_FTIM1 (FTIM1_NOR_TACO(0x35) | \
171 FTIM1_NOR_TRAD_NOR(0x1A) | \
172 FTIM1_NOR_TSEQRAD_NOR(0x13))
173 #define CONFIG_SYS_NOR_FTIM2 (FTIM2_NOR_TCS(0x4) | \
174 FTIM2_NOR_TCH(0x4) | \
175 FTIM2_NOR_TWP(0x1c) | \
176 FTIM2_NOR_TWPH(0x0e))
177 #define CONFIG_SYS_NOR_FTIM3 0
178
179 #define CONFIG_FLASH_CFI_DRIVER
180 #define CONFIG_SYS_FLASH_CFI
181 #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
182 #define CONFIG_SYS_FLASH_QUIET_TEST
183 #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */
184
185 #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* number of banks */
186 #define CONFIG_SYS_MAX_FLASH_SECT 1024 /* sectors per device */
187 #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */
188 #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */
189
190 #define CONFIG_SYS_FLASH_EMPTY_INFO
191 #define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE_PHYS }
192
193 #define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS
194 #define CONFIG_SYS_WRITE_SWAPPED_DATA
195 #endif
196
197 /* CPLD */
198
199 #define CONFIG_SYS_CPLD_BASE 0x7fb00000
200 #define CPLD_BASE_PHYS CONFIG_SYS_CPLD_BASE
201
202 #define CONFIG_SYS_FPGA_CSPR_EXT (0x0)
203 #define CONFIG_SYS_FPGA_CSPR (CSPR_PHYS_ADDR(CPLD_BASE_PHYS) | \
204 CSPR_PORT_SIZE_8 | \
205 CSPR_MSEL_GPCM | \
206 CSPR_V)
207 #define CONFIG_SYS_FPGA_AMASK IFC_AMASK(64 * 1024)
208 #define CONFIG_SYS_FPGA_CSOR (CSOR_NOR_ADM_SHIFT(4) | \
209 CSOR_NOR_NOR_MODE_AVD_NOR | \
210 CSOR_NOR_TRHZ_80)
211
212 /* CPLD Timing parameters for IFC GPCM */
213 #define CONFIG_SYS_FPGA_FTIM0 (FTIM0_GPCM_TACSE(0xf) | \
214 FTIM0_GPCM_TEADC(0xf) | \
215 FTIM0_GPCM_TEAHC(0xf))
216 #define CONFIG_SYS_FPGA_FTIM1 (FTIM1_GPCM_TACO(0xff) | \
217 FTIM1_GPCM_TRAD(0x3f))
218 #define CONFIG_SYS_FPGA_FTIM2 (FTIM2_GPCM_TCS(0xf) | \
219 FTIM2_GPCM_TCH(0xf) | \
220 FTIM2_GPCM_TWP(0xff))
221 #define CONFIG_SYS_FPGA_FTIM3 0x0
222 #define CONFIG_SYS_CSPR0_EXT CONFIG_SYS_NOR0_CSPR_EXT
223 #define CONFIG_SYS_CSPR0 CONFIG_SYS_NOR0_CSPR
224 #define CONFIG_SYS_AMASK0 CONFIG_SYS_NOR_AMASK
225 #define CONFIG_SYS_CSOR0 CONFIG_SYS_NOR_CSOR
226 #define CONFIG_SYS_CS0_FTIM0 CONFIG_SYS_NOR_FTIM0
227 #define CONFIG_SYS_CS0_FTIM1 CONFIG_SYS_NOR_FTIM1
228 #define CONFIG_SYS_CS0_FTIM2 CONFIG_SYS_NOR_FTIM2
229 #define CONFIG_SYS_CS0_FTIM3 CONFIG_SYS_NOR_FTIM3
230 #define CONFIG_SYS_CSPR1_EXT CONFIG_SYS_FPGA_CSPR_EXT
231 #define CONFIG_SYS_CSPR1 CONFIG_SYS_FPGA_CSPR
232 #define CONFIG_SYS_AMASK1 CONFIG_SYS_FPGA_AMASK
233 #define CONFIG_SYS_CSOR1 CONFIG_SYS_FPGA_CSOR
234 #define CONFIG_SYS_CS1_FTIM0 CONFIG_SYS_FPGA_FTIM0
235 #define CONFIG_SYS_CS1_FTIM1 CONFIG_SYS_FPGA_FTIM1
236 #define CONFIG_SYS_CS1_FTIM2 CONFIG_SYS_FPGA_FTIM2
237 #define CONFIG_SYS_CS1_FTIM3 CONFIG_SYS_FPGA_FTIM3
238
239 /*
240 * Serial Port
241 */
242 #ifdef CONFIG_LPUART
243 #define CONFIG_LPUART_32B_REG
244 #else
245 #define CONFIG_CONS_INDEX 1
246 #define CONFIG_SYS_NS16550_SERIAL
247 #ifndef CONFIG_DM_SERIAL
248 #define CONFIG_SYS_NS16550_REG_SIZE 1
249 #endif
250 #define CONFIG_SYS_NS16550_CLK get_serial_clock()
251 #endif
252
253 /*
254 * I2C
255 */
256 #define CONFIG_SYS_I2C
257 #define CONFIG_SYS_I2C_MXC
258 #define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */
259 #define CONFIG_SYS_I2C_MXC_I2C2 /* enable I2C bus 2 */
260 #define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */
261
262 /* EEPROM */
263 #define CONFIG_ID_EEPROM
264 #define CONFIG_SYS_I2C_EEPROM_NXID
265 #define CONFIG_SYS_EEPROM_BUS_NUM 1
266 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x53
267 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
268 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
269 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
270
271 /*
272 * MMC
273 */
274 #define CONFIG_FSL_ESDHC
275
276 /* SPI */
277 #if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
278 /* QSPI */
279 #define QSPI0_AMBA_BASE 0x40000000
280 #define FSL_QSPI_FLASH_SIZE (1 << 24)
281 #define FSL_QSPI_FLASH_NUM 2
282
283 /* DSPI */
284 #endif
285
286 /* DM SPI */
287 #if defined(CONFIG_FSL_DSPI) || defined(CONFIG_FSL_QSPI)
288 #define CONFIG_DM_SPI_FLASH
289 #endif
290
291 /*
292 * Video
293 */
294 #ifdef CONFIG_VIDEO_FSL_DCU_FB
295 #define CONFIG_VIDEO_LOGO
296 #define CONFIG_VIDEO_BMP_LOGO
297
298 #define CONFIG_FSL_DCU_SII9022A
299 #define CONFIG_SYS_I2C_DVI_BUS_NUM 1
300 #define CONFIG_SYS_I2C_DVI_ADDR 0x39
301 #endif
302
303 /*
304 * eTSEC
305 */
306 #define CONFIG_TSEC_ENET
307
308 #ifdef CONFIG_TSEC_ENET
309 #define CONFIG_MII
310 #define CONFIG_MII_DEFAULT_TSEC 1
311 #define CONFIG_TSEC1 1
312 #define CONFIG_TSEC1_NAME "eTSEC1"
313 #define CONFIG_TSEC2 1
314 #define CONFIG_TSEC2_NAME "eTSEC2"
315 #define CONFIG_TSEC3 1
316 #define CONFIG_TSEC3_NAME "eTSEC3"
317
318 #define TSEC1_PHY_ADDR 2
319 #define TSEC2_PHY_ADDR 0
320 #define TSEC3_PHY_ADDR 1
321
322 #define TSEC1_FLAGS (TSEC_GIGABIT | TSEC_REDUCED)
323 #define TSEC2_FLAGS (TSEC_GIGABIT | TSEC_REDUCED)
324 #define TSEC3_FLAGS (TSEC_GIGABIT | TSEC_REDUCED)
325
326 #define TSEC1_PHYIDX 0
327 #define TSEC2_PHYIDX 0
328 #define TSEC3_PHYIDX 0
329
330 #define CONFIG_ETHPRIME "eTSEC1"
331
332 #define CONFIG_PHY_ATHEROS
333
334 #define CONFIG_HAS_ETH0
335 #define CONFIG_HAS_ETH1
336 #define CONFIG_HAS_ETH2
337 #endif
338
339 /* PCIe */
340 #define CONFIG_PCIE1 /* PCIE controller 1 */
341 #define CONFIG_PCIE2 /* PCIE controller 2 */
342
343 #ifdef CONFIG_PCI
344 #define CONFIG_PCI_SCAN_SHOW
345 #endif
346
347 #define CONFIG_CMDLINE_TAG
348
349 #define CONFIG_PEN_ADDR_BIG_ENDIAN
350 #define CONFIG_LAYERSCAPE_NS_ACCESS
351 #define CONFIG_SMP_PEN_ADDR 0x01ee0200
352 #define COUNTER_FREQUENCY 12500000
353
354 #define CONFIG_HWCONFIG
355 #define HWCONFIG_BUFFER_SIZE 256
356
357 #define CONFIG_FSL_DEVICE_DISABLE
358
359 #include <config_distro_defaults.h>
360 #define BOOT_TARGET_DEVICES(func) \
361 func(MMC, mmc, 0) \
362 func(USB, usb, 0)
363 #include <config_distro_bootcmd.h>
364
365 #ifdef CONFIG_LPUART
366 #define CONFIG_EXTRA_ENV_SETTINGS \
367 "bootargs=root=/dev/ram0 rw console=ttyLP0,115200\0" \
368 "initrd_high=0xffffffff\0" \
369 "fdt_high=0xffffffff\0" \
370 "fdt_addr=0x64f00000\0" \
371 "kernel_addr=0x65000000\0" \
372 "scriptaddr=0x80000000\0" \
373 "scripthdraddr=0x80080000\0" \
374 "fdtheader_addr_r=0x80100000\0" \
375 "kernelheader_addr_r=0x80200000\0" \
376 "kernel_addr_r=0x81000000\0" \
377 "fdt_addr_r=0x90000000\0" \
378 "ramdisk_addr_r=0xa0000000\0" \
379 "load_addr=0xa0000000\0" \
380 "kernel_size=0x2800000\0" \
381 BOOTENV \
382 "boot_scripts=ls1021atwr_boot.scr\0" \
383 "boot_script_hdr=hdr_ls1021atwr_bs.out\0" \
384 "scan_dev_for_boot_part=" \
385 "part list ${devtype} ${devnum} devplist; " \
386 "env exists devplist || setenv devplist 1; " \
387 "for distro_bootpart in ${devplist}; do " \
388 "if fstype ${devtype} " \
389 "${devnum}:${distro_bootpart} " \
390 "bootfstype; then " \
391 "run scan_dev_for_boot; " \
392 "fi; " \
393 "done\0" \
394 "scan_dev_for_boot=" \
395 "echo Scanning ${devtype} " \
396 "${devnum}:${distro_bootpart}...; " \
397 "for prefix in ${boot_prefixes}; do " \
398 "run scan_dev_for_scripts; " \
399 "done;" \
400 "\0" \
401 "boot_a_script=" \
402 "load ${devtype} ${devnum}:${distro_bootpart} " \
403 "${scriptaddr} ${prefix}${script}; " \
404 "env exists secureboot && load ${devtype} " \
405 "${devnum}:${distro_bootpart} " \
406 "${scripthdraddr} ${prefix}${boot_script_hdr} " \
407 "&& esbc_validate ${scripthdraddr};" \
408 "source ${scriptaddr}\0" \
409 "installer=load mmc 0:2 $load_addr " \
410 "/flex_installer_arm32.itb; " \
411 "bootm $load_addr#ls1021atwr\0" \
412 "qspi_bootcmd=echo Trying load from qspi..;" \
413 "sf probe && sf read $load_addr " \
414 "$kernel_addr $kernel_size && bootm $load_addr#$board\0" \
415 "nor_bootcmd=echo Trying load from nor..;" \
416 "cp.b $kernel_addr $load_addr " \
417 "$kernel_size && bootm $load_addr#$board\0"
418 #else
419 #define CONFIG_EXTRA_ENV_SETTINGS \
420 "bootargs=root=/dev/ram0 rw console=ttyS0,115200\0" \
421 "initrd_high=0xffffffff\0" \
422 "fdt_high=0xffffffff\0" \
423 "fdt_addr=0x64f00000\0" \
424 "kernel_addr=0x65000000\0" \
425 "scriptaddr=0x80000000\0" \
426 "scripthdraddr=0x80080000\0" \
427 "fdtheader_addr_r=0x80100000\0" \
428 "kernelheader_addr_r=0x80200000\0" \
429 "kernel_addr_r=0x81000000\0" \
430 "fdt_addr_r=0x90000000\0" \
431 "ramdisk_addr_r=0xa0000000\0" \
432 "load_addr=0xa0000000\0" \
433 "kernel_size=0x2800000\0" \
434 BOOTENV \
435 "boot_scripts=ls1021atwr_boot.scr\0" \
436 "boot_script_hdr=hdr_ls1021atwr_bs.out\0" \
437 "scan_dev_for_boot_part=" \
438 "part list ${devtype} ${devnum} devplist; " \
439 "env exists devplist || setenv devplist 1; " \
440 "for distro_bootpart in ${devplist}; do " \
441 "if fstype ${devtype} " \
442 "${devnum}:${distro_bootpart} " \
443 "bootfstype; then " \
444 "run scan_dev_for_boot; " \
445 "fi; " \
446 "done\0" \
447 "scan_dev_for_boot=" \
448 "echo Scanning ${devtype} " \
449 "${devnum}:${distro_bootpart}...; " \
450 "for prefix in ${boot_prefixes}; do " \
451 "run scan_dev_for_scripts; " \
452 "done;" \
453 "\0" \
454 "boot_a_script=" \
455 "load ${devtype} ${devnum}:${distro_bootpart} " \
456 "${scriptaddr} ${prefix}${script}; " \
457 "env exists secureboot && load ${devtype} " \
458 "${devnum}:${distro_bootpart} " \
459 "${scripthdraddr} ${prefix}${boot_script_hdr} " \
460 "&& esbc_validate ${scripthdraddr};" \
461 "source ${scriptaddr}\0" \
462 "installer=load mmc 0:2 $load_addr " \
463 "/flex_installer_arm32.itb; " \
464 "bootm $load_addr#ls1021atwr\0" \
465 "qspi_bootcmd=echo Trying load from qspi..;" \
466 "sf probe && sf read $load_addr " \
467 "$kernel_addr $kernel_size && bootm $load_addr#$board\0" \
468 "nor_bootcmd=echo Trying load from nor..;" \
469 "cp.b $kernel_addr $load_addr " \
470 "$kernel_size && bootm $load_addr#$board\0"
471 #endif
472
473 #undef CONFIG_BOOTCOMMAND
474 #if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
475 #define CONFIG_BOOTCOMMAND "run distro_bootcmd; env exists secureboot" \
476 "&& esbc_halt; run qspi_bootcmd;"
477 #else
478 #define CONFIG_BOOTCOMMAND "run distro_bootcmd; env exists secureboot" \
479 "&& esbc_halt; run nor_bootcmd;"
480 #endif
481
482 /*
483 * Miscellaneous configurable options
484 */
485 #define CONFIG_SYS_LONGHELP /* undef to save memory */
486 #define CONFIG_AUTO_COMPLETE
487
488 #define CONFIG_SYS_MEMTEST_START 0x80000000
489 #define CONFIG_SYS_MEMTEST_END 0x9fffffff
490
491 #define CONFIG_SYS_LOAD_ADDR 0x82000000
492
493 #define CONFIG_LS102XA_STREAM_ID
494
495 #define CONFIG_SYS_INIT_SP_OFFSET \
496 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
497 #define CONFIG_SYS_INIT_SP_ADDR \
498 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
499
500 #ifdef CONFIG_SPL_BUILD
501 #define CONFIG_SYS_MONITOR_BASE CONFIG_SPL_TEXT_BASE
502 #else
503 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */
504 #endif
505
506 #define CONFIG_SYS_QE_FW_ADDR 0x60940000
507
508 /*
509 * Environment
510 */
511 #define CONFIG_ENV_OVERWRITE
512
513 #if defined(CONFIG_SD_BOOT)
514 #define CONFIG_ENV_OFFSET 0x300000
515 #define CONFIG_SYS_MMC_ENV_DEV 0
516 #define CONFIG_ENV_SIZE 0x20000
517 #elif defined(CONFIG_QSPI_BOOT)
518 #define CONFIG_ENV_SIZE 0x2000
519 #define CONFIG_ENV_OFFSET 0x300000
520 #define CONFIG_ENV_SECT_SIZE 0x10000
521 #else
522 #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x300000)
523 #define CONFIG_ENV_SIZE 0x20000
524 #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) */
525 #endif
526
527 #define CONFIG_MISC_INIT_R
528
529 #include <asm/fsl_secure_boot.h>
530 #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* Increase max gunzip size */
531
532 #endif