• Home
  • Raw
  • Download

Lines Matching +full:dwc +full:- +full:ufshcd +full:- +full:1

1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2015-2016 Synopsys, Inc. (www.synopsys.com)
10 #include "ufshcd.h"
11 #include "ufshcd-dwc.h"
12 #include "tc-dwc-g210.h"
24 MODULE_PARM_DESC(tc_type, "Test Chip Type (20 = 20-bit, 40 = 40-bit)");
52 * struct ufs_hba_dwc_vops - UFS DWC specific variant operations
55 .name = "tc-dwc-g210-pci",
60 * tc_dwc_g210_pci_shutdown - main function to put the controller in reset state
69 * tc_dwc_g210_pci_remove - de-allocate PCI/SCSI host and host memory space
77 pm_runtime_forbid(&pdev->dev); in tc_dwc_g210_pci_remove()
78 pm_runtime_get_noresume(&pdev->dev); in tc_dwc_g210_pci_remove()
83 * tc_dwc_g210_pci_probe - probe routine of the driver
87 * Returns 0 on success, non-zero value on failure
104 dev_err(&pdev->dev, "test chip version not specified\n"); in tc_dwc_g210_pci_probe()
105 return -EPERM; in tc_dwc_g210_pci_probe()
110 dev_err(&pdev->dev, "pcim_enable_device failed\n"); in tc_dwc_g210_pci_probe()
116 err = pcim_iomap_regions(pdev, 1 << 0, UFSHCD); in tc_dwc_g210_pci_probe()
118 dev_err(&pdev->dev, "request and iomap failed\n"); in tc_dwc_g210_pci_probe()
124 err = ufshcd_alloc_host(&pdev->dev, &hba); in tc_dwc_g210_pci_probe()
126 dev_err(&pdev->dev, "Allocation failed\n"); in tc_dwc_g210_pci_probe()
130 hba->vops = &tc_dwc_g210_pci_hba_vops; in tc_dwc_g210_pci_probe()
132 err = ufshcd_init(hba, mmio_base, pdev->irq); in tc_dwc_g210_pci_probe()
134 dev_err(&pdev->dev, "Initialization failed\n"); in tc_dwc_g210_pci_probe()
138 pm_runtime_put_noidle(&pdev->dev); in tc_dwc_g210_pci_probe()
139 pm_runtime_allow(&pdev->dev); in tc_dwc_g210_pci_probe()
161 .name = "tc-dwc-g210-pci",