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