Merge tag 'trace-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[linux/fpc-iii.git] / drivers / usb / musb / omap2430.h
blob939a0361ae88a247146307797e72f473bc2b75c2
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2005-2006 by Texas Instruments
4 */
6 #ifndef __MUSB_OMAP243X_H__
7 #define __MUSB_OMAP243X_H__
9 #include <linux/platform_data/usb-omap.h>
12 * OMAP2430-specific definitions
15 #define OTG_REVISION 0x400
17 #define OTG_SYSCONFIG 0x404
18 # define MIDLEMODE 12 /* bit position */
19 # define FORCESTDBY (0 << MIDLEMODE)
20 # define NOSTDBY (1 << MIDLEMODE)
21 # define SMARTSTDBY (2 << MIDLEMODE)
23 # define SIDLEMODE 3 /* bit position */
24 # define FORCEIDLE (0 << SIDLEMODE)
25 # define NOIDLE (1 << SIDLEMODE)
26 # define SMARTIDLE (2 << SIDLEMODE)
28 # define ENABLEWAKEUP (1 << 2)
29 # define SOFTRST (1 << 1)
30 # define AUTOIDLE (1 << 0)
32 #define OTG_SYSSTATUS 0x408
33 # define RESETDONE (1 << 0)
35 #define OTG_INTERFSEL 0x40c
36 # define EXTCP (1 << 2)
37 # define PHYSEL 0 /* bit position */
38 # define UTMI_8BIT (0 << PHYSEL)
39 # define ULPI_12PIN (1 << PHYSEL)
40 # define ULPI_8PIN (2 << PHYSEL)
42 #define OTG_SIMENABLE 0x410
43 # define TM1 (1 << 0)
45 #define OTG_FORCESTDBY 0x414
46 # define ENABLEFORCE (1 << 0)
48 #endif /* __MUSB_OMAP243X_H__ */