Heiko Stübner | 4719768 | 2017-03-26 21:09:55 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2015 Google, Inc |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #ifndef __CONFIG_H |
| 8 | #define __CONFIG_H |
| 9 | |
| 10 | #define ROCKCHIP_DEVICE_SETTINGS |
| 11 | #include <configs/rk3188_common.h> |
| 12 | |
Heiko Stübner | 4719768 | 2017-03-26 21:09:55 +0200 | [diff] [blame] | 13 | #define CONFIG_SYS_MMC_ENV_DEV 0 |
| 14 | |
Tom Rini | aa6aaf9 | 2017-08-14 13:21:44 -0400 | [diff] [blame] | 15 | #if CONFIG_IS_ENABLED(ROCKCHIP_BACK_TO_BROM) |
Heiko Stübner | 4719768 | 2017-03-26 21:09:55 +0200 | [diff] [blame] | 16 | /* SPL @ 32k for 34k |
| 17 | * u-boot directly after @ 68k for 400k or so |
| 18 | * ENV @ 992k |
| 19 | */ |
| 20 | #define CONFIG_ENV_OFFSET ((1024-32) * 1024) |
| 21 | #else |
| 22 | /* SPL @ 32k for ~36k |
| 23 | * ENV @ 96k |
| 24 | * u-boot @ 128K |
| 25 | */ |
| 26 | #define CONFIG_ENV_OFFSET (96 * 1024) |
| 27 | #endif |
| 28 | |
| 29 | #endif |