1
2
3
4
5
6 #ifndef __MUSB_OMAP243X_H__
7 #define __MUSB_OMAP243X_H__
8
9 #include <linux/platform_data/usb-omap.h>
10
11
12
13
14
15 #define OTG_REVISION 0x400
16
17 #define OTG_SYSCONFIG 0x404
18 # define MIDLEMODE 12
19 # define FORCESTDBY (0 << MIDLEMODE)
20 # define NOSTDBY (1 << MIDLEMODE)
21 # define SMARTSTDBY (2 << MIDLEMODE)
22
23 # define SIDLEMODE 3
24 # define FORCEIDLE (0 << SIDLEMODE)
25 # define NOIDLE (1 << SIDLEMODE)
26 # define SMARTIDLE (2 << SIDLEMODE)
27
28 # define ENABLEWAKEUP (1 << 2)
29 # define SOFTRST (1 << 1)
30 # define AUTOIDLE (1 << 0)
31
32 #define OTG_SYSSTATUS 0x408
33 # define RESETDONE (1 << 0)
34
35 #define OTG_INTERFSEL 0x40c
36 # define EXTCP (1 << 2)
37 # define PHYSEL 0
38 # define UTMI_8BIT (0 << PHYSEL)
39 # define ULPI_12PIN (1 << PHYSEL)
40 # define ULPI_8PIN (2 << PHYSEL)
41
42 #define OTG_SIMENABLE 0x410
43 # define TM1 (1 << 0)
44
45 #define OTG_FORCESTDBY 0x414
46 # define ENABLEFORCE (1 << 0)
47
48 #endif