xref: /rk3399_ARM-atf/drivers/renesas/common/emmc/emmc_config.h (revision 65d227c3a20c80bb70f796e5839dc96014f0f9cf)
1*b28c29d0SBiju Das /*
2*b28c29d0SBiju Das  * Copyright (c) 2015-2020, Renesas Electronics Corporation. All rights reserved.
3*b28c29d0SBiju Das  *
4*b28c29d0SBiju Das  * SPDX-License-Identifier: BSD-3-Clause
5*b28c29d0SBiju Das  */
6*b28c29d0SBiju Das 
7*b28c29d0SBiju Das #ifndef EMMC_CONFIG_H
8*b28c29d0SBiju Das #define EMMC_CONFIG_H
9*b28c29d0SBiju Das 
10*b28c29d0SBiju Das /* RCA */
11*b28c29d0SBiju Das #define EMMC_RCA		1UL
12*b28c29d0SBiju Das /* 314ms (freq = 400KHz, timeout Counter = 0x04(SDCLK * 2^17)  */
13*b28c29d0SBiju Das #define EMMC_RW_DATA_TIMEOUT	0x40UL
14*b28c29d0SBiju Das /* how many times to try after fail. Don't change. */
15*b28c29d0SBiju Das #define EMMC_RETRY_COUNT	0
16*b28c29d0SBiju Das #define EMMC_CMD_MAX		60UL	/* Don't change. */
17*b28c29d0SBiju Das 
18*b28c29d0SBiju Das #define LOADIMAGE_FLAGS_DMA_ENABLE	0x00000001UL
19*b28c29d0SBiju Das 
20*b28c29d0SBiju Das #endif /* EMMC_CONFIG_H */
21