blob: 50cd7430b59b915d14a4d4a09eda553b2b44c8a0 [file] [log] [blame]
Scott Brandenda1f5ac2014-08-11 13:58:25 -07001/*
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 Brandenda1f5ac2014-08-11 13:58:25 -070012#define CONFIG_SKIP_LOWLEVEL_INIT
13
Albert ARIBAUD37098442016-01-27 08:46:11 +010014#define CONFIG_SYS_CACHELINE_SIZE 64
Scott Brandenda1f5ac2014-08-11 13:58:25 -070015
16/*
17 * Memory configuration
18 * (these must be defined elsewhere)
19 */
20#ifndef CONFIG_SYS_TEXT_BASE
21#error CONFIG_SYS_TEXT_BASE must be defined!
22#endif
23#ifndef CONFIG_SYS_SDRAM_BASE
24#error CONFIG_SYS_SDRAM_BASE must be defined!
25#endif
26#ifndef CONFIG_SYS_SDRAM_SIZE
27#error CONFIG_SYS_SDRAM_SIZE must be defined!
28#endif
29
30#define CONFIG_NR_DRAM_BANKS 1
31
32#define CONFIG_SYS_MALLOC_LEN (4 * 1024 * 1024)
33#define CONFIG_STACKSIZE (256 * 1024)
34
35/* Some commands use this as the default load address */
36#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE
37
Scott Brandenda1f5ac2014-08-11 13:58:25 -070038/*
39 * This is the initial SP which is used only briefly for relocating the u-boot
40 * image to the top of SDRAM. After relocation u-boot moves the stack to the
41 * proper place.
42 */
43#define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_TEXT_BASE
44
45/* allow to overwrite serial and ethaddr */
46#define CONFIG_ENV_OVERWRITE
47
48/* Serial Info */
Scott Brandenda1f5ac2014-08-11 13:58:25 -070049#define CONFIG_SYS_NS16550_SERIAL
50
51#define CONFIG_BAUDRATE 115200
52
53#define CONFIG_ENV_SIZE 0x2000
54#define CONFIG_ENV_IS_NOWHERE
55
56#define CONFIG_SYS_NO_FLASH /* Not using NAND/NOR unmanaged flash */
57
58/* console configuration */
59#define CONFIG_SYS_CBSIZE 1024 /* Console buffer size */
60#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
61 sizeof(CONFIG_SYS_PROMPT) + 16) /* Printbuffer size */
62#define CONFIG_SYS_MAXARGS 64
63#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
64
65/*
66 * One partition type must be defined for part.c
67 * This is necessary for the fatls command to work on an SD card
68 * for example.
69 */
70#define CONFIG_DOS_PARTITION
71
72/* version string, parser, etc */
73#define CONFIG_VERSION_VARIABLE
74#define CONFIG_AUTO_COMPLETE
Scott Brandenda1f5ac2014-08-11 13:58:25 -070075#define CONFIG_CMDLINE_EDITING
76#define CONFIG_COMMAND_HISTORY
77#define CONFIG_SYS_LONGHELP
78
79#define CONFIG_CRC32_VERIFY
80#define CONFIG_MX_CYCLIC
81
82/* Commands */
Scott Brandenda1f5ac2014-08-11 13:58:25 -070083#define CONFIG_FAT_WRITE
84
Scott Brandenda1f5ac2014-08-11 13:58:25 -070085/* SHA hashing */
86#define CONFIG_CMD_HASH
87#define CONFIG_HASH_VERIFY
88#define CONFIG_SHA1
89#define CONFIG_SHA256
90
91/* Enable Time Command */
Scott Brandenda1f5ac2014-08-11 13:58:25 -070092
Scott Brandenda1f5ac2014-08-11 13:58:25 -070093/* Misc utility code */
94#define CONFIG_BOUNCE_BUFFER
95#define CONFIG_CRC32_VERIFY
Tom Rinifc5d54b2016-07-15 15:30:33 -040096#define CONFIG_ARMV7_PSCI_NR_CPUS 4
Scott Brandenda1f5ac2014-08-11 13:58:25 -070097
98#endif /* __BCM_EP_BOARD_H */