blob: 5a623ca6ead08db54e05067a347b2e5c9ed1ffa5 [file] [log] [blame]
Xu Ziyuan535b3dc2016-08-01 08:46:19 +08001/*
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 Ziyuan5e6f7cc2016-09-09 21:44:50 +080013#undef BOOT_TARGET_DEVICES
14
15#define BOOT_TARGET_DEVICES(func) \
16 func(MMC, mmc, 0)
17
Xu Ziyuan535b3dc2016-08-01 08:46:19 +080018#define CONFIG_ENV_IS_IN_MMC
Xu Ziyuan5e6f7cc2016-09-09 21:44:50 +080019#define CONFIG_SYS_MMC_ENV_DEV 0
Jacob Chen6df354c2016-11-18 15:54:25 +080020
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 Ziyuan535b3dc2016-08-01 08:46:19 +080028/* SPL @ 32k for ~36k
29 * ENV @ 96k
30 * u-boot @ 128K
31 */
32#define CONFIG_ENV_OFFSET (96 * 1024)
Jacob Chen6df354c2016-11-18 15:54:25 +080033#endif
Xu Ziyuan535b3dc2016-08-01 08:46:19 +080034
35#define CONFIG_SYS_WHITE_ON_BLACK
Xu Ziyuan535b3dc2016-08-01 08:46:19 +080036
37#endif