Xu Ziyuan | 535b3dc | 2016-08-01 08:46:19 +0800 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2016 Rockchip Electronics Co., Ltd |
| 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/rk3288_common.h> |
| 12 | |
Xu Ziyuan | 5e6f7cc | 2016-09-09 21:44:50 +0800 | [diff] [blame] | 13 | #undef BOOT_TARGET_DEVICES |
| 14 | |
| 15 | #define BOOT_TARGET_DEVICES(func) \ |
| 16 | func(MMC, mmc, 0) |
| 17 | |
Xu Ziyuan | 535b3dc | 2016-08-01 08:46:19 +0800 | [diff] [blame] | 18 | #define CONFIG_ENV_IS_IN_MMC |
Xu Ziyuan | 5e6f7cc | 2016-09-09 21:44:50 +0800 | [diff] [blame] | 19 | #define CONFIG_SYS_MMC_ENV_DEV 0 |
Jacob Chen | 6df354c | 2016-11-18 15:54:25 +0800 | [diff] [blame] | 20 | |
| 21 | #ifdef CONFIG_ROCKCHIP_SPL_BACK_TO_BROM |
| 22 | /* SPL @ 32k for 34k |
| 23 | * u-boot directly after @ 68k for 400k or so |
| 24 | * ENV @ 992k |
| 25 | */ |
| 26 | #define CONFIG_ENV_OFFSET ((1024-32) * 1024) |
| 27 | #else |
Xu Ziyuan | 535b3dc | 2016-08-01 08:46:19 +0800 | [diff] [blame] | 28 | /* SPL @ 32k for ~36k |
| 29 | * ENV @ 96k |
| 30 | * u-boot @ 128K |
| 31 | */ |
| 32 | #define CONFIG_ENV_OFFSET (96 * 1024) |
Jacob Chen | 6df354c | 2016-11-18 15:54:25 +0800 | [diff] [blame] | 33 | #endif |
Xu Ziyuan | 535b3dc | 2016-08-01 08:46:19 +0800 | [diff] [blame] | 34 | |
| 35 | #define CONFIG_SYS_WHITE_ON_BLACK |
Xu Ziyuan | 535b3dc | 2016-08-01 08:46:19 +0800 | [diff] [blame] | 36 | |
| 37 | #endif |