Tom Rix | f298e4b | 2009-10-31 12:37:41 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2009 Wind River Systems, Inc. |
| 3 | * Tom Rix <Tom.Rix@windriver.com> |
| 4 | * |
| 5 | * This file is based on the file drivers/usb/musb/davinci.h |
| 6 | * |
| 7 | * This is the unique part of its copyright: |
| 8 | * |
| 9 | * -------------------------------------------------------------------- |
| 10 | * |
| 11 | * Copyright (c) 2008 Texas Instruments |
| 12 | * Author: Thomas Abraham t-abraham@ti.com, Texas Instruments |
| 13 | * |
| 14 | * -------------------------------------------------------------------- |
| 15 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 16 | * SPDX-License-Identifier: GPL-2.0+ |
Tom Rix | f298e4b | 2009-10-31 12:37:41 -0500 | [diff] [blame] | 17 | */ |
| 18 | #ifndef _MUSB_OMAP3_H_ |
| 19 | #define _MUSB_OMAP3_H_ |
| 20 | |
Steve Sakoman | 9b16757 | 2010-06-25 12:42:04 -0700 | [diff] [blame] | 21 | #include <asm/arch/cpu.h> |
Tom Rix | f298e4b | 2009-10-31 12:37:41 -0500 | [diff] [blame] | 22 | #include "musb_core.h" |
| 23 | |
| 24 | /* Base address of MUSB registers */ |
Steve Sakoman | 9b16757 | 2010-06-25 12:42:04 -0700 | [diff] [blame] | 25 | #define MENTOR_USB0_BASE MUSB_BASE |
Tom Rix | f298e4b | 2009-10-31 12:37:41 -0500 | [diff] [blame] | 26 | |
| 27 | /* Base address of OTG registers */ |
| 28 | #define OMAP3_OTG_BASE (MENTOR_USB0_BASE + 0x400) |
| 29 | |
| 30 | /* Timeout for USB module */ |
| 31 | #define OMAP3_USB_TIMEOUT 0x3FFFFFF |
| 32 | |
| 33 | int musb_platform_init(void); |
| 34 | |
Tom Rini | 864896b | 2017-05-12 22:33:18 -0400 | [diff] [blame] | 35 | #ifdef CONFIG_TARGET_OMAP3_EVM |
Ajay Kumar Gupta | 900c0c6 | 2010-07-15 16:11:01 -0400 | [diff] [blame] | 36 | extern u8 omap3_evm_need_extvbus(void); |
Ajay Kumar Gupta | 944a489 | 2010-06-10 11:20:50 +0530 | [diff] [blame] | 37 | #endif |
| 38 | |
Tom Rix | f298e4b | 2009-10-31 12:37:41 -0500 | [diff] [blame] | 39 | #endif /* _MUSB_OMAP3_H */ |