linux/drivers/usb/host/ohci-nxp.c

// SPDX-License-Identifier: GPL-2.0
/*
 * driver for NXP USB Host devices
 *
 * Currently supported OHCI host devices:
 * - NXP LPC32xx
 *
 * Authors: Dmitry Chigirev <[email protected]>
 *	    Vitaly Wool <[email protected]>
 *
 * register initialization is based on code examples provided by Philips
 * Copyright (c) 2005 Koninklijke Philips Electronics N.V.
 *
 * NOTE: This driver does not have suspend/resume functionality
 * This driver is intended for engineering development purposes only
 *
 * 2005-2006 (c) MontaVista Software, Inc.
 */
#include <linux/clk.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/usb/isp1301.h>
#include <linux/usb.h>
#include <linux/usb/hcd.h>

#include "ohci.h"

#define USB_CONFIG_BASE

/* USB_OTG_STAT_CONTROL bit defines */
#define TRANSPARENT_I2C_EN
#define HOST_EN

/* On LPC32xx, those are undefined */
#ifndef start_int_set_falling_edge
#define start_int_set_falling_edge(irq)
#define start_int_set_rising_edge(irq)
#define start_int_ack(irq)
#define start_int_mask(irq)
#define start_int_umask(irq)
#endif

#define DRIVER_DESC

static const char hcd_name[] =;
static struct hc_driver __read_mostly ohci_nxp_hc_driver;

static struct i2c_client *isp1301_i2c_client;

static struct clk *usb_host_clk;

static void isp1301_configure_lpc32xx(void)
{}

static void isp1301_configure(void)
{}

static inline void isp1301_vbus_on(void)
{}

static inline void isp1301_vbus_off(void)
{}

static void ohci_nxp_start_hc(void)
{}

static void ohci_nxp_stop_hc(void)
{}

static int ohci_hcd_nxp_probe(struct platform_device *pdev)
{}

static void ohci_hcd_nxp_remove(struct platform_device *pdev)
{}

/* work with hotplug and coldplug */
MODULE_ALIAS();

#ifdef CONFIG_OF
static const struct of_device_id ohci_hcd_nxp_match[] =;
MODULE_DEVICE_TABLE(of, ohci_hcd_nxp_match);
#endif

static struct platform_driver ohci_hcd_nxp_driver =;

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

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

MODULE_DESCRIPTION();
MODULE_LICENSE();