dwc3-pci.c (3bc4f3993b93dbf1f6402e2034a2e20eb07db807) dwc3-pci.c (b62cd96de3161dfb125a769030eec35a4cab3d3a)
1/**
2 * dwc3-pci.c - PCI Specific glue layer
3 *
4 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com
5 *
6 * Authors: Felipe Balbi <balbi@ti.com>,
7 * Sebastian Andrzej Siewior <bigeasy@linutronix.de>
8 *

--- 14 unchanged lines hidden (view full) ---

23#include <linux/platform_device.h>
24
25#include <linux/usb/otg.h>
26#include <linux/usb/usb_phy_gen_xceiv.h>
27
28/* FIXME define these in <linux/pci_ids.h> */
29#define PCI_VENDOR_ID_SYNOPSYS 0x16c3
30#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3 0xabcd
1/**
2 * dwc3-pci.c - PCI Specific glue layer
3 *
4 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com
5 *
6 * Authors: Felipe Balbi <balbi@ti.com>,
7 * Sebastian Andrzej Siewior <bigeasy@linutronix.de>
8 *

--- 14 unchanged lines hidden (view full) ---

23#include <linux/platform_device.h>
24
25#include <linux/usb/otg.h>
26#include <linux/usb/usb_phy_gen_xceiv.h>
27
28/* FIXME define these in <linux/pci_ids.h> */
29#define PCI_VENDOR_ID_SYNOPSYS 0x16c3
30#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3 0xabcd
31#define PCI_DEVICE_ID_INTEL_BYT 0x0f37
31
32struct dwc3_pci {
33 struct device *dev;
34 struct platform_device *dwc3;
35 struct platform_device *usb2_phy;
36 struct platform_device *usb3_phy;
37};
38

--- 143 unchanged lines hidden (view full) ---

182 pci_disable_device(pci);
183}
184
185static DEFINE_PCI_DEVICE_TABLE(dwc3_pci_id_table) = {
186 {
187 PCI_DEVICE(PCI_VENDOR_ID_SYNOPSYS,
188 PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3),
189 },
32
33struct dwc3_pci {
34 struct device *dev;
35 struct platform_device *dwc3;
36 struct platform_device *usb2_phy;
37 struct platform_device *usb3_phy;
38};
39

--- 143 unchanged lines hidden (view full) ---

183 pci_disable_device(pci);
184}
185
186static DEFINE_PCI_DEVICE_TABLE(dwc3_pci_id_table) = {
187 {
188 PCI_DEVICE(PCI_VENDOR_ID_SYNOPSYS,
189 PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3),
190 },
191 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BYT), },
190 { } /* Terminating Entry */
191};
192MODULE_DEVICE_TABLE(pci, dwc3_pci_id_table);
193
194#ifdef CONFIG_PM_SLEEP
195static int dwc3_pci_suspend(struct device *dev)
196{
197 struct pci_dev *pci = to_pci_dev(dev);

--- 42 unchanged lines hidden ---
192 { } /* Terminating Entry */
193};
194MODULE_DEVICE_TABLE(pci, dwc3_pci_id_table);
195
196#ifdef CONFIG_PM_SLEEP
197static int dwc3_pci_suspend(struct device *dev)
198{
199 struct pci_dev *pci = to_pci_dev(dev);

--- 42 unchanged lines hidden ---