oleavr-rgl-a500-mini-linux-.../drivers/mmc/host/sunxi-mmc-sun50iw1p1-2.h
Ole André Vadla Ravnås 169c65d57e Initial commit
2022-05-07 01:01:45 +02:00

35 lines
1.2 KiB
C
Executable file

/*
* Driver for sunxi SD/MMC host controllers
* (C) Copyright 2012-2017 lixiang <lixiang@allwinnertech.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*/
#ifdef CONFIG_ARCH_SUN50IW1P1
#ifndef __SUNXI_MMC_SUN50IW1P1_2_H__
#define __SUNXI_MMC_SUN50IW1P1_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);
int sunxi_mmc_oclk_onoff_sdmmc2(struct sunxi_mmc_host *host, u32 oclk_en);
#endif
#endif