xref: /openbmc/u-boot/include/configs/rock2.h (revision 03bf9d58)
1 /*
2  * (C) Copyright 2015 Google, Inc
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6 
7 #ifndef __CONFIG_H
8 #define __CONFIG_H
9 
10 #define ROCKCHIP_DEVICE_SETTINGS \
11 		"stdin=serial,cros-ec-keyb\0" \
12 		"stdout=serial,vidconsole\0" \
13 		"stderr=serial,vidconsole\0"
14 
15 #include <configs/rk3288_common.h>
16 
17 #define CONFIG_ENV_IS_IN_MMC
18 #define CONFIG_SYS_MMC_ENV_DEV 0
19 
20 #ifdef CONFIG_ROCKCHIP_SPL_BACK_TO_BROM
21 /* SPL @ 32k for 34k
22  * u-boot directly after @ 68k for 400k or so
23  * ENV @ 992k
24  */
25 #define CONFIG_ENV_OFFSET ((1024-32) * 1024)
26 #else
27 /* SPL @ 32k for ~36k
28  * ENV @ 96k
29  * u-boot @ 128K
30  */
31 #define CONFIG_ENV_OFFSET (96 * 1024)
32 #endif
33 
34 #define CONFIG_SYS_WHITE_ON_BLACK
35 #define CONFIG_CONSOLE_SCROLL_LINES		10
36 
37 #endif
38