|
35 | 35 | #define CONFIG_SYS_CLK_FREQ 100000000
|
36 | 36 | #define CONFIG_DDR_CLK_FREQ 100000000
|
37 | 37 |
|
| 38 | +#ifdef CONFIG_RAMBOOT_PBL |
| 39 | +#define CONFIG_SYS_FSL_PBL_PBI board/freescale/ls1021atwr/ls102xa_pbi.cfg |
| 40 | +#endif |
| 41 | + |
| 42 | +#ifdef CONFIG_SD_BOOT |
| 43 | +#define CONFIG_SYS_FSL_PBL_RCW board/freescale/ls1021atwr/ls102xa_rcw_sd.cfg |
| 44 | +#define CONFIG_SPL_FRAMEWORK |
| 45 | +#define CONFIG_SPL_LDSCRIPT "arch/$(ARCH)/cpu/u-boot-spl.lds" |
| 46 | +#define CONFIG_SPL_LIBCOMMON_SUPPORT |
| 47 | +#define CONFIG_SPL_LIBGENERIC_SUPPORT |
| 48 | +#define CONFIG_SPL_ENV_SUPPORT |
| 49 | +#define CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT |
| 50 | +#define CONFIG_SPL_I2C_SUPPORT |
| 51 | +#define CONFIG_SPL_WATCHDOG_SUPPORT |
| 52 | +#define CONFIG_SPL_SERIAL_SUPPORT |
| 53 | +#define CONFIG_SPL_MMC_SUPPORT |
| 54 | +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0xe8 |
| 55 | +#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x400 |
| 56 | + |
| 57 | +#define CONFIG_SPL_TEXT_BASE 0x10000000 |
| 58 | +#define CONFIG_SPL_MAX_SIZE 0x1a000 |
| 59 | +#define CONFIG_SPL_STACK 0x1001d000 |
| 60 | +#define CONFIG_SPL_PAD_TO 0x1c000 |
| 61 | +#define CONFIG_SYS_TEXT_BASE 0x82000000 |
| 62 | + |
| 63 | +#define CONFIG_SYS_SPL_MALLOC_START 0x80200000 |
| 64 | +#define CONFIG_SYS_SPL_MALLOC_SIZE 0x100000 |
| 65 | +#define CONFIG_SPL_BSS_START_ADDR 0x80100000 |
| 66 | +#define CONFIG_SPL_BSS_MAX_SIZE 0x80000 |
| 67 | +#define CONFIG_SYS_MONITOR_LEN 0x80000 |
| 68 | +#endif |
| 69 | + |
38 | 70 | #ifndef CONFIG_SYS_TEXT_BASE
|
39 | 71 | #define CONFIG_SYS_TEXT_BASE 0x67f80000
|
40 | 72 | #endif
|
|
250 | 282 |
|
251 | 283 | #define CONFIG_CMDLINE_TAG
|
252 | 284 | #define CONFIG_CMDLINE_EDITING
|
| 285 | + |
253 | 286 | #define CONFIG_CMD_IMLS
|
254 | 287 |
|
255 | 288 | #define CONFIG_HWCONFIG
|
|
295 | 328 | #define CONFIG_SYS_INIT_SP_ADDR \
|
296 | 329 | (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
|
297 | 330 |
|
| 331 | +#ifdef CONFIG_SPL_BUILD |
| 332 | +#define CONFIG_SYS_MONITOR_BASE CONFIG_SPL_TEXT_BASE |
| 333 | +#else |
298 | 334 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */
|
| 335 | +#endif |
299 | 336 |
|
300 | 337 | #define CONFIG_SYS_QE_FW_ADDR 0x67f40000
|
301 | 338 |
|
|
304 | 341 | */
|
305 | 342 | #define CONFIG_ENV_OVERWRITE
|
306 | 343 |
|
| 344 | +#if defined(CONFIG_SD_BOOT) |
| 345 | +#define CONFIG_ENV_OFFSET 0x100000 |
| 346 | +#define CONFIG_ENV_IS_IN_MMC |
| 347 | +#define CONFIG_SYS_MMC_ENV_DEV 0 |
| 348 | +#define CONFIG_ENV_SIZE 0x20000 |
| 349 | +#else |
307 | 350 | #define CONFIG_ENV_IS_IN_FLASH
|
308 | 351 | #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
|
309 | 352 | #define CONFIG_ENV_SIZE 0x20000
|
310 | 353 | #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) */
|
| 354 | +#endif |
311 | 355 |
|
312 | 356 | #define CONFIG_OF_LIBFDT
|
313 | 357 | #define CONFIG_OF_BOARD_SETUP
|
|
0 commit comments