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