xref: /rk3399_rockchip-uboot/include/configs/meson-gxbb-common.h (revision 5d81c6df320e40c741f474a54cc6df451e830143)
1 /*
2  * Configuration for Amlogic Meson GXBB SoCs
3  * (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com>
4  *
5  * SPDX-License-Identifier:	GPL-2.0+
6  */
7 
8 #ifndef __MESON_GXBB_COMMON_CONFIG_H
9 #define __MESON_GXBB_COMMON_CONFIG_H
10 
11 #define CONFIG_CPU_ARMV8
12 #define CONFIG_REMAKE_ELF
13 #define CONFIG_SYS_NO_FLASH
14 #define CONFIG_NR_DRAM_BANKS		1
15 #define CONFIG_ENV_IS_NOWHERE		1
16 #define CONFIG_ENV_SIZE			0x2000
17 #define CONFIG_SYS_MAXARGS		32
18 #define CONFIG_SYS_MALLOC_LEN		(32 << 20)
19 #define CONFIG_SYS_CBSIZE		1024
20 #define CONFIG_MISC_INIT_R
21 
22 #define CONFIG_SYS_SDRAM_BASE		0
23 #define CONFIG_SYS_TEXT_BASE		0x01000000
24 #define CONFIG_SYS_INIT_SP_ADDR		0x20000000
25 #define CONFIG_SYS_LOAD_ADDR		CONFIG_SYS_TEXT_BASE
26 
27 /* Generic Interrupt Controller Definitions */
28 #define GICD_BASE			0xc4301000
29 #define GICC_BASE			0xc4302000
30 
31 #define CONFIG_CMD_ENV
32 
33 /* Monitor Command Prompt */
34 /* Console I/O Buffer Size */
35 #define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE + \
36 					sizeof(CONFIG_SYS_PROMPT) + 16)
37 #define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE
38 #define CONFIG_SYS_LONGHELP
39 #define CONFIG_CMDLINE_EDITING
40 
41 #include <config_distro_defaults.h>
42 
43 #endif /* __MESON_GXBB_COMMON_CONFIG_H */
44