xref: /rk3399_rockchip-uboot/include/configs/rk3368_common.h (revision 37a0c6008553f3bbd0db6bb8a88e3f5b0c7606eb)
1*37a0c600SAndreas Färber /*
2*37a0c600SAndreas Färber  * Copyright (c) 2016 Andreas Färber
3*37a0c600SAndreas Färber  *
4*37a0c600SAndreas Färber  * SPDX-License-Identifier:     GPL-2.0+
5*37a0c600SAndreas Färber  */
6*37a0c600SAndreas Färber 
7*37a0c600SAndreas Färber #ifndef __CONFIG_RK3368_COMMON_H
8*37a0c600SAndreas Färber #define __CONFIG_RK3368_COMMON_H
9*37a0c600SAndreas Färber 
10*37a0c600SAndreas Färber #define CONFIG_SYS_CACHELINE_SIZE	64
11*37a0c600SAndreas Färber 
12*37a0c600SAndreas Färber #include <asm/arch/hardware.h>
13*37a0c600SAndreas Färber #include <linux/sizes.h>
14*37a0c600SAndreas Färber 
15*37a0c600SAndreas Färber #define CONFIG_NR_DRAM_BANKS		1
16*37a0c600SAndreas Färber #define CONFIG_SYS_MAXARGS		16
17*37a0c600SAndreas Färber #define CONFIG_BAUDRATE			115200
18*37a0c600SAndreas Färber #define CONFIG_SYS_MALLOC_LEN		(32 << 20)
19*37a0c600SAndreas Färber #define CONFIG_SYS_CBSIZE		1024
20*37a0c600SAndreas Färber #define CONFIG_SKIP_LOWLEVEL_INIT
21*37a0c600SAndreas Färber 
22*37a0c600SAndreas Färber #define CONFIG_SYS_NS16550_MEM32
23*37a0c600SAndreas Färber 
24*37a0c600SAndreas Färber #define CONFIG_SYS_TEXT_BASE		0x00200000
25*37a0c600SAndreas Färber #define CONFIG_SYS_INIT_SP_ADDR		0x00300000
26*37a0c600SAndreas Färber #define CONFIG_SYS_LOAD_ADDR		0x00280000
27*37a0c600SAndreas Färber 
28*37a0c600SAndreas Färber #define CONFIG_BOUNCE_BUFFER
29*37a0c600SAndreas Färber 
30*37a0c600SAndreas Färber #ifndef CONFIG_SPL_BUILD
31*37a0c600SAndreas Färber #define ENV_MEM_LAYOUT_SETTINGS \
32*37a0c600SAndreas Färber 	"scriptaddr=0x00500000\0" \
33*37a0c600SAndreas Färber 	"pxefile_addr_r=0x00600000\0" \
34*37a0c600SAndreas Färber 	"fdt_addr_r=0x5600000\0" \
35*37a0c600SAndreas Färber 	"kernel_addr_r=0x280000\0" \
36*37a0c600SAndreas Färber 	"ramdisk_addr_r=0x5bf0000\0"
37*37a0c600SAndreas Färber 
38*37a0c600SAndreas Färber #include <config_distro_defaults.h>
39*37a0c600SAndreas Färber 
40*37a0c600SAndreas Färber #define BOOT_TARGET_DEVICES(func)
41*37a0c600SAndreas Färber 
42*37a0c600SAndreas Färber #include <config_distro_bootcmd.h>
43*37a0c600SAndreas Färber 
44*37a0c600SAndreas Färber #define CONFIG_EXTRA_ENV_SETTINGS \
45*37a0c600SAndreas Färber 	BOOTENV
46*37a0c600SAndreas Färber 
47*37a0c600SAndreas Färber #endif
48*37a0c600SAndreas Färber 
49*37a0c600SAndreas Färber #endif
50