Update USB init code to do a softreset.
[mirror_edk2.git] / Omap35xxPkg / Include / Omap3530 / Omap3530Usb.h
1 /** @file
2
3 Copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>
4
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef __OMAP3530USB_H__
16 #define __OMAP3530USB_H__
17
18 #define USB_BASE (0x48060000)
19
20 #define UHH_SYSCONFIG (USB_BASE + 0x4010)
21 #define UHH_HOSTCONFIG (USB_BASE + 0x4040)
22
23 #define USB_EHCI_HCCAPBASE (USB_BASE + 0x4800)
24
25 #define UHH_SYSCONFIG_MIDLEMODE_NO_STANDBY (1UL << 12)
26 #define UHH_SYSCONFIG_CLOCKACTIVITY_ON (1UL << 8)
27 #define UHH_SYSCONFIG_SIDLEMODE_NO_STANDBY (1UL << 3)
28 #define UHH_SYSCONFIG_ENAWAKEUP_ENABLE (1UL << 2)
29 #define UHH_SYSCONFIG_SOFTRESET (1UL << 1)
30 #define UHH_SYSCONFIG_AUTOIDLE_ALWAYS_RUN (0UL << 0)
31
32 #define UHH_HOSTCONFIG_P3_CONNECT_STATUS_DISCONNECT (0UL << 10)
33 #define UHH_HOSTCONFIG_P2_CONNECT_STATUS_DISCONNECT (0UL << 9)
34 #define UHH_HOSTCONFIG_P1_CONNECT_STATUS_DISCONNECT (0UL << 8)
35 #define UHH_HOSTCONFIG_ENA_INCR_ALIGN_DISABLE (0UL << 5)
36 #define UHH_HOSTCONFIG_ENA_INCR16_ENABLE (1UL << 4)
37 #define UHH_HOSTCONFIG_ENA_INCR8_ENABLE (1UL << 3)
38 #define UHH_HOSTCONFIG_ENA_INCR4_ENABLE (1UL << 2)
39 #define UHH_HOSTCONFIG_AUTOPPD_ON_OVERCUR_EN_ON (0UL << 1)
40 #define UHH_HOSTCONFIG_P1_ULPI_BYPASS_ULPI_MODE (0UL << 0)
41
42 #endif // __OMAP3530USB_H__
43