Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Klaus Goger | 8103993 | 2017-04-07 19:13:38 +0200 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH |
Klaus Goger | 8103993 | 2017-04-07 19:13:38 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __PUMA_RK3399_H |
| 7 | #define __PUMA_RK3399_H |
| 8 | |
| 9 | #include <configs/rk3399_common.h> |
| 10 | |
Klaus Goger | cc5b4d7 | 2017-11-06 23:02:56 +0100 | [diff] [blame] | 11 | #if defined(CONFIG_ENV_IS_IN_MMC) |
Klaus Goger | 8103993 | 2017-04-07 19:13:38 +0200 | [diff] [blame] | 12 | #define CONFIG_SYS_MMC_ENV_DEV 1 |
Klaus Goger | cc5b4d7 | 2017-11-06 23:02:56 +0100 | [diff] [blame] | 13 | #elif defined(CONFIG_ENV_IS_IN_SPI_FLASH) |
| 14 | #define CONFIG_ENV_SECT_SIZE (8 * 1024) |
| 15 | #define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS |
| 16 | #define CONFIG_ENV_SPI_CS CONFIG_SF_DEFAULT_CS |
| 17 | #define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE |
| 18 | #define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED |
| 19 | #endif |
Klaus Goger | 8103993 | 2017-04-07 19:13:38 +0200 | [diff] [blame] | 20 | |
| 21 | #define SDRAM_BANK_SIZE (2UL << 30) |
| 22 | |
Philipp Tomsich | 2ebe289 | 2017-05-05 19:21:39 +0200 | [diff] [blame] | 23 | #define CONFIG_SERIAL_TAG |
| 24 | #define CONFIG_ENV_OVERWRITE |
| 25 | |
Philipp Tomsich | d017696 | 2017-05-31 17:59:36 +0200 | [diff] [blame] | 26 | #define CONFIG_BMP_16BPP |
| 27 | #define CONFIG_BMP_24BPP |
| 28 | #define CONFIG_BMP_32BPP |
| 29 | |
Klaus Goger | 8103993 | 2017-04-07 19:13:38 +0200 | [diff] [blame] | 30 | #endif |