Merge branch 'master' of git://git.denx.de/u-boot-arm
[platform/kernel/u-boot.git] / arch / arm / include / asm / arch-omap3 / ehci_omap3.h
1 /*
2  * (C) Copyright 2011
3  * Alexander Holler <holler@ahsoftware.de>
4  *
5  * Based on "drivers/usb/host/ehci-omap.c" from Linux 2.6.37
6  *
7  * See there for additional Copyrights.
8  *
9  * See file CREDITS for list of people who contributed to this
10  * project.
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License as
14  * published by the Free Software Foundation; either version 2 of
15  * the License, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
25  * MA 02110-1301 USA
26  */
27 #ifndef _EHCI_OMAP3_H_
28 #define _EHCI_OMAP3_H_
29
30 /* USB/EHCI registers */
31 #define OMAP3_USBTLL_BASE                               0x48062000UL
32 #define OMAP3_UHH_BASE                                  0x48064000UL
33 #define OMAP3_EHCI_BASE                                 0x48064800UL
34
35 /* TLL Register Set */
36 #define OMAP_USBTLL_SYSCONFIG                           (0x10)
37 #define OMAP_USBTLL_SYSCONFIG_SOFTRESET                 (1 << 1)
38 #define OMAP_USBTLL_SYSCONFIG_ENAWAKEUP                 (1 << 2)
39 #define OMAP_USBTLL_SYSCONFIG_SIDLEMODE                 (1 << 3)
40 #define OMAP_USBTLL_SYSCONFIG_CACTIVITY                 (1 << 8)
41
42 #define OMAP_USBTLL_SYSSTATUS                           (0x14)
43 #define OMAP_USBTLL_SYSSTATUS_RESETDONE                 (1 << 0)
44
45 /* UHH Register Set */
46 #define OMAP_UHH_SYSCONFIG                              (0x10)
47 #define OMAP_UHH_SYSCONFIG_SOFTRESET                    (1 << 1)
48 #define OMAP_UHH_SYSCONFIG_CACTIVITY                    (1 << 8)
49 #define OMAP_UHH_SYSCONFIG_SIDLEMODE                    (1 << 3)
50 #define OMAP_UHH_SYSCONFIG_ENAWAKEUP                    (1 << 2)
51 #define OMAP_UHH_SYSCONFIG_MIDLEMODE                    (1 << 12)
52
53 #define OMAP_UHH_HOSTCONFIG                             (0x40)
54 #define OMAP_UHH_HOSTCONFIG_INCR4_BURST_EN              (1 << 2)
55 #define OMAP_UHH_HOSTCONFIG_INCR8_BURST_EN              (1 << 3)
56 #define OMAP_UHH_HOSTCONFIG_INCR16_BURST_EN             (1 << 4)
57
58 #endif /* _EHCI_OMAP3_H_ */