0001
0002
0003
0004
0005
0006 #ifndef __MUSB_OMAP243X_H__
0007 #define __MUSB_OMAP243X_H__
0008
0009 #include <linux/platform_data/usb-omap.h>
0010
0011
0012
0013
0014
0015 #define OTG_REVISION 0x400
0016
0017 #define OTG_SYSCONFIG 0x404
0018 # define MIDLEMODE 12
0019 # define FORCESTDBY (0 << MIDLEMODE)
0020 # define NOSTDBY (1 << MIDLEMODE)
0021 # define SMARTSTDBY (2 << MIDLEMODE)
0022
0023 # define SIDLEMODE 3
0024 # define FORCEIDLE (0 << SIDLEMODE)
0025 # define NOIDLE (1 << SIDLEMODE)
0026 # define SMARTIDLE (2 << SIDLEMODE)
0027
0028 # define ENABLEWAKEUP (1 << 2)
0029 # define SOFTRST (1 << 1)
0030 # define AUTOIDLE (1 << 0)
0031
0032 #define OTG_SYSSTATUS 0x408
0033 # define RESETDONE (1 << 0)
0034
0035 #define OTG_INTERFSEL 0x40c
0036 # define EXTCP (1 << 2)
0037 # define PHYSEL 0
0038 # define UTMI_8BIT (0 << PHYSEL)
0039 # define ULPI_12PIN (1 << PHYSEL)
0040 # define ULPI_8PIN (2 << PHYSEL)
0041
0042 #define OTG_SIMENABLE 0x410
0043 # define TM1 (1 << 0)
0044
0045 #define OTG_FORCESTDBY 0x414
0046 # define ENABLEFORCE (1 << 0)
0047
0048 #endif