xref: /openbmc/u-boot/include/configs/rock2.h (revision 70616df2)
17c1058faSSimon Glass /*
27c1058faSSimon Glass  * (C) Copyright 2015 Google, Inc
37c1058faSSimon Glass  *
47c1058faSSimon Glass  * SPDX-License-Identifier:     GPL-2.0+
57c1058faSSimon Glass  */
67c1058faSSimon Glass 
77c1058faSSimon Glass #ifndef __CONFIG_H
87c1058faSSimon Glass #define __CONFIG_H
97c1058faSSimon Glass 
107c1058faSSimon Glass #define ROCKCHIP_DEVICE_SETTINGS \
117c1058faSSimon Glass 		"stdin=serial,cros-ec-keyb\0" \
127c1058faSSimon Glass 		"stdout=serial,vidconsole\0" \
137c1058faSSimon Glass 		"stderr=serial,vidconsole\0"
147c1058faSSimon Glass 
157c1058faSSimon Glass #include <configs/rk3288_common.h>
167c1058faSSimon Glass 
177c1058faSSimon Glass #define CONFIG_ENV_IS_IN_MMC
187c1058faSSimon Glass #define CONFIG_SYS_MMC_ENV_DEV 0
19*70616df2SSandy Patterson 
20*70616df2SSandy Patterson #ifdef CONFIG_ROCKCHIP_SPL_BACK_TO_BROM
21*70616df2SSandy Patterson /* SPL @ 32k for 34k
22*70616df2SSandy Patterson  * u-boot directly after @ 68k for 400k or so
23*70616df2SSandy Patterson  * ENV @ 992k
24*70616df2SSandy Patterson  */
25*70616df2SSandy Patterson #define CONFIG_ENV_OFFSET ((1024-32) * 1024)
26*70616df2SSandy Patterson #else
277c1058faSSimon Glass /* SPL @ 32k for ~36k
287c1058faSSimon Glass  * ENV @ 96k
297c1058faSSimon Glass  * u-boot @ 128K
307c1058faSSimon Glass  */
317c1058faSSimon Glass #define CONFIG_ENV_OFFSET (96 * 1024)
32*70616df2SSandy Patterson #endif
337c1058faSSimon Glass 
347c1058faSSimon Glass #define CONFIG_SYS_WHITE_ON_BLACK
357c1058faSSimon Glass #define CONFIG_CONSOLE_SCROLL_LINES		10
367c1058faSSimon Glass 
377c1058faSSimon Glass #endif
38