xref: /openbmc/u-boot/drivers/usb/musb/omap3.h (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
2f298e4b6STom Rix /*
3f298e4b6STom Rix  * Copyright (c) 2009 Wind River Systems, Inc.
4f298e4b6STom Rix  * Tom Rix <Tom.Rix@windriver.com>
5f298e4b6STom Rix  *
6f298e4b6STom Rix  * This file is based on the file drivers/usb/musb/davinci.h
7f298e4b6STom Rix  *
8f298e4b6STom Rix  * This is the unique part of its copyright:
9f298e4b6STom Rix  *
10f298e4b6STom Rix  * --------------------------------------------------------------------
11f298e4b6STom Rix  *
12f298e4b6STom Rix  * Copyright (c) 2008 Texas Instruments
13f298e4b6STom Rix  * Author: Thomas Abraham t-abraham@ti.com, Texas Instruments
14f298e4b6STom Rix  *
15f298e4b6STom Rix  * --------------------------------------------------------------------
16f298e4b6STom Rix  */
17f298e4b6STom Rix #ifndef _MUSB_OMAP3_H_
18f298e4b6STom Rix #define _MUSB_OMAP3_H_
19f298e4b6STom Rix 
209b167577SSteve Sakoman #include <asm/arch/cpu.h>
21f298e4b6STom Rix #include "musb_core.h"
22f298e4b6STom Rix 
23f298e4b6STom Rix /* Base address of MUSB registers */
249b167577SSteve Sakoman #define MENTOR_USB0_BASE MUSB_BASE
25f298e4b6STom Rix 
26f298e4b6STom Rix /* Base address of OTG registers */
27f298e4b6STom Rix #define OMAP3_OTG_BASE (MENTOR_USB0_BASE + 0x400)
28f298e4b6STom Rix 
29f298e4b6STom Rix /* Timeout for USB module */
30f298e4b6STom Rix #define OMAP3_USB_TIMEOUT 0x3FFFFFF
31f298e4b6STom Rix 
32f298e4b6STom Rix int musb_platform_init(void);
33f298e4b6STom Rix 
34864896beSTom Rini #ifdef CONFIG_TARGET_OMAP3_EVM
35900c0c6bSAjay Kumar Gupta extern u8 omap3_evm_need_extvbus(void);
36944a4894SAjay Kumar Gupta #endif
37944a4894SAjay Kumar Gupta 
38f298e4b6STom Rix #endif /* _MUSB_OMAP3_H */
39