Lines Matching +full:dw +full:- +full:mshc
1 // SPDX-License-Identifier: GPL-2.0-or-later
23 #include "dw_mmc-pltfm.h"
31 host = devm_kzalloc(&pdev->dev, sizeof(struct dw_mci), GFP_KERNEL); in dw_mci_pltfm_register()
33 return -ENOMEM; in dw_mci_pltfm_register()
35 host->irq = platform_get_irq(pdev, 0); in dw_mci_pltfm_register()
36 if (host->irq < 0) in dw_mci_pltfm_register()
37 return host->irq; in dw_mci_pltfm_register()
39 host->drv_data = drv_data; in dw_mci_pltfm_register()
40 host->dev = &pdev->dev; in dw_mci_pltfm_register()
41 host->irq_flags = 0; in dw_mci_pltfm_register()
42 host->pdata = pdev->dev.platform_data; in dw_mci_pltfm_register()
45 host->regs = devm_ioremap_resource(&pdev->dev, regs); in dw_mci_pltfm_register()
46 if (IS_ERR(host->regs)) in dw_mci_pltfm_register()
47 return PTR_ERR(host->regs); in dw_mci_pltfm_register()
50 host->phy_regs = regs->start; in dw_mci_pltfm_register()
67 { .compatible = "snps,dw-mshc", },
68 { .compatible = "altr,socfpga-dw-mshc", },
69 { .compatible = "img,pistachio-dw-mshc", },
79 if (pdev->dev.of_node) { in dw_mci_pltfm_probe()
80 match = of_match_node(dw_mci_pltfm_match, pdev->dev.of_node); in dw_mci_pltfm_probe()
81 drv_data = match->data; in dw_mci_pltfm_probe()
109 MODULE_DESCRIPTION("DW Multimedia Card Interface driver");