• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * OMAP EHCI port support
4  * Based on LINUX KERNEL
5  * drivers/usb/host/ehci-omap.c and drivers/mfd/omap-usb-host.c
6  *
7  * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com
8  * Author: Govindraj R <govindraj.raja@ti.com>
9  */
10 
11 #ifndef _OMAP4_EHCI_H_
12 #define _OMAP4_EHCI_H_
13 
14 #define OMAP_EHCI_BASE				(OMAP44XX_L4_CORE_BASE + 0x64C00)
15 #define OMAP_UHH_BASE				(OMAP44XX_L4_CORE_BASE + 0x64000)
16 #define OMAP_USBTLL_BASE			(OMAP44XX_L4_CORE_BASE + 0x62000)
17 
18 /* UHH, TLL and opt clocks */
19 #define CM_L3INIT_HSUSBHOST_CLKCTRL		0x4A009358UL
20 
21 #define HSUSBHOST_CLKCTRL_CLKSEL_UTMI_P1_MASK	(1 << 24)
22 
23 /* TLL Register Set */
24 #define OMAP_USBTLL_SYSCONFIG_SIDLEMODE		(1 << 3)
25 #define OMAP_USBTLL_SYSCONFIG_ENAWAKEUP		(1 << 2)
26 #define OMAP_USBTLL_SYSCONFIG_SOFTRESET		(1 << 1)
27 #define OMAP_USBTLL_SYSCONFIG_CACTIVITY		(1 << 8)
28 #define OMAP_USBTLL_SYSSTATUS_RESETDONE		1
29 
30 #define OMAP_UHH_SYSCONFIG_SOFTRESET		1
31 #define OMAP_UHH_SYSSTATUS_EHCI_RESETDONE	(1 << 2)
32 #define OMAP_UHH_SYSCONFIG_NOIDLE		(1 << 2)
33 #define OMAP_UHH_SYSCONFIG_NOSTDBY		(1 << 4)
34 
35 #define OMAP_UHH_SYSCONFIG_VAL	(OMAP_UHH_SYSCONFIG_NOIDLE | \
36 					OMAP_UHH_SYSCONFIG_NOSTDBY)
37 
38 #endif /* _OMAP4_EHCI_H_ */
39