1 /* 2 * Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its 3 * affiliates 4 * 5 * SPDX-License-Identifier: BSD-3-Clause 6 */ 7 8 #ifndef R_SDHI_CFG_H_ 9 #define R_SDHI_CFG_H_ 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 #define SDHI_CFG_PARAM_CHECKING_ENABLE (BSP_CFG_PARAM_CHECKING_ENABLE) 15 #define SDMMC_CFG_UNALIGNED_ACCESS_ENABLE (1) 16 #define SDHI_CFG_SD_SUPPORT_ENABLE \ 17 (DT_PROP_OR(DT_NODELABEL(sdhc0), sd_support, 0)) || \ 18 (DT_PROP_OR(DT_NODELABEL(sdhc1), sd_support, 0)) 19 #define SDHI_CFG_EMMC_SUPPORT_ENABLE \ 20 (DT_PROP_OR(DT_NODELABEL(sdhc0), mmc_support, 0)) || \ 21 (DT_PROP_OR(DT_NODELABEL(sdhc1), mmc_support, 0)) 22 23 #ifdef __cplusplus 24 } 25 #endif 26 #endif /* R_SDHI_CFG_H_ */ 27