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