~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise-security

« back to all changes in this revision

Viewing changes to include/linux/platform_data/mv_usb.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2011 Marvell International Ltd. All rights reserved.
 
3
 *
 
4
 * This program is free software; you can redistribute  it and/or modify it
 
5
 * under  the terms of  the GNU General  Public License as published by the
 
6
 * Free Software Foundation;  either version 2 of the  License, or (at your
 
7
 * option) any later version.
 
8
 */
 
9
 
 
10
#ifndef __MV_PLATFORM_USB_H
 
11
#define __MV_PLATFORM_USB_H
 
12
 
 
13
enum pxa_ehci_type {
 
14
        EHCI_UNDEFINED = 0,
 
15
        PXA_U2OEHCI,    /* pxa 168, 9xx */
 
16
        PXA_SPH,        /* pxa 168, 9xx SPH */
 
17
        MMP3_HSIC,      /* mmp3 hsic */
 
18
        MMP3_FSIC,      /* mmp3 fsic */
 
19
};
 
20
 
 
21
enum {
 
22
        MV_USB_MODE_OTG,
 
23
        MV_USB_MODE_HOST,
 
24
};
 
25
 
 
26
enum {
 
27
        VBUS_LOW        = 0,
 
28
        VBUS_HIGH       = 1 << 0,
 
29
};
 
30
 
 
31
struct mv_usb_addon_irq {
 
32
        unsigned int    irq;
 
33
        int             (*poll)(void);
 
34
};
 
35
 
 
36
struct mv_usb_platform_data {
 
37
        unsigned int            clknum;
 
38
        char                    **clkname;
 
39
        struct mv_usb_addon_irq *id;    /* Only valid for OTG. ID pin change*/
 
40
        struct mv_usb_addon_irq *vbus;  /* valid for OTG/UDC. VBUS change*/
 
41
 
 
42
        /* only valid for HCD. OTG or Host only*/
 
43
        unsigned int            mode;
 
44
 
 
45
        int     (*phy_init)(unsigned int regbase);
 
46
        void    (*phy_deinit)(unsigned int regbase);
 
47
        int     (*set_vbus)(unsigned int vbus);
 
48
};
 
49
 
 
50
#endif