mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 00:48:52 +09:00
![Kever Yang](/assets/img/avatar_default.png)
rk3399 has two mmc dev controller: mmc 0: SD card; mmc 1: EMMC U-Boot will scan the mmc boot device configured by CONFIG_SYS_MMC_ENV_DEV, since evb has emmc on board, let's set the EMMC as default. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
26 lines
428 B
C
26 lines
428 B
C
/*
|
|
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __EVB_RK3399_H
|
|
#define __EVB_RK3399_H
|
|
|
|
#include <configs/rk3399_common.h>
|
|
|
|
#define CONFIG_ENV_IS_IN_MMC
|
|
#define CONFIG_SYS_MMC_ENV_DEV 1
|
|
/*
|
|
* SPL @ 32k for ~36k
|
|
* ENV @ 96k
|
|
* u-boot @ 128K
|
|
*/
|
|
#define CONFIG_ENV_OFFSET (96 * 1024)
|
|
|
|
#define SDRAM_BANK_SIZE (2UL << 30)
|
|
|
|
#define CONFIG_SYS_WHITE_ON_BLACK
|
|
|
|
#endif
|