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