linux/drivers/usb/host/xhci-plat.c

// SPDX-License-Identifier: GPL-2.0
/*
 * xhci-plat.c - xHCI host controller driver platform Bus Glue.
 *
 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com
 * Author: Sebastian Andrzej Siewior <[email protected]>
 *
 * A lot of code borrowed from the Linux xHCI driver.
 */

#include <linux/clk.h>
#include <linux/dma-mapping.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/usb/phy.h>
#include <linux/slab.h>
#include <linux/acpi.h>
#include <linux/usb/of.h>
#include <linux/reset.h>

#include "xhci.h"
#include "xhci-plat.h"
#include "xhci-mvebu.h"

static struct hc_driver __read_mostly xhci_plat_hc_driver;

static int xhci_plat_setup(struct usb_hcd *hcd);
static int xhci_plat_start(struct usb_hcd *hcd);

static const struct xhci_driver_overrides xhci_plat_overrides __initconst =;

static void xhci_priv_plat_start(struct usb_hcd *hcd)
{}

static int xhci_priv_init_quirk(struct usb_hcd *hcd)
{}

static int xhci_priv_suspend_quirk(struct usb_hcd *hcd)
{}

static int xhci_priv_resume_quirk(struct usb_hcd *hcd)
{}

static void xhci_plat_quirks(struct device *dev, struct xhci_hcd *xhci)
{}

/* called during probe() after chip reset completes */
static int xhci_plat_setup(struct usb_hcd *hcd)
{}

static int xhci_plat_start(struct usb_hcd *hcd)
{}

#ifdef CONFIG_OF
static const struct xhci_plat_priv xhci_plat_marvell_armada =;

static const struct xhci_plat_priv xhci_plat_marvell_armada3700 =;

static const struct xhci_plat_priv xhci_plat_brcm =;

static const struct of_device_id usb_xhci_of_match[] =;
MODULE_DEVICE_TABLE(of, usb_xhci_of_match);
#endif

int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const struct xhci_plat_priv *priv_match)
{}
EXPORT_SYMBOL_GPL();

static int xhci_generic_plat_probe(struct platform_device *pdev)
{}

void xhci_plat_remove(struct platform_device *dev)
{}
EXPORT_SYMBOL_GPL();

static int xhci_plat_suspend(struct device *dev)
{}

static int xhci_plat_resume_common(struct device *dev, struct pm_message pmsg)
{}

static int xhci_plat_resume(struct device *dev)
{}

static int xhci_plat_restore(struct device *dev)
{}

static int __maybe_unused xhci_plat_runtime_suspend(struct device *dev)
{}

static int __maybe_unused xhci_plat_runtime_resume(struct device *dev)
{}

const struct dev_pm_ops xhci_plat_pm_ops =;
EXPORT_SYMBOL_GPL();

#ifdef CONFIG_ACPI
static const struct acpi_device_id usb_xhci_acpi_match[] =;
MODULE_DEVICE_TABLE(acpi, usb_xhci_acpi_match);
#endif

static struct platform_driver usb_generic_xhci_driver =;
MODULE_ALIAS();

static int __init xhci_plat_init(void)
{}
module_init();

static void __exit xhci_plat_exit(void)
{}
module_exit(xhci_plat_exit);

MODULE_DESCRIPTION();
MODULE_LICENSE();