xref: /linux/drivers/usb/musb/omap2430.h (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1*6814c73fSNishad Kamdar /* SPDX-License-Identifier: GPL-2.0 */
2550a7375SFelipe Balbi /*
3550a7375SFelipe Balbi  * Copyright (C) 2005-2006 by Texas Instruments
4550a7375SFelipe Balbi  */
5550a7375SFelipe Balbi 
6550a7375SFelipe Balbi #ifndef __MUSB_OMAP243X_H__
7550a7375SFelipe Balbi #define __MUSB_OMAP243X_H__
8550a7375SFelipe Balbi 
9e8c4a7acSFelipe Balbi #include <linux/platform_data/usb-omap.h>
10550a7375SFelipe Balbi 
11550a7375SFelipe Balbi /*
12550a7375SFelipe Balbi  * OMAP2430-specific definitions
13550a7375SFelipe Balbi  */
14550a7375SFelipe Balbi 
158573e6a6SFelipe Balbi #define OTG_REVISION		0x400
168573e6a6SFelipe Balbi 
178573e6a6SFelipe Balbi #define OTG_SYSCONFIG		0x404
18550a7375SFelipe Balbi #	define	MIDLEMODE	12	/* bit position */
19550a7375SFelipe Balbi #	define	FORCESTDBY		(0 << MIDLEMODE)
20550a7375SFelipe Balbi #	define	NOSTDBY			(1 << MIDLEMODE)
21550a7375SFelipe Balbi #	define	SMARTSTDBY		(2 << MIDLEMODE)
228573e6a6SFelipe Balbi 
23550a7375SFelipe Balbi #	define	SIDLEMODE		3	/* bit position */
24550a7375SFelipe Balbi #	define	FORCEIDLE		(0 << SIDLEMODE)
25550a7375SFelipe Balbi #	define	NOIDLE			(1 << SIDLEMODE)
26550a7375SFelipe Balbi #	define	SMARTIDLE		(2 << SIDLEMODE)
278573e6a6SFelipe Balbi 
28550a7375SFelipe Balbi #	define	ENABLEWAKEUP		(1 << 2)
29550a7375SFelipe Balbi #	define	SOFTRST			(1 << 1)
30550a7375SFelipe Balbi #	define	AUTOIDLE		(1 << 0)
318573e6a6SFelipe Balbi 
328573e6a6SFelipe Balbi #define OTG_SYSSTATUS		0x408
33550a7375SFelipe Balbi #	define	RESETDONE		(1 << 0)
348573e6a6SFelipe Balbi 
358573e6a6SFelipe Balbi #define OTG_INTERFSEL		0x40c
36550a7375SFelipe Balbi #	define	EXTCP			(1 << 2)
37550a7375SFelipe Balbi #	define	PHYSEL			0	/* bit position */
38550a7375SFelipe Balbi #	define	UTMI_8BIT		(0 << PHYSEL)
39550a7375SFelipe Balbi #	define	ULPI_12PIN		(1 << PHYSEL)
40550a7375SFelipe Balbi #	define	ULPI_8PIN		(2 << PHYSEL)
41550a7375SFelipe Balbi 
428573e6a6SFelipe Balbi #define OTG_SIMENABLE		0x410
438573e6a6SFelipe Balbi #	define	TM1			(1 << 0)
448573e6a6SFelipe Balbi 
458573e6a6SFelipe Balbi #define OTG_FORCESTDBY		0x414
468573e6a6SFelipe Balbi #	define	ENABLEFORCE		(1 << 0)
47550a7375SFelipe Balbi 
48550a7375SFelipe Balbi #endif	/* __MUSB_OMAP243X_H__ */
49