blob: 40b3c02ae9f0812f0d6cba75dab78a39b41f6c40 [file] [log] [blame]
Felipe Balbi550a7372008-07-24 12:27:36 +03001/*
2 * Copyright (C) 2005-2006 by Texas Instruments
3 *
4 * The Inventra Controller Driver for Linux is free software; you
5 * can redistribute it and/or modify it under the terms of the GNU
6 * General Public License version 2 as published by the Free Software
7 * Foundation.
8 */
9
10#ifndef __MUSB_OMAP243X_H__
11#define __MUSB_OMAP243X_H__
12
Tony Lindgrence491cf2009-10-20 09:40:47 -070013#include <plat/usb.h>
Felipe Balbi550a7372008-07-24 12:27:36 +030014
15/*
16 * OMAP2430-specific definitions
17 */
18
Felipe Balbi8573e6a2010-01-21 15:33:53 +020019#define OTG_REVISION 0x400
20
21#define OTG_SYSCONFIG 0x404
Felipe Balbi550a7372008-07-24 12:27:36 +030022# define MIDLEMODE 12 /* bit position */
23# define FORCESTDBY (0 << MIDLEMODE)
24# define NOSTDBY (1 << MIDLEMODE)
25# define SMARTSTDBY (2 << MIDLEMODE)
Felipe Balbi8573e6a2010-01-21 15:33:53 +020026
Felipe Balbi550a7372008-07-24 12:27:36 +030027# define SIDLEMODE 3 /* bit position */
28# define FORCEIDLE (0 << SIDLEMODE)
29# define NOIDLE (1 << SIDLEMODE)
30# define SMARTIDLE (2 << SIDLEMODE)
Felipe Balbi8573e6a2010-01-21 15:33:53 +020031
Felipe Balbi550a7372008-07-24 12:27:36 +030032# define ENABLEWAKEUP (1 << 2)
33# define SOFTRST (1 << 1)
34# define AUTOIDLE (1 << 0)
Felipe Balbi8573e6a2010-01-21 15:33:53 +020035
36#define OTG_SYSSTATUS 0x408
Felipe Balbi550a7372008-07-24 12:27:36 +030037# define RESETDONE (1 << 0)
Felipe Balbi8573e6a2010-01-21 15:33:53 +020038
39#define OTG_INTERFSEL 0x40c
Felipe Balbi550a7372008-07-24 12:27:36 +030040# define EXTCP (1 << 2)
Felipe Balbi8573e6a2010-01-21 15:33:53 +020041# define PHYSEL 0 /* bit position */
Felipe Balbi550a7372008-07-24 12:27:36 +030042# define UTMI_8BIT (0 << PHYSEL)
43# define ULPI_12PIN (1 << PHYSEL)
44# define ULPI_8PIN (2 << PHYSEL)
Felipe Balbi550a7372008-07-24 12:27:36 +030045
Felipe Balbi8573e6a2010-01-21 15:33:53 +020046#define OTG_SIMENABLE 0x410
47# define TM1 (1 << 0)
48
49#define OTG_FORCESTDBY 0x414
50# define ENABLEFORCE (1 << 0)
Felipe Balbi550a7372008-07-24 12:27:36 +030051
52#endif /* __MUSB_OMAP243X_H__ */