Scott Branden | da1f5ac | 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 | da1f5ac | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 12 | #define CONFIG_SKIP_LOWLEVEL_INIT |
| 13 | |
Scott Branden | da1f5ac | 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) |
| 31 | #define CONFIG_STACKSIZE (256 * 1024) |
| 32 | |
| 33 | /* Some commands use this as the default load address */ |
| 34 | #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE |
| 35 | |
Scott Branden | da1f5ac | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 36 | /* |
| 37 | * This is the initial SP which is used only briefly for relocating the u-boot |
| 38 | * image to the top of SDRAM. After relocation u-boot moves the stack to the |
| 39 | * proper place. |
| 40 | */ |
| 41 | #define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_TEXT_BASE |
| 42 | |
| 43 | /* allow to overwrite serial and ethaddr */ |
| 44 | #define CONFIG_ENV_OVERWRITE |
| 45 | |
| 46 | /* Serial Info */ |
Scott Branden | da1f5ac | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 47 | #define CONFIG_SYS_NS16550_SERIAL |
| 48 | |
| 49 | #define CONFIG_BAUDRATE 115200 |
| 50 | |
| 51 | #define CONFIG_ENV_SIZE 0x2000 |
| 52 | #define CONFIG_ENV_IS_NOWHERE |
| 53 | |
| 54 | #define CONFIG_SYS_NO_FLASH /* Not using NAND/NOR unmanaged flash */ |
| 55 | |
| 56 | /* console configuration */ |
| 57 | #define CONFIG_SYS_CBSIZE 1024 /* Console buffer size */ |
| 58 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ |
| 59 | sizeof(CONFIG_SYS_PROMPT) + 16) /* Printbuffer size */ |
| 60 | #define CONFIG_SYS_MAXARGS 64 |
| 61 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |
| 62 | |
| 63 | /* |
| 64 | * One partition type must be defined for part.c |
| 65 | * This is necessary for the fatls command to work on an SD card |
| 66 | * for example. |
| 67 | */ |
| 68 | #define CONFIG_DOS_PARTITION |
| 69 | |
| 70 | /* version string, parser, etc */ |
Scott Branden | da1f5ac | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 71 | #define CONFIG_AUTO_COMPLETE |
Scott Branden | da1f5ac | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 72 | #define CONFIG_CMDLINE_EDITING |
| 73 | #define CONFIG_COMMAND_HISTORY |
| 74 | #define CONFIG_SYS_LONGHELP |
| 75 | |
| 76 | #define CONFIG_CRC32_VERIFY |
| 77 | #define CONFIG_MX_CYCLIC |
| 78 | |
| 79 | /* Commands */ |
Scott Branden | da1f5ac | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 80 | #define CONFIG_FAT_WRITE |
| 81 | |
Scott Branden | da1f5ac | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 82 | /* SHA hashing */ |
| 83 | #define CONFIG_CMD_HASH |
| 84 | #define CONFIG_HASH_VERIFY |
| 85 | #define CONFIG_SHA1 |
| 86 | #define CONFIG_SHA256 |
| 87 | |
| 88 | /* Enable Time Command */ |
Scott Branden | da1f5ac | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 89 | |
Scott Branden | da1f5ac | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 90 | /* Misc utility code */ |
| 91 | #define CONFIG_BOUNCE_BUFFER |
| 92 | #define CONFIG_CRC32_VERIFY |
Scott Branden | da1f5ac | 2014-08-11 13:58:25 -0700 | [diff] [blame] | 93 | |
| 94 | #endif /* __BCM_EP_BOARD_H */ |