1 /*
2  * (C) Copyright 2011
3  * Alexander Holler <holler@ahsoftware.de>
4  *
5  * Based on "drivers/usb/host/ehci-omap.c" from Linux 2.6.37
6  *
7  * See there for additional Copyrights.
8  *
9  * SPDX-License-Identifier:	GPL-2.0+
10  */
11 #ifndef _OMAP3_EHCI_H_
12 #define _OMAP3_EHCI_H_
13 
14 /* USB/EHCI registers */
15 #define OMAP_USBTLL_BASE				0x48062000UL
16 #define OMAP_UHH_BASE					0x48064000UL
17 #define OMAP_EHCI_BASE					0x48064800UL
18 
19 /* TLL Register Set */
20 #define OMAP_USBTLL_SYSCONFIG_SOFTRESET			(1 << 1)
21 #define OMAP_USBTLL_SYSCONFIG_ENAWAKEUP			(1 << 2)
22 #define OMAP_USBTLL_SYSCONFIG_SIDLEMODE			(1 << 3)
23 #define OMAP_USBTLL_SYSCONFIG_CACTIVITY			(1 << 8)
24 #define OMAP_USBTLL_SYSSTATUS_RESETDONE			1
25 
26 /* UHH Register Set */
27 #define OMAP_UHH_SYSCONFIG_SOFTRESET			(1 << 1)
28 #define OMAP_UHH_SYSCONFIG_CACTIVITY			(1 << 8)
29 #define OMAP_UHH_SYSCONFIG_SIDLEMODE			(1 << 3)
30 #define OMAP_UHH_SYSCONFIG_ENAWAKEUP			(1 << 2)
31 #define OMAP_UHH_SYSCONFIG_MIDLEMODE			(1 << 12)
32 #define OMAP_UHH_SYSSTATUS_EHCI_RESETDONE		(1 << 2)
33 
34 #define OMAP_UHH_SYSCONFIG_VAL		(OMAP_UHH_SYSCONFIG_CACTIVITY | \
35 					OMAP_UHH_SYSCONFIG_SIDLEMODE | \
36 					OMAP_UHH_SYSCONFIG_ENAWAKEUP | \
37 					OMAP_UHH_SYSCONFIG_MIDLEMODE)
38 
39 #endif /* _OMAP3_EHCI_H_ */
40