2 * am35x.h - TI's AM35x platform specific usb wrapper definitions.
4 * Author: Ajay Kumar Gupta <ajay.gupta@ti.com>
6 * Based on drivers/usb/musb/da8xx.h
8 * Copyright (c) 2010 Texas Instruments Incorporated
10 * SPDX-License-Identifier: GPL-2.0+
13 #ifndef __AM35X_USB_H__
14 #define __AM35X_USB_H__
16 #include <asm/arch/am35x_def.h>
17 #include "musb_core.h"
19 /* Base address of musb wrapper */
20 #define AM35X_USB_OTG_BASE 0x5C040000
22 /* Base address of musb core */
23 #define AM35X_USB_OTG_CORE_BASE (AM35X_USB_OTG_BASE + 0x400)
25 /* Timeout for AM35x usb module */
26 #define AM35X_USB_OTG_TIMEOUT 0x3FFFFFF
29 * AM35x platform USB wrapper register overlay.
31 struct am35x_usb_regs
{
63 #define am35x_usb_regs ((struct am35x_usb_regs *)AM35X_USB_OTG_BASE)
65 /* USB 2.0 PHY Control */
66 #define DEVCONF2_PHY_GPIOMODE (1 << 23)
67 #define DEVCONF2_OTGMODE (3 << 14)
68 #define DEVCONF2_SESENDEN (1 << 13) /* Vsess_end comparator */
69 #define DEVCONF2_VBDTCTEN (1 << 12) /* Vbus comparator */
70 #define DEVCONF2_REFFREQ_24MHZ (2 << 8)
71 #define DEVCONF2_REFFREQ_26MHZ (7 << 8)
72 #define DEVCONF2_REFFREQ_13MHZ (6 << 8)
73 #define DEVCONF2_REFFREQ (0xf << 8)
74 #define DEVCONF2_PHYCKGD (1 << 7)
75 #define DEVCONF2_VBUSSENSE (1 << 6)
76 #define DEVCONF2_PHY_PLLON (1 << 5) /* override PLL suspend */
77 #define DEVCONF2_RESET (1 << 4)
78 #define DEVCONF2_PHYPWRDN (1 << 3)
79 #define DEVCONF2_OTGPWRDN (1 << 2)
80 #define DEVCONF2_DATPOL (1 << 1)
82 #endif /* __AM35X_USB_H__ */