blob: 16b6b8aa9a65acc5de4628bbced01af85aaa5c61 [file] [log] [blame]
Jorge Ramirez-Ortiz766263c2018-09-23 09:39:56 +02001/*
Biju Das08d33082020-12-13 19:41:27 +00002 * Copyright (c) 2015-2020, Renesas Electronics Corporation. All rights reserved.
Jorge Ramirez-Ortiz766263c2018-09-23 09:39:56 +02003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef EMMC_CONFIG_H
8#define EMMC_CONFIG_H
Jorge Ramirez-Ortiz766263c2018-09-23 09:39:56 +02009
Biju Das08d33082020-12-13 19:41:27 +000010/* RCA */
11#define EMMC_RCA 1UL
12/* 314ms (freq = 400KHz, timeout Counter = 0x04(SDCLK * 2^17) */
13#define EMMC_RW_DATA_TIMEOUT 0x40UL
14/* how many times to try after fail. Don't change. */
15#define EMMC_RETRY_COUNT 0
16#define EMMC_CMD_MAX 60UL /* Don't change. */
Jorge Ramirez-Ortiz766263c2018-09-23 09:39:56 +020017
Biju Das08d33082020-12-13 19:41:27 +000018#define LOADIMAGE_FLAGS_DMA_ENABLE 0x00000001UL
Jorge Ramirez-Ortiz766263c2018-09-23 09:39:56 +020019
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000020#endif /* EMMC_CONFIG_H */