2 * Copyright (c) 2011 The Chromium OS Authors.
3 * Copyright (c) 2013 NVIDIA Corporation
4 * See file CREDITS for list of people who contributed to this
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23 #ifndef _TEGRA30_USB_H_
24 #define _TEGRA30_USB_H_
26 /* USB Controller (USBx_CONTROLLER_) regs */
62 uint periodic_list_base;
106 uint endpt_nak_enable;
107 uint endpt_setup_stat;
108 uint reserved11_1[0x7D];
112 uint phy_vbus_sensors;
113 uint phy_vbus_wakeup_id;
114 uint phy_alt_vbus_sys;
117 uint usb1_legacy_ctrl;
124 uint reserved14[64 * 3];
129 uint utmip_xcvr_cfg0;
130 uint utmip_bias_cfg0;
133 uint utmip_hsrx_cfg0;
134 uint utmip_hsrx_cfg1;
135 uint utmip_fslsrx_cfg0;
136 uint utmip_fslsrx_cfg1;
140 uint utmip_misc_cfg0;
141 uint utmip_misc_cfg1;
142 uint utmip_debounce_cfg0;
145 uint utmip_bat_chrg_cfg0;
146 uint utmip_spare_cfg0;
147 uint utmip_xcvr_cfg1;
148 uint utmip_bias_cfg1;
151 /* USB2_IF_ULPI_TIMING_CTRL_0 */
152 #define ULPI_OUTPUT_PINMUX_BYP (1 << 10)
153 #define ULPI_CLKOUT_PINMUX_BYP (1 << 11)
155 /* USB2_IF_ULPI_TIMING_CTRL_1 */
156 #define ULPI_DATA_TRIMMER_LOAD (1 << 0)
157 #define ULPI_DATA_TRIMMER_SEL(x) (((x) & 0x7) << 1)
158 #define ULPI_STPDIRNXT_TRIMMER_LOAD (1 << 16)
159 #define ULPI_STPDIRNXT_TRIMMER_SEL(x) (((x) & 0x7) << 17)
160 #define ULPI_DIR_TRIMMER_LOAD (1 << 24)
161 #define ULPI_DIR_TRIMMER_SEL(x) (((x) & 0x7) << 25)
163 /* USB2D_HOSTPC1_DEVLC_0 */
165 #define PTS_MASK (0x7U << PTS_SHIFT)
167 #define STS (1 << 28)
168 #endif /* _TEGRA30_USB_H_ */