xref: /rk3399_rockchip-uboot/include/configs/aspeed-common.h (revision e090579d0a2d1aa38eab94b98877de9bcdd4f31d)
1*f6a6a9f0Smaxims@google.com /*
2*f6a6a9f0Smaxims@google.com  * Copyright (C) 2012-2020  ASPEED Technology Inc.
3*f6a6a9f0Smaxims@google.com  * Ryan Chen <ryan_chen@aspeedtech.com>
4*f6a6a9f0Smaxims@google.com  *
5*f6a6a9f0Smaxims@google.com  * Copyright 2016 IBM Corporation
6*f6a6a9f0Smaxims@google.com  * (C) Copyright 2016 Google, Inc
7*f6a6a9f0Smaxims@google.com  *
8*f6a6a9f0Smaxims@google.com  * SPDX-License-Identifier:     GPL-2.0+
9*f6a6a9f0Smaxims@google.com  */
10*f6a6a9f0Smaxims@google.com 
11*f6a6a9f0Smaxims@google.com #ifndef __AST_COMMON_CONFIG_H
12*f6a6a9f0Smaxims@google.com #define __AST_COMMON_CONFIG_H
13*f6a6a9f0Smaxims@google.com 
14*f6a6a9f0Smaxims@google.com /* Misc CPU related */
15*f6a6a9f0Smaxims@google.com #define CONFIG_CMDLINE_TAG
16*f6a6a9f0Smaxims@google.com #define CONFIG_SETUP_MEMORY_TAGS
17*f6a6a9f0Smaxims@google.com #define CONFIG_INITRD_TAG
18*f6a6a9f0Smaxims@google.com 
19*f6a6a9f0Smaxims@google.com #define CONFIG_CMDLINE_EDITING
20*f6a6a9f0Smaxims@google.com 
21*f6a6a9f0Smaxims@google.com /* Enable cache controller */
22*f6a6a9f0Smaxims@google.com #define CONFIG_SYS_DCACHE_OFF
23*f6a6a9f0Smaxims@google.com 
24*f6a6a9f0Smaxims@google.com #define CONFIG_SYS_SDRAM_BASE		0x80000000
25*f6a6a9f0Smaxims@google.com 
26*f6a6a9f0Smaxims@google.com #ifdef CONFIG_PRE_CON_BUF_SZ
27*f6a6a9f0Smaxims@google.com #define CONFIG_SYS_INIT_RAM_ADDR	(0x1e720000 + CONFIG_PRE_CON_BUF_SZ)
28*f6a6a9f0Smaxims@google.com #define CONFIG_SYS_INIT_RAM_SIZE	(36*1024 - CONFIG_PRE_CON_BUF_SZ)
29*f6a6a9f0Smaxims@google.com #else
30*f6a6a9f0Smaxims@google.com #define CONFIG_SYS_INIT_RAM_ADDR	(0x1e720000)
31*f6a6a9f0Smaxims@google.com #define CONFIG_SYS_INIT_RAM_SIZE	(36*1024)
32*f6a6a9f0Smaxims@google.com #endif
33*f6a6a9f0Smaxims@google.com 
34*f6a6a9f0Smaxims@google.com #define SYS_INIT_RAM_END		(CONFIG_SYS_INIT_RAM_ADDR \
35*f6a6a9f0Smaxims@google.com 					 + CONFIG_SYS_INIT_RAM_SIZE)
36*f6a6a9f0Smaxims@google.com #define CONFIG_SYS_INIT_SP_ADDR		(SYS_INIT_RAM_END \
37*f6a6a9f0Smaxims@google.com 					 - GENERATED_GBL_DATA_SIZE)
38*f6a6a9f0Smaxims@google.com 
39*f6a6a9f0Smaxims@google.com #define CONFIG_NR_DRAM_BANKS		1
40*f6a6a9f0Smaxims@google.com 
41*f6a6a9f0Smaxims@google.com #define CONFIG_SYS_MALLOC_LEN		(32 << 20)
42*f6a6a9f0Smaxims@google.com 
43*f6a6a9f0Smaxims@google.com /*
44*f6a6a9f0Smaxims@google.com  * NS16550 Configuration
45*f6a6a9f0Smaxims@google.com  */
46*f6a6a9f0Smaxims@google.com 
47*f6a6a9f0Smaxims@google.com /*
48*f6a6a9f0Smaxims@google.com  * BOOTP options
49*f6a6a9f0Smaxims@google.com  */
50*f6a6a9f0Smaxims@google.com #define CONFIG_BOOTP_BOOTFILESIZE
51*f6a6a9f0Smaxims@google.com #define CONFIG_BOOTP_BOOTPATH
52*f6a6a9f0Smaxims@google.com #define CONFIG_BOOTP_GATEWAY
53*f6a6a9f0Smaxims@google.com #define CONFIG_BOOTP_HOSTNAME
54*f6a6a9f0Smaxims@google.com #define CONFIG_BOOTP_SUBNETMASK
55*f6a6a9f0Smaxims@google.com 
56*f6a6a9f0Smaxims@google.com /*
57*f6a6a9f0Smaxims@google.com  * Miscellaneous configurable options
58*f6a6a9f0Smaxims@google.com  */
59*f6a6a9f0Smaxims@google.com #define CONFIG_SYS_LONGHELP
60*f6a6a9f0Smaxims@google.com 
61*f6a6a9f0Smaxims@google.com #define CONFIG_BOOTCOMMAND		"bootm 20080000 20300000"
62*f6a6a9f0Smaxims@google.com #define CONFIG_ENV_OVERWRITE
63*f6a6a9f0Smaxims@google.com 
64*f6a6a9f0Smaxims@google.com #define CONFIG_EXTRA_ENV_SETTINGS \
65*f6a6a9f0Smaxims@google.com 	"verify=yes\0"	\
66*f6a6a9f0Smaxims@google.com 	"spi_dma=yes\0" \
67*f6a6a9f0Smaxims@google.com 	""
68*f6a6a9f0Smaxims@google.com 
69*f6a6a9f0Smaxims@google.com #endif	/* __AST_COMMON_CONFIG_H */
70