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  * SPDX-License-Identifier:	GPL-2.0
10  */
11 
12 #ifndef _OMAP4_EHCI_H_
13 #define _OMAP4_EHCI_H_
14 
15 #define OMAP_EHCI_BASE				(OMAP44XX_L4_CORE_BASE + 0x64C00)
16 #define OMAP_UHH_BASE				(OMAP44XX_L4_CORE_BASE + 0x64000)
17 #define OMAP_USBTLL_BASE			(OMAP44XX_L4_CORE_BASE + 0x62000)
18 
19 /* UHH, TLL and opt clocks */
20 #define CM_L3INIT_HSUSBHOST_CLKCTRL		0x4A009358UL
21 
22 #define HSUSBHOST_CLKCTRL_CLKSEL_UTMI_P1_MASK	(1 << 24)
23 
24 /* TLL Register Set */
25 #define OMAP_USBTLL_SYSCONFIG_SIDLEMODE		(1 << 3)
26 #define OMAP_USBTLL_SYSCONFIG_ENAWAKEUP		(1 << 2)
27 #define OMAP_USBTLL_SYSCONFIG_SOFTRESET		(1 << 1)
28 #define OMAP_USBTLL_SYSCONFIG_CACTIVITY		(1 << 8)
29 #define OMAP_USBTLL_SYSSTATUS_RESETDONE		1
30 
31 #define OMAP_UHH_SYSCONFIG_SOFTRESET		1
32 #define OMAP_UHH_SYSSTATUS_EHCI_RESETDONE	(1 << 2)
33 #define OMAP_UHH_SYSCONFIG_NOIDLE		(1 << 2)
34 #define OMAP_UHH_SYSCONFIG_NOSTDBY		(1 << 4)
35 
36 #define OMAP_UHH_SYSCONFIG_VAL	(OMAP_UHH_SYSCONFIG_NOIDLE | \
37 					OMAP_UHH_SYSCONFIG_NOSTDBY)
38 
39 #endif /* _OMAP4_EHCI_H_ */
40