mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mmc: dw_mmc: Add support for IMG Pistachio
Add support for the DW MMC host found on the Imagination Pistachio SoC. Like the DW MMC hosts found on SOCFPGA and Rockchip SoCs, the DW MMC host on Pistachio requires the use of SDMMC_CMD_USE_HOLD_REG. Signed-off-by: Andrew Bresticker <[email protected]> Reviewed-by: Doug Anderson <[email protected]> Acked-by: Jaehoon Chung <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
This commit is contained in:
parent
d13552908b
commit
4d7c07cd6c
2 changed files with 35 additions and 0 deletions
|
|
@ -35,6 +35,10 @@ static const struct dw_mci_drv_data socfpga_drv_data = {
|
|||
.prepare_command = dw_mci_pltfm_prepare_command,
|
||||
};
|
||||
|
||||
static const struct dw_mci_drv_data pistachio_drv_data = {
|
||||
.prepare_command = dw_mci_pltfm_prepare_command,
|
||||
};
|
||||
|
||||
int dw_mci_pltfm_register(struct platform_device *pdev,
|
||||
const struct dw_mci_drv_data *drv_data)
|
||||
{
|
||||
|
|
@ -90,6 +94,8 @@ static const struct of_device_id dw_mci_pltfm_match[] = {
|
|||
{ .compatible = "snps,dw-mshc", },
|
||||
{ .compatible = "altr,socfpga-dw-mshc",
|
||||
.data = &socfpga_drv_data },
|
||||
{ .compatible = "img,pistachio-dw-mshc",
|
||||
.data = &pistachio_drv_data },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, dw_mci_pltfm_match);
|
||||
|
|
|
|||
Loading…
Reference in a new issue