6eca689b99
1. We always use dma for sdmmc, and it could not be used as SDIO 2. restore affected registers includes ctype and timeout 3. expose API for ISP/VICAP usage 4. remove SD3.0 support which won't affect write throughput 5. limit ffaa0000 controller only be used as sd card before ECO 6. reserve a descriptor for dirty data, in order to let DMA finish the prior descriptors and the dirty data in the last descriptor will not be sent at all. 7. use CMD12 + reset to clean the remain dirty data and recovery IP Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Change-Id: Ib1456c8f399cdeda391ba459b22097b0f5820e53
14 lines
336 B
C
14 lines
336 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __RK_SDMMC_H
|
|
#define __RK_SDMMC_H
|
|
|
|
#if IS_ENABLED(CONFIG_CPU_RV1106) && IS_REACHABLE(CONFIG_MMC_DW)
|
|
void rv1106_sdmmc_get_lock(void);
|
|
void rv1106_sdmmc_put_lock(void);
|
|
#else
|
|
static inline void rv1106_sdmmc_get_lock(void) {}
|
|
static inline void rv1106_sdmmc_put_lock(void) {}
|
|
#endif
|
|
|
|
#endif
|