blob: 686ccb99c50e2e47ab5d257295c4f798d4974133 [file] [log] [blame]
Jorge Ramirez-Ortiz766263c2018-09-23 09:39:56 +02001/*
2 * Copyright (c) 2015-2017, Renesas Electronics Corporation. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/**
8 * @file emmc_config.h
9 * @brief Configuration file
10 *
11 */
12
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000013#ifndef EMMC_CONFIG_H
14#define EMMC_CONFIG_H
Jorge Ramirez-Ortiz766263c2018-09-23 09:39:56 +020015
16/* ************************ HEADER (INCLUDE) SECTION *********************** */
17
18/* ***************** MACROS, CONSTANTS, COMPILATION FLAGS ****************** */
19
20/** @brief MMC driver config
21 */
22#define EMMC_RCA 1UL /* RCA */
23#define EMMC_RW_DATA_TIMEOUT 0x40UL /* 314ms (freq = 400KHz, timeout Counter = 0x04(SDCLK * 2^17) */
24#define EMMC_RETRY_COUNT 0 /* how many times to try after fail. Don't change. */
25#define EMMC_CMD_MAX 60UL /* Don't change. */
26
27/** @brief etc
28 */
29#define LOADIMAGE_FLAGS_DMA_ENABLE 0x00000001UL
30
31/* ********************** STRUCTURES, TYPE DEFINITIONS ********************* */
32
33/* ********************** DECLARATION OF EXTERNAL DATA ********************* */
34
35/* ************************** FUNCTION PROTOTYPES ************************** */
36
37/* ********************************* CODE ********************************** */
38
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000039#endif /* EMMC_CONFIG_H */
Jorge Ramirez-Ortiz766263c2018-09-23 09:39:56 +020040/* ******************************** END ************************************ */