25 lines
760 B
C
25 lines
760 B
C
#ifdef CONFIG_ARCH_SUN8IW10P1
|
|
|
|
#ifndef __SUNXI_MMC_SUN8IW10P1_2_H__
|
|
#define __SUNXI_MMC_SUN8IW10P1_2_H__
|
|
|
|
#define SUNXI_SDMMC2
|
|
|
|
#define SUNXI_DMA_TL_SDMMC2 ((0x3<<28)|(15<<16)|240)
|
|
//one dma des can transfer data size = 1<<SUNXI_DES_SIZE_SDMMC2
|
|
#define SUNXI_DES_SIZE_SDMMC2 (12)
|
|
|
|
extern int sunxi_mmc_clk_set_rate_for_sdmmc2(struct sunxi_mmc_host *host,
|
|
struct mmc_ios *ios);
|
|
extern void sunxi_mmc_thld_ctl_for_sdmmc2(struct sunxi_mmc_host *host,
|
|
struct mmc_ios *ios, struct mmc_data *data);
|
|
|
|
void sunxi_mmc_save_spec_reg2(struct sunxi_mmc_host *host);
|
|
void sunxi_mmc_restore_spec_reg2(struct sunxi_mmc_host *host);
|
|
void sunxi_mmc_dump_dly2(struct sunxi_mmc_host *host);
|
|
void sunxi_mmc_do_shutdown2(struct platform_device * pdev);
|
|
|
|
#endif
|
|
|
|
#endif
|