aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxc/usb_hsic_xcvr.c
blob: 9dbbdc4662dfd02a2d9a6bd08068ac9f79f1a94c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 * Copyright (C) 2005-2011 Freescale Semiconductor, Inc. All Rights Reserved.
 */

/*
 * The code contained herein is licensed under the GNU General Public
 * License. You may obtain a copy of the GNU General Public License
 * Version 2 or later at the following locations:
 *
 * http://www.opensource.org/licenses/gpl-license.html
 * http://www.gnu.org/copyleft/gpl.html
 * For HSIC, there is no usb phy, so the operation at this file is noop
 */

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/fsl_devices.h>
#include <linux/pmic_external.h>
#include <linux/usb/fsl_xcvr.h>

#include <mach/hardware.h>
#include <mach/arc_otg.h>
#include <asm/mach-types.h>

static struct fsl_xcvr_ops hsic_xcvr_ops = {
	.name = "hsic_xcvr",
	.xcvr_type = PORTSC_HSIC_MODE,
};

extern void fsl_usb_xcvr_register(struct fsl_xcvr_ops *xcvr_ops);

static int __init hsic_xcvr_init(void)
{
	fsl_usb_xcvr_register(&hsic_xcvr_ops);
	return 0;
}

extern void fsl_usb_xcvr_unregister(struct fsl_xcvr_ops *xcvr_ops);

static void __exit hsic_xcvr_exit(void)
{
	fsl_usb_xcvr_unregister(&hsic_xcvr_ops);
}

subsys_initcall(hsic_xcvr_init);
module_exit(hsic_xcvr_exit);

MODULE_AUTHOR("Freescale Semiconductor, Inc.");
MODULE_DESCRIPTION("nop xcvr driver");
MODULE_LICENSE("GPL");