xref: /openbmc/u-boot/include/configs/boston.h (revision 3335786a)
1 /*
2  * Copyright (C) 2016 Imagination Technologies
3  *
4  * SPDX-License-Identifier:	GPL-2.0
5  */
6 
7 #ifndef __CONFIGS_BOSTON_H__
8 #define __CONFIGS_BOSTON_H__
9 
10 /*
11  * General board configuration
12  */
13 #define CONFIG_DISPLAY_BOARDINFO
14 
15 /*
16  * CPU
17  */
18 #define CONFIG_SYS_MIPS_TIMER_FREQ	30000000
19 
20 /*
21  * PCI
22  */
23 #define CONFIG_PCI
24 #define CONFIG_PCI_PNP
25 #define CONFIG_CMD_PCI
26 
27 /*
28  * Memory map
29  */
30 #ifdef CONFIG_64BIT
31 # define CONFIG_SYS_SDRAM_BASE		0xffffffff80000000
32 #else
33 # define CONFIG_SYS_SDRAM_BASE		0x80000000
34 #endif
35 
36 #define CONFIG_SYS_INIT_SP_OFFSET	0x400000
37 
38 #define CONFIG_SYS_MONITOR_BASE		CONFIG_SYS_TEXT_BASE
39 
40 #define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + 0x100000)
41 
42 #define CONFIG_SYS_MEMTEST_START	(CONFIG_SYS_SDRAM_BASE + 0)
43 #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_SDRAM_BASE + 0x10000000)
44 
45 #define CONFIG_SYS_MALLOC_LEN		(256 * 1024)
46 
47 /*
48  * Console
49  */
50 #define CONFIG_SYS_MAXARGS		16
51 #define CONFIG_SYS_CBSIZE		256
52 #define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE + \
53 					 sizeof(CONFIG_SYS_PROMPT) + 16)
54 #define CONFIG_SYS_LONGHELP
55 #define CONFIG_BAUDRATE			115200
56 
57 /*
58  * Flash
59  */
60 #define CONFIG_FLASH_CFI_DRIVER
61 #define CONFIG_SYS_FLASH_CFI
62 #define CONFIG_SYS_FLASH_PROTECTION
63 #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
64 #define CONFIG_SYS_MAX_FLASH_BANKS_DETECT	1
65 #define CONFIG_SYS_MAX_FLASH_SECT		1024
66 
67 /*
68  * Environment
69  */
70 #define CONFIG_ENV_IS_IN_FLASH
71 #define CONFIG_ENV_SECT_SIZE		0x20000
72 #define CONFIG_ENV_SIZE			CONFIG_ENV_SECT_SIZE
73 #ifdef CONFIG_64BIT
74 # define CONFIG_ENV_ADDR \
75 	(0xffffffffb8000000 + (128 << 20) - CONFIG_ENV_SIZE)
76 #else
77 # define CONFIG_ENV_ADDR \
78 	(0xb8000000 + (128 << 20) - CONFIG_ENV_SIZE)
79 #endif
80 
81 #endif /* __CONFIGS_BOSTON_H__ */
82