Klaus Goger | a13110a | 2017-04-07 19:13:38 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
Klaus Goger | b5557ff | 2017-11-06 23:02:56 +0100 | [diff] [blame] | 12 | #if defined(CONFIG_ENV_IS_IN_MMC) |
Klaus Goger | a13110a | 2017-04-07 19:13:38 +0200 | [diff] [blame] | 13 | #define CONFIG_SYS_MMC_ENV_DEV 1 |
Klaus Goger | b5557ff | 2017-11-06 23:02:56 +0100 | [diff] [blame] | 14 | #elif defined(CONFIG_ENV_IS_IN_SPI_FLASH) |
| 15 | #define CONFIG_ENV_SECT_SIZE (8 * 1024) |
| 16 | #define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS |
| 17 | #define CONFIG_ENV_SPI_CS CONFIG_SF_DEFAULT_CS |
| 18 | #define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE |
| 19 | #define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED |
| 20 | #endif |
Klaus Goger | a13110a | 2017-04-07 19:13:38 +0200 | [diff] [blame] | 21 | |
| 22 | #define SDRAM_BANK_SIZE (2UL << 30) |
| 23 | |
Philipp Tomsich | 9415b9a | 2017-05-05 19:21:39 +0200 | [diff] [blame] | 24 | #define CONFIG_MISC_INIT_R |
| 25 | #define CONFIG_SERIAL_TAG |
| 26 | #define CONFIG_ENV_OVERWRITE |
| 27 | |
Philipp Tomsich | 6c53d68 | 2017-05-31 17:59:36 +0200 | [diff] [blame] | 28 | #define CONFIG_BMP_16BPP |
| 29 | #define CONFIG_BMP_24BPP |
| 30 | #define CONFIG_BMP_32BPP |
| 31 | |
Klaus Goger | a13110a | 2017-04-07 19:13:38 +0200 | [diff] [blame] | 32 | #endif |