xref: /rk3399_rockchip-uboot/include/configs/exynos7420-common.h (revision e39448e8be8389f5ddeabae0ec9c6a3b7b8a2ca6)
1*e39448e8SThomas Abraham /*
2*e39448e8SThomas Abraham  * Configuration settings for the Espresso7420 board.
3*e39448e8SThomas Abraham  * Copyright (C) 2016 Samsung Electronics
4*e39448e8SThomas Abraham  * Thomas Abraham <thomas.ab@samsung.com>
5*e39448e8SThomas Abraham  *
6*e39448e8SThomas Abraham  * SPDX-License-Identifier:	GPL-2.0+
7*e39448e8SThomas Abraham  */
8*e39448e8SThomas Abraham 
9*e39448e8SThomas Abraham #ifndef __CONFIG_EXYNOS7420_COMMON_H
10*e39448e8SThomas Abraham #define __CONFIG_EXYNOS7420_COMMON_H
11*e39448e8SThomas Abraham 
12*e39448e8SThomas Abraham /* High Level Configuration Options */
13*e39448e8SThomas Abraham #define CONFIG_SAMSUNG			/* in a SAMSUNG core */
14*e39448e8SThomas Abraham #define CONFIG_EXYNOS7420		/* Exynos7 Family */
15*e39448e8SThomas Abraham #define CONFIG_S5P
16*e39448e8SThomas Abraham 
17*e39448e8SThomas Abraham #include <asm/arch/cpu.h>		/* get chip and board defs */
18*e39448e8SThomas Abraham #include <linux/sizes.h>
19*e39448e8SThomas Abraham 
20*e39448e8SThomas Abraham #define CONFIG_ARCH_CPU_INIT
21*e39448e8SThomas Abraham #define CONFIG_DISPLAY_BOARDINFO
22*e39448e8SThomas Abraham #define CONFIG_BOARD_EARLY_INIT_F
23*e39448e8SThomas Abraham 
24*e39448e8SThomas Abraham /* Size of malloc() pool before and after relocation */
25*e39448e8SThomas Abraham #define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + (80 << 20))
26*e39448e8SThomas Abraham 
27*e39448e8SThomas Abraham /* Miscellaneous configurable options */
28*e39448e8SThomas Abraham #define CONFIG_SYS_CBSIZE		1024	/* Console I/O Buffer Size */
29*e39448e8SThomas Abraham #define CONFIG_SYS_PBSIZE		1024	/* Print Buffer Size */
30*e39448e8SThomas Abraham #define CONFIG_SYS_MAXARGS		16	/* max number of command args */
31*e39448e8SThomas Abraham 
32*e39448e8SThomas Abraham /* Boot Argument Buffer Size */
33*e39448e8SThomas Abraham #define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE
34*e39448e8SThomas Abraham 
35*e39448e8SThomas Abraham /* select serial console configuration */
36*e39448e8SThomas Abraham #define CONFIG_BAUDRATE			115200
37*e39448e8SThomas Abraham 
38*e39448e8SThomas Abraham /* FLASH and environment organization */
39*e39448e8SThomas Abraham #define CONFIG_SYS_NO_FLASH
40*e39448e8SThomas Abraham 
41*e39448e8SThomas Abraham /* Timer input clock frequency */
42*e39448e8SThomas Abraham #define COUNTER_FREQUENCY		24000000
43*e39448e8SThomas Abraham 
44*e39448e8SThomas Abraham /* Device Tree */
45*e39448e8SThomas Abraham #define CONFIG_DEVICE_TREE_LIST "exynos7420-espresso7420"
46*e39448e8SThomas Abraham 
47*e39448e8SThomas Abraham /* IRAM Layout */
48*e39448e8SThomas Abraham #define CONFIG_IRAM_BASE		0x02100000
49*e39448e8SThomas Abraham #define CONFIG_IRAM_SIZE		0x58000
50*e39448e8SThomas Abraham #define CONFIG_IRAM_END			(CONFIG_IRAM_BASE + CONFIG_IRAM_SIZE)
51*e39448e8SThomas Abraham 
52*e39448e8SThomas Abraham /* Number of CPUs available */
53*e39448e8SThomas Abraham #define CONFIG_CORE_COUNT		0x8
54*e39448e8SThomas Abraham 
55*e39448e8SThomas Abraham /* select serial console configuration */
56*e39448e8SThomas Abraham #define CONFIG_BAUDRATE			115200
57*e39448e8SThomas Abraham #define CONFIG_SILENT_CONSOLE
58*e39448e8SThomas Abraham #define CONFIG_SYS_CONSOLE_IS_IN_ENV
59*e39448e8SThomas Abraham #define CONFIG_CONSOLE_MUX
60*e39448e8SThomas Abraham 
61*e39448e8SThomas Abraham #define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + 0x3E00000)
62*e39448e8SThomas Abraham 
63*e39448e8SThomas Abraham #define PHYS_SDRAM_1		CONFIG_SYS_SDRAM_BASE
64*e39448e8SThomas Abraham #define PHYS_SDRAM_1_SIZE	SDRAM_BANK_SIZE
65*e39448e8SThomas Abraham #define PHYS_SDRAM_2		(CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
66*e39448e8SThomas Abraham #define PHYS_SDRAM_2_SIZE	SDRAM_BANK_SIZE
67*e39448e8SThomas Abraham #define PHYS_SDRAM_3		(CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
68*e39448e8SThomas Abraham #define PHYS_SDRAM_3_SIZE	SDRAM_BANK_SIZE
69*e39448e8SThomas Abraham #define PHYS_SDRAM_4		(CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
70*e39448e8SThomas Abraham #define PHYS_SDRAM_4_SIZE	SDRAM_BANK_SIZE
71*e39448e8SThomas Abraham #define PHYS_SDRAM_5		(CONFIG_SYS_SDRAM_BASE + (4 * SDRAM_BANK_SIZE))
72*e39448e8SThomas Abraham #define PHYS_SDRAM_5_SIZE	SDRAM_BANK_SIZE
73*e39448e8SThomas Abraham #define PHYS_SDRAM_6		(CONFIG_SYS_SDRAM_BASE + (5 * SDRAM_BANK_SIZE))
74*e39448e8SThomas Abraham #define PHYS_SDRAM_6_SIZE	SDRAM_BANK_SIZE
75*e39448e8SThomas Abraham #define PHYS_SDRAM_7		(CONFIG_SYS_SDRAM_BASE + (6 * SDRAM_BANK_SIZE))
76*e39448e8SThomas Abraham #define PHYS_SDRAM_7_SIZE	SDRAM_BANK_SIZE
77*e39448e8SThomas Abraham #define PHYS_SDRAM_8		(CONFIG_SYS_SDRAM_BASE + (7 * SDRAM_BANK_SIZE))
78*e39448e8SThomas Abraham #define PHYS_SDRAM_8_SIZE	SDRAM_BANK_SIZE
79*e39448e8SThomas Abraham 
80*e39448e8SThomas Abraham /* Configuration of ENV Blocks */
81*e39448e8SThomas Abraham #define CONFIG_ENV_SIZE	(16 << 10) /* 16 KB */
82*e39448e8SThomas Abraham 
83*e39448e8SThomas Abraham #define BOOT_TARGET_DEVICES(func) \
84*e39448e8SThomas Abraham 	func(MMC, mmc, 1) \
85*e39448e8SThomas Abraham 	func(MMC, mmc, 0) \
86*e39448e8SThomas Abraham 
87*e39448e8SThomas Abraham #ifndef MEM_LAYOUT_ENV_SETTINGS
88*e39448e8SThomas Abraham #define MEM_LAYOUT_ENV_SETTINGS \
89*e39448e8SThomas Abraham 	"bootm_size=0x10000000\0" \
90*e39448e8SThomas Abraham 	"kernel_addr_r=0x42000000\0" \
91*e39448e8SThomas Abraham 	"fdt_addr_r=0x43000000\0" \
92*e39448e8SThomas Abraham 	"ramdisk_addr_r=0x43300000\0" \
93*e39448e8SThomas Abraham 	"scriptaddr=0x50000000\0" \
94*e39448e8SThomas Abraham 	"pxefile_addr_r=0x51000000\0"
95*e39448e8SThomas Abraham #endif
96*e39448e8SThomas Abraham 
97*e39448e8SThomas Abraham #ifndef EXYNOS_DEVICE_SETTINGS
98*e39448e8SThomas Abraham #define EXYNOS_DEVICE_SETTINGS \
99*e39448e8SThomas Abraham 	"stdin=serial\0" \
100*e39448e8SThomas Abraham 	"stdout=serial\0" \
101*e39448e8SThomas Abraham 	"stderr=serial\0"
102*e39448e8SThomas Abraham #endif
103*e39448e8SThomas Abraham 
104*e39448e8SThomas Abraham #ifndef EXYNOS_FDTFILE_SETTING
105*e39448e8SThomas Abraham #define EXYNOS_FDTFILE_SETTING
106*e39448e8SThomas Abraham #endif
107*e39448e8SThomas Abraham 
108*e39448e8SThomas Abraham #define CONFIG_EXTRA_ENV_SETTINGS \
109*e39448e8SThomas Abraham 	EXYNOS_DEVICE_SETTINGS \
110*e39448e8SThomas Abraham 	EXYNOS_FDTFILE_SETTING \
111*e39448e8SThomas Abraham 	MEM_LAYOUT_ENV_SETTINGS
112*e39448e8SThomas Abraham 
113*e39448e8SThomas Abraham #endif	/* __CONFIG_EXYNOS7420_COMMON_H */
114