xref: /rk3399_rockchip-uboot/arch/arm/include/asm/arch-omap4/ehci.h (revision 5b8031ccb4ed6e84457d883198d77efc307085dc)
143b62393SGovindraj.R /*
243b62393SGovindraj.R  * OMAP EHCI port support
343b62393SGovindraj.R  * Based on LINUX KERNEL
443b62393SGovindraj.R  * drivers/usb/host/ehci-omap.c and drivers/mfd/omap-usb-host.c
543b62393SGovindraj.R  *
643b62393SGovindraj.R  * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com
743b62393SGovindraj.R  * Author: Govindraj R <govindraj.raja@ti.com>
843b62393SGovindraj.R  *
9*5b8031ccSTom Rini  * SPDX-License-Identifier:	GPL-2.0
1043b62393SGovindraj.R  */
1143b62393SGovindraj.R 
1243b62393SGovindraj.R #ifndef _OMAP4_EHCI_H_
1343b62393SGovindraj.R #define _OMAP4_EHCI_H_
1443b62393SGovindraj.R 
1543b62393SGovindraj.R #define OMAP_EHCI_BASE				(OMAP44XX_L4_CORE_BASE + 0x64C00)
1643b62393SGovindraj.R #define OMAP_UHH_BASE				(OMAP44XX_L4_CORE_BASE + 0x64000)
1743b62393SGovindraj.R #define OMAP_USBTLL_BASE			(OMAP44XX_L4_CORE_BASE + 0x62000)
1843b62393SGovindraj.R 
1943b62393SGovindraj.R /* UHH, TLL and opt clocks */
2043b62393SGovindraj.R #define CM_L3INIT_HSUSBHOST_CLKCTRL		0x4A009358UL
2143b62393SGovindraj.R 
2243b62393SGovindraj.R #define HSUSBHOST_CLKCTRL_CLKSEL_UTMI_P1_MASK	(1 << 24)
2343b62393SGovindraj.R 
2443b62393SGovindraj.R /* TLL Register Set */
2543b62393SGovindraj.R #define OMAP_USBTLL_SYSCONFIG_SIDLEMODE		(1 << 3)
2643b62393SGovindraj.R #define OMAP_USBTLL_SYSCONFIG_ENAWAKEUP		(1 << 2)
2743b62393SGovindraj.R #define OMAP_USBTLL_SYSCONFIG_SOFTRESET		(1 << 1)
2843b62393SGovindraj.R #define OMAP_USBTLL_SYSCONFIG_CACTIVITY		(1 << 8)
2943b62393SGovindraj.R #define OMAP_USBTLL_SYSSTATUS_RESETDONE		1
3043b62393SGovindraj.R 
3143b62393SGovindraj.R #define OMAP_UHH_SYSCONFIG_SOFTRESET		1
3243b62393SGovindraj.R #define OMAP_UHH_SYSSTATUS_EHCI_RESETDONE	(1 << 2)
3343b62393SGovindraj.R #define OMAP_UHH_SYSCONFIG_NOIDLE		(1 << 2)
3443b62393SGovindraj.R #define OMAP_UHH_SYSCONFIG_NOSTDBY		(1 << 4)
3543b62393SGovindraj.R 
3643b62393SGovindraj.R #define OMAP_UHH_SYSCONFIG_VAL	(OMAP_UHH_SYSCONFIG_NOIDLE | \
3743b62393SGovindraj.R 					OMAP_UHH_SYSCONFIG_NOSTDBY)
3843b62393SGovindraj.R 
3943b62393SGovindraj.R #endif /* _OMAP4_EHCI_H_ */
40