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 _OMAP3_EHCI_H_ 28 #define _OMAP3_EHCI_H_ 29 30 /* USB/EHCI registers */ 31 #define OMAP_USBTLL_BASE 0x48062000UL 32 #define OMAP_UHH_BASE 0x48064000UL 33 #define OMAP_EHCI_BASE 0x48064800UL 34 35 /* TLL Register Set */ 36 #define OMAP_USBTLL_SYSCONFIG_SOFTRESET (1 << 1) 37 #define OMAP_USBTLL_SYSCONFIG_ENAWAKEUP (1 << 2) 38 #define OMAP_USBTLL_SYSCONFIG_SIDLEMODE (1 << 3) 39 #define OMAP_USBTLL_SYSCONFIG_CACTIVITY (1 << 8) 40 #define OMAP_USBTLL_SYSSTATUS_RESETDONE 1 41 42 /* UHH Register Set */ 43 #define OMAP_UHH_SYSCONFIG_SOFTRESET (1 << 1) 44 #define OMAP_UHH_SYSCONFIG_CACTIVITY (1 << 8) 45 #define OMAP_UHH_SYSCONFIG_SIDLEMODE (1 << 3) 46 #define OMAP_UHH_SYSCONFIG_ENAWAKEUP (1 << 2) 47 #define OMAP_UHH_SYSCONFIG_MIDLEMODE (1 << 12) 48 #define OMAP_UHH_SYSSTATUS_EHCI_RESETDONE (1 << 2) 49 50 #define OMAP_UHH_SYSCONFIG_VAL (OMAP_UHH_SYSCONFIG_CACTIVITY | \ 51 OMAP_UHH_SYSCONFIG_SIDLEMODE | \ 52 OMAP_UHH_SYSCONFIG_ENAWAKEUP | \ 53 OMAP_UHH_SYSCONFIG_MIDLEMODE) 54 55 #endif /* _OMAP3_EHCI_H_ */ 56