xref: /rk3399_rockchip-uboot/include/configs/puma_rk3399.h (revision 49a2ef1590e0031344e530783960938494572f36)
1a13110a9SKlaus Goger /*
2a13110a9SKlaus Goger  * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
3a13110a9SKlaus Goger  *
4a13110a9SKlaus Goger  * SPDX-License-Identifier:     GPL-2.0+
5a13110a9SKlaus Goger  */
6a13110a9SKlaus Goger 
7a13110a9SKlaus Goger #ifndef __PUMA_RK3399_H
8a13110a9SKlaus Goger #define __PUMA_RK3399_H
9a13110a9SKlaus Goger 
10a13110a9SKlaus Goger #include <configs/rk3399_common.h>
11a13110a9SKlaus Goger 
12*bf88a4e1SKlaus Goger #if defined(CONFIG_ENV_IS_IN_MMC)
13a13110a9SKlaus Goger #define CONFIG_SYS_MMC_ENV_DEV 1
14*bf88a4e1SKlaus Goger #elif defined(CONFIG_ENV_IS_IN_SPI_FLASH)
15*bf88a4e1SKlaus Goger #define CONFIG_ENV_SECT_SIZE		(8 * 1024)
16*bf88a4e1SKlaus Goger #define CONFIG_ENV_SPI_BUS		CONFIG_SF_DEFAULT_BUS
17*bf88a4e1SKlaus Goger #define CONFIG_ENV_SPI_CS		CONFIG_SF_DEFAULT_CS
18*bf88a4e1SKlaus Goger #define CONFIG_ENV_SPI_MODE		CONFIG_SF_DEFAULT_MODE
19*bf88a4e1SKlaus Goger #define CONFIG_ENV_SPI_MAX_HZ	CONFIG_SF_DEFAULT_SPEED
20*bf88a4e1SKlaus Goger #endif
21a13110a9SKlaus Goger 
22a13110a9SKlaus Goger #define SDRAM_BANK_SIZE			(2UL << 30)
23a13110a9SKlaus Goger 
249415b9a7SPhilipp Tomsich #define CONFIG_MISC_INIT_R
259415b9a7SPhilipp Tomsich #define CONFIG_SERIAL_TAG
269415b9a7SPhilipp Tomsich #define CONFIG_ENV_OVERWRITE
279415b9a7SPhilipp Tomsich 
286c53d680SPhilipp Tomsich #define CONFIG_BMP_16BPP
296c53d680SPhilipp Tomsich #define CONFIG_BMP_24BPP
306c53d680SPhilipp Tomsich #define CONFIG_BMP_32BPP
316c53d680SPhilipp Tomsich 
324cfbff4dSMark Yao #define ROCKCHIP_DEVICE_SETTINGS \
334cfbff4dSMark Yao 		"stdout=serial,vidconsole\0" \
344cfbff4dSMark Yao 		"stderr=serial,vidconsole\0"
354cfbff4dSMark Yao 
36a13110a9SKlaus Goger #endif
37