Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Broadcom Corporation. |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #ifndef __BCM_EP_BOARD_H |
| 8 | #define __BCM_EP_BOARD_H |
| 9 | |
| 10 | #include <asm/arch/configs.h> |
| 11 | |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 12 | #define CONFIG_SKIP_LOWLEVEL_INIT |
| 13 | |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 14 | /* |
| 15 | * Memory configuration |
| 16 | * (these must be defined elsewhere) |
| 17 | */ |
| 18 | #ifndef CONFIG_SYS_TEXT_BASE |
| 19 | #error CONFIG_SYS_TEXT_BASE must be defined! |
| 20 | #endif |
| 21 | #ifndef CONFIG_SYS_SDRAM_BASE |
| 22 | #error CONFIG_SYS_SDRAM_BASE must be defined! |
| 23 | #endif |
| 24 | #ifndef CONFIG_SYS_SDRAM_SIZE |
| 25 | #error CONFIG_SYS_SDRAM_SIZE must be defined! |
| 26 | #endif |
| 27 | |
| 28 | #define CONFIG_NR_DRAM_BANKS 1 |
| 29 | |
| 30 | #define CONFIG_SYS_MALLOC_LEN (4 * 1024 * 1024) |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 31 | |
| 32 | /* Some commands use this as the default load address */ |
| 33 | #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE |
| 34 | |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 35 | /* |
| 36 | * This is the initial SP which is used only briefly for relocating the u-boot |
| 37 | * image to the top of SDRAM. After relocation u-boot moves the stack to the |
| 38 | * proper place. |
| 39 | */ |
| 40 | #define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_TEXT_BASE |
| 41 | |
| 42 | /* allow to overwrite serial and ethaddr */ |
| 43 | #define CONFIG_ENV_OVERWRITE |
| 44 | |
| 45 | /* Serial Info */ |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 46 | #define CONFIG_SYS_NS16550_SERIAL |
| 47 | |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 48 | #define CONFIG_ENV_SIZE 0x2000 |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 49 | |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 50 | /* console configuration */ |
| 51 | #define CONFIG_SYS_CBSIZE 1024 /* Console buffer size */ |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 52 | #define CONFIG_SYS_MAXARGS 64 |
| 53 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |
| 54 | |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 55 | /* version string, parser, etc */ |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 56 | #define CONFIG_AUTO_COMPLETE |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 57 | #define CONFIG_CMDLINE_EDITING |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 58 | #define CONFIG_SYS_LONGHELP |
| 59 | |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 60 | #define CONFIG_MX_CYCLIC |
| 61 | |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 62 | /* Enable Time Command */ |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 63 | |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 64 | /* Misc utility code */ |
| 65 | #define CONFIG_BOUNCE_BUFFER |
Scott Branden | 5a5cb00 | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 66 | |
| 67 | #endif /* __BCM_EP_BOARD_H */ |