blob: 78fdb2959bbfd914d6f24612fdccd98d6c526ba2 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Tom Rix09c82bc2009-10-31 12:37:41 -05002/*
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 Rix09c82bc2009-10-31 12:37:41 -050016 */
17#ifndef _MUSB_OMAP3_H_
18#define _MUSB_OMAP3_H_
19
Steve Sakoman31367d12010-06-25 12:42:04 -070020#include <asm/arch/cpu.h>
Tom Rix09c82bc2009-10-31 12:37:41 -050021#include "musb_core.h"
22
23/* Base address of MUSB registers */
Steve Sakoman31367d12010-06-25 12:42:04 -070024#define MENTOR_USB0_BASE MUSB_BASE
Tom Rix09c82bc2009-10-31 12:37:41 -050025
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
32int musb_platform_init(void);
33
Tom Rini38216ee2017-05-12 22:33:18 -040034#ifdef CONFIG_TARGET_OMAP3_EVM
Ajay Kumar Gupta1060a2c2010-07-15 16:11:01 -040035extern u8 omap3_evm_need_extvbus(void);
Ajay Kumar Guptaaeeac6b2010-06-10 11:20:50 +053036#endif
37
Tom Rix09c82bc2009-10-31 12:37:41 -050038#endif /* _MUSB_OMAP3_H */