1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* Copyright Contributors to the U-Boot project. */
3 
4 #ifndef __CONFIG_RK3528_COMMON_H
5 #define __CONFIG_RK3528_COMMON_H
6 
7 #define CFG_CPUID_OFFSET		0xa
8 
9 #include "rockchip-common.h"
10 
11 #define CFG_IRAM_BASE			0xfe480000
12 
13 #define CFG_SYS_SDRAM_BASE		0
14 #define SDRAM_MAX_SIZE			0xfc000000
15 
16 #ifndef ROCKCHIP_DEVICE_SETTINGS
17 #define ROCKCHIP_DEVICE_SETTINGS
18 #endif
19 
20 #define ENV_MEM_LAYOUT_SETTINGS			\
21 	"scriptaddr=0x00c00000\0"		\
22 	"script_offset_f=0xffe000\0"		\
23 	"script_size_f=0x2000\0"		\
24 	"pxefile_addr_r=0x00e00000\0"		\
25 	"kernel_addr_r=0x02000000\0"		\
26 	"kernel_comp_addr_r=0x0a000000\0"	\
27 	"fdt_addr_r=0x12000000\0"		\
28 	"fdtoverlay_addr_r=0x12100000\0"	\
29 	"ramdisk_addr_r=0x12180000\0"		\
30 	"kernel_comp_size=0x8000000\0"
31 
32 #define CFG_EXTRA_ENV_SETTINGS			\
33 	"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0"	\
34 	ENV_MEM_LAYOUT_SETTINGS			\
35 	ROCKCHIP_DEVICE_SETTINGS		\
36 	"boot_targets=" BOOT_TARGETS "\0"
37 
38 #endif /* __CONFIG_RK3528_COMMON_H */
39