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