xref: /rk3399_rockchip-uboot/include/configs/rk3368_common.h (revision 331c2375688d79920fb06b8f0c4c52a7df56fb29)
1 /*
2  * Copyright (c) 2016 Andreas Färber
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6 
7 #ifndef __CONFIG_RK3368_COMMON_H
8 #define __CONFIG_RK3368_COMMON_H
9 
10 #include "rockchip-common.h"
11 
12 #define CONFIG_SYS_CACHELINE_SIZE	64
13 
14 #include <asm/arch/hardware.h>
15 #include <linux/sizes.h>
16 
17 #define CONFIG_SYS_SDRAM_BASE		0
18 #define SDRAM_MAX_SIZE			0xfe000000
19 #define CONFIG_BAUDRATE			115200
20 #define CONFIG_SYS_MALLOC_LEN		(192 << 20)
21 #define CONFIG_SYS_CBSIZE		1024
22 #define CONFIG_SKIP_LOWLEVEL_INIT
23 
24 #define CONFIG_SYS_TEXT_BASE		0x00200000
25 #define CONFIG_SYS_INIT_SP_ADDR		0x00400000
26 #define CONFIG_SYS_LOAD_ADDR		0x00280000
27 #define CONFIG_SYS_BOOTM_LEN		(64 << 20)	/* 64M */
28 
29 #define CONFIG_SPL_FRAMEWORK
30 #define CONFIG_SPL_TEXT_BASE            0x00000000
31 #define CONFIG_SPL_MAX_SIZE             0x60000
32 #define CONFIG_SPL_BSS_START_ADDR       0x400000
33 #define CONFIG_SPL_BSS_MAX_SIZE         0x20000
34 #define CONFIG_SPL_STACK		0x00188000
35 
36 #define GICD_BASE			0xffB71000
37 #define GICC_BASE			0xffB72000
38 
39 #define CONFIG_ROCKUSB_G_DNL_PID	0x330A
40 
41 #define CONFIG_BOUNCE_BUFFER
42 #define COUNTER_FREQUENCY              24000000
43 #define CONFIG_PREBOOT
44 
45 #define CONFIG_SUPPORT_EMMC_RPMB
46 
47 #ifndef CONFIG_SPL_BUILD
48 
49 /* usb mass storage */
50 #define CONFIG_USB_FUNCTION_MASS_STORAGE
51 
52 #define ENV_MEM_LAYOUT_SETTINGS \
53 	"scriptaddr=0x00500000\0" \
54 	"pxefile_addr_r=0x00600000\0" \
55 	"fdt_addr_r=0x08300000\0" \
56 	"kernel_addr_r=0x00280000\0" \
57 	"ramdisk_addr_r=0x0a200000\0"
58 
59 #include <config_distro_bootcmd.h>
60 
61 #ifndef ROCKCHIP_DEVICE_SETTINGS
62 #define ROCKCHIP_DEVICE_SETTINGS
63 #endif
64 
65 #define CONFIG_EXTRA_ENV_SETTINGS \
66 	ENV_MEM_LAYOUT_SETTINGS	\
67 	"partitions=" PARTS_DEFAULT \
68 	RKIMG_DET_BOOTDEV \
69 	ROCKCHIP_DEVICE_SETTINGS \
70 	BOOTENV
71 
72 #endif
73 
74 #endif
75