jk.kernel@gmail.com | b1aeb09 | 2016-07-26 18:28:29 +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 | |
jk.kernel@gmail.com | b1aeb09 | 2016-07-26 18:28:29 +0800 | [diff] [blame] | 13 | #define CONFIG_ENV_IS_IN_MMC |
| 14 | #define CONFIG_SYS_MMC_ENV_DEV 1 |
Jacob Chen | 6df354c | 2016-11-18 15:54:25 +0800 | [diff] [blame^] | 15 | |
| 16 | #ifdef CONFIG_ROCKCHIP_SPL_BACK_TO_BROM |
| 17 | /* SPL @ 32k for 34k |
| 18 | * u-boot directly after @ 68k for 400k or so |
| 19 | * ENV @ 992k |
| 20 | */ |
| 21 | #define CONFIG_ENV_OFFSET ((1024-32) * 1024) |
| 22 | #else |
jk.kernel@gmail.com | b1aeb09 | 2016-07-26 18:28:29 +0800 | [diff] [blame] | 23 | /* SPL @ 32k for ~36k |
| 24 | * ENV @ 96k |
| 25 | * u-boot @ 128K |
| 26 | */ |
| 27 | #define CONFIG_ENV_OFFSET (96 * 1024) |
Jacob Chen | 6df354c | 2016-11-18 15:54:25 +0800 | [diff] [blame^] | 28 | #endif |
jk.kernel@gmail.com | b1aeb09 | 2016-07-26 18:28:29 +0800 | [diff] [blame] | 29 | |
| 30 | #define CONFIG_SYS_WHITE_ON_BLACK |
jk.kernel@gmail.com | b1aeb09 | 2016-07-26 18:28:29 +0800 | [diff] [blame] | 31 | |
| 32 | #endif |