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 
12a13110a9SKlaus Goger /*
13a13110a9SKlaus Goger  * SPL @ 32kB for ~130kB
14a13110a9SKlaus Goger  * ENV @ 240KB for 8kB
15a13110a9SKlaus Goger  * FIT payload (ATF, U-Boot, FDT) @ 256kB
16a13110a9SKlaus Goger  */
17a13110a9SKlaus Goger #undef CONFIG_ENV_OFFSET
18a13110a9SKlaus Goger #define CONFIG_ENV_OFFSET (240 * 1024)
19a13110a9SKlaus Goger 
20a13110a9SKlaus Goger #define CONFIG_ENV_IS_IN_MMC
21a13110a9SKlaus Goger #define CONFIG_SYS_MMC_ENV_DEV 1
22a13110a9SKlaus Goger 
23a13110a9SKlaus Goger #define SDRAM_BANK_SIZE			(2UL << 30)
24a13110a9SKlaus Goger 
25*9415b9a7SPhilipp Tomsich #define CONFIG_MISC_INIT_R
26*9415b9a7SPhilipp Tomsich #define CONFIG_SERIAL_TAG
27*9415b9a7SPhilipp Tomsich #define CONFIG_ENV_OVERWRITE
28*9415b9a7SPhilipp Tomsich 
29a13110a9SKlaus Goger #endif
30