1 /*
2  * OMAP EHCI port support
3  * Based on LINUX KERNEL
4  * drivers/usb/host/ehci-omap.c and drivers/mfd/omap-usb-host.c
5  *
6  * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com
7  * Author: Govindraj R <govindraj.raja@ti.com>
8  *
9  * This program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License version 2  of
11  * the License as published by the Free Software Foundation.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef _OMAP4_EHCI_H_
23 #define _OMAP4_EHCI_H_
24 
25 #define OMAP_EHCI_BASE				(OMAP44XX_L4_CORE_BASE + 0x64C00)
26 #define OMAP_UHH_BASE				(OMAP44XX_L4_CORE_BASE + 0x64000)
27 #define OMAP_USBTLL_BASE			(OMAP44XX_L4_CORE_BASE + 0x62000)
28 
29 /* UHH, TLL and opt clocks */
30 #define CM_L3INIT_HSUSBHOST_CLKCTRL		0x4A009358UL
31 
32 #define HSUSBHOST_CLKCTRL_CLKSEL_UTMI_P1_MASK	(1 << 24)
33 
34 /* TLL Register Set */
35 #define OMAP_USBTLL_SYSCONFIG_SIDLEMODE		(1 << 3)
36 #define OMAP_USBTLL_SYSCONFIG_ENAWAKEUP		(1 << 2)
37 #define OMAP_USBTLL_SYSCONFIG_SOFTRESET		(1 << 1)
38 #define OMAP_USBTLL_SYSCONFIG_CACTIVITY		(1 << 8)
39 #define OMAP_USBTLL_SYSSTATUS_RESETDONE		1
40 
41 #define OMAP_UHH_SYSCONFIG_SOFTRESET		1
42 #define OMAP_UHH_SYSSTATUS_EHCI_RESETDONE	(1 << 2)
43 #define OMAP_UHH_SYSCONFIG_NOIDLE		(1 << 2)
44 #define OMAP_UHH_SYSCONFIG_NOSTDBY		(1 << 4)
45 
46 #define OMAP_UHH_SYSCONFIG_VAL	(OMAP_UHH_SYSCONFIG_NOIDLE | \
47 					OMAP_UHH_SYSCONFIG_NOSTDBY)
48 
49 #endif /* _OMAP4_EHCI_H_ */
50