]> git.ipfire.org Git - people/ms/u-boot.git/blob - drivers/usb/musb-new/omap2430.h
3b795c248d14f28c9c960838119075eabdbed3a8
[people/ms/u-boot.git] / drivers / usb / musb-new / omap2430.h
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
13 #ifndef __UBOOT__
14 #include <plat/usb.h>
15 #else
16 #undef RESETDONE
17 #endif
18
19 /*
20 * OMAP2430-specific definitions
21 */
22
23 #define OTG_REVISION 0x400
24
25 #define OTG_SYSCONFIG 0x404
26 # define MIDLEMODE 12 /* bit position */
27 # define FORCESTDBY (0 << MIDLEMODE)
28 # define NOSTDBY (1 << MIDLEMODE)
29 # define SMARTSTDBY (2 << MIDLEMODE)
30
31 # define SIDLEMODE 3 /* bit position */
32 # define FORCEIDLE (0 << SIDLEMODE)
33 # define NOIDLE (1 << SIDLEMODE)
34 # define SMARTIDLE (2 << SIDLEMODE)
35
36 # define ENABLEWAKEUP (1 << 2)
37 # define SOFTRST (1 << 1)
38 # define AUTOIDLE (1 << 0)
39
40 #define OTG_SYSSTATUS 0x408
41 # define RESETDONE (1 << 0)
42
43 #define OTG_INTERFSEL 0x40c
44 # define EXTCP (1 << 2)
45 # define PHYSEL 0 /* bit position */
46 # define UTMI_8BIT (0 << PHYSEL)
47 # define ULPI_12PIN (1 << PHYSEL)
48 # define ULPI_8PIN (2 << PHYSEL)
49
50 #define OTG_SIMENABLE 0x410
51 # define TM1 (1 << 0)
52
53 #define OTG_FORCESTDBY 0x414
54 # define ENABLEFORCE (1 << 0)
55
56 #endif /* __MUSB_OMAP243X_H__ */