blob: 39d07862669ac773a2785e51d21a04b2d4e24b7e [file] [log] [blame]
Klaus Goger81039932017-04-07 19:13:38 +02001/*
2 * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef __PUMA_RK3399_H
8#define __PUMA_RK3399_H
9
10#include <configs/rk3399_common.h>
11
12/*
13 * SPL @ 32kB for ~130kB
14 * ENV @ 240KB for 8kB
15 * FIT payload (ATF, U-Boot, FDT) @ 256kB
16 */
17#undef CONFIG_ENV_OFFSET
18#define CONFIG_ENV_OFFSET (240 * 1024)
19
Klaus Gogercc5b4d72017-11-06 23:02:56 +010020#if defined(CONFIG_ENV_IS_IN_MMC)
Klaus Goger81039932017-04-07 19:13:38 +020021#define CONFIG_SYS_MMC_ENV_DEV 1
Klaus Gogercc5b4d72017-11-06 23:02:56 +010022#elif defined(CONFIG_ENV_IS_IN_SPI_FLASH)
23#define CONFIG_ENV_SECT_SIZE (8 * 1024)
24#define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS
25#define CONFIG_ENV_SPI_CS CONFIG_SF_DEFAULT_CS
26#define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE
27#define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED
28#endif
Klaus Goger81039932017-04-07 19:13:38 +020029
30#define SDRAM_BANK_SIZE (2UL << 30)
31
Philipp Tomsich2ebe2892017-05-05 19:21:39 +020032#define CONFIG_MISC_INIT_R
33#define CONFIG_SERIAL_TAG
34#define CONFIG_ENV_OVERWRITE
35
Philipp Tomsichd0176962017-05-31 17:59:36 +020036#define CONFIG_BMP_16BPP
37#define CONFIG_BMP_24BPP
38#define CONFIG_BMP_32BPP
39
Klaus Goger81039932017-04-07 19:13:38 +020040#endif