Merge branch 'amba' of git://git.linaro.org/people/rmk/linux-arm
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / usb / musb / omap2430.h
CommitLineData
550a7375
FB
1/*
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
ce491cf8 13#include <plat/usb.h>
550a7375
FB
14
15/*
16 * OMAP2430-specific definitions
17 */
18
8573e6a6
FB
19#define OTG_REVISION 0x400
20
21#define OTG_SYSCONFIG 0x404
550a7375
FB
22# define MIDLEMODE 12 /* bit position */
23# define FORCESTDBY (0 << MIDLEMODE)
24# define NOSTDBY (1 << MIDLEMODE)
25# define SMARTSTDBY (2 << MIDLEMODE)
8573e6a6 26
550a7375
FB
27# define SIDLEMODE 3 /* bit position */
28# define FORCEIDLE (0 << SIDLEMODE)
29# define NOIDLE (1 << SIDLEMODE)
30# define SMARTIDLE (2 << SIDLEMODE)
8573e6a6 31
550a7375
FB
32# define ENABLEWAKEUP (1 << 2)
33# define SOFTRST (1 << 1)
34# define AUTOIDLE (1 << 0)
8573e6a6
FB
35
36#define OTG_SYSSTATUS 0x408
550a7375 37# define RESETDONE (1 << 0)
8573e6a6
FB
38
39#define OTG_INTERFSEL 0x40c
550a7375 40# define EXTCP (1 << 2)
8573e6a6 41# define PHYSEL 0 /* bit position */
550a7375
FB
42# define UTMI_8BIT (0 << PHYSEL)
43# define ULPI_12PIN (1 << PHYSEL)
44# define ULPI_8PIN (2 << PHYSEL)
8573e6a6
FB
45
46#define OTG_SIMENABLE 0x410
550a7375 47# define TM1 (1 << 0)
550a7375 48
8573e6a6
FB
49#define OTG_FORCESTDBY 0x414
50# define ENABLEFORCE (1 << 0)
550a7375
FB
51
52#endif /* __MUSB_OMAP243X_H__ */