Tom Rix | 09c82bc | 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 | * |
| 16 | * This program is free software; you can redistribute it and/or |
| 17 | * modify it under the terms of the GNU General Public License as |
| 18 | * published by the Free Software Foundation; either version 2 of |
| 19 | * the License, or (at your option) any later version. |
| 20 | * |
| 21 | * This program is distributed in the hope that it will be useful, |
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 | * GNU General Public License for more details. |
| 25 | * |
| 26 | * You should have received a copy of the GNU General Public License |
| 27 | * along with this program; if not, write to the Free Software |
| 28 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 29 | * MA 02111-1307 USA |
| 30 | */ |
| 31 | #ifndef _MUSB_OMAP3_H_ |
| 32 | #define _MUSB_OMAP3_H_ |
| 33 | |
Steve Sakoman | 31367d1 | 2010-06-25 12:42:04 -0700 | [diff] [blame] | 34 | #include <asm/arch/cpu.h> |
Tom Rix | 09c82bc | 2009-10-31 12:37:41 -0500 | [diff] [blame] | 35 | #include "musb_core.h" |
| 36 | |
| 37 | /* Base address of MUSB registers */ |
Steve Sakoman | 31367d1 | 2010-06-25 12:42:04 -0700 | [diff] [blame] | 38 | #define MENTOR_USB0_BASE MUSB_BASE |
Tom Rix | 09c82bc | 2009-10-31 12:37:41 -0500 | [diff] [blame] | 39 | |
| 40 | /* Base address of OTG registers */ |
| 41 | #define OMAP3_OTG_BASE (MENTOR_USB0_BASE + 0x400) |
| 42 | |
| 43 | /* Timeout for USB module */ |
| 44 | #define OMAP3_USB_TIMEOUT 0x3FFFFFF |
| 45 | |
| 46 | int musb_platform_init(void); |
| 47 | |
Ajay Kumar Gupta | aeeac6b | 2010-06-10 11:20:50 +0530 | [diff] [blame] | 48 | #ifdef CONFIG_OMAP3_EVM |
Ajay Kumar Gupta | 1060a2c | 2010-07-15 16:11:01 -0400 | [diff] [blame] | 49 | extern u8 omap3_evm_need_extvbus(void); |
Ajay Kumar Gupta | aeeac6b | 2010-06-10 11:20:50 +0530 | [diff] [blame] | 50 | #endif |
| 51 | |
Tom Rix | 09c82bc | 2009-10-31 12:37:41 -0500 | [diff] [blame] | 52 | #endif /* _MUSB_OMAP3_H */ |