omap2430.h 1.5 KB
Newer Older
F
Felipe Balbi 已提交
1 2 3 4 5 6 7 8 9 10 11 12
/*
 * Copyright (C) 2005-2006 by Texas Instruments
 *
 * The Inventra Controller Driver for Linux is free software; you
 * can redistribute it and/or modify it under the terms of the GNU
 * General Public License version 2 as published by the Free Software
 * Foundation.
 */

#ifndef __MUSB_OMAP243X_H__
#define __MUSB_OMAP243X_H__

13
#include <plat/usb.h>
F
Felipe Balbi 已提交
14 15 16 17 18

/*
 * OMAP2430-specific definitions
 */

19 20 21
#define OTG_REVISION		0x400

#define OTG_SYSCONFIG		0x404
F
Felipe Balbi 已提交
22 23 24 25
#	define	MIDLEMODE	12	/* bit position */
#	define	FORCESTDBY		(0 << MIDLEMODE)
#	define	NOSTDBY			(1 << MIDLEMODE)
#	define	SMARTSTDBY		(2 << MIDLEMODE)
26

F
Felipe Balbi 已提交
27 28 29 30
#	define	SIDLEMODE		3	/* bit position */
#	define	FORCEIDLE		(0 << SIDLEMODE)
#	define	NOIDLE			(1 << SIDLEMODE)
#	define	SMARTIDLE		(2 << SIDLEMODE)
31

F
Felipe Balbi 已提交
32 33 34
#	define	ENABLEWAKEUP		(1 << 2)
#	define	SOFTRST			(1 << 1)
#	define	AUTOIDLE		(1 << 0)
35 36

#define OTG_SYSSTATUS		0x408
F
Felipe Balbi 已提交
37
#	define	RESETDONE		(1 << 0)
38 39

#define OTG_INTERFSEL		0x40c
F
Felipe Balbi 已提交
40
#	define	EXTCP			(1 << 2)
41
#	define	PHYSEL			0	/* bit position */
F
Felipe Balbi 已提交
42 43 44
#	define	UTMI_8BIT		(0 << PHYSEL)
#	define	ULPI_12PIN		(1 << PHYSEL)
#	define	ULPI_8PIN		(2 << PHYSEL)
45 46

#define OTG_SIMENABLE		0x410
F
Felipe Balbi 已提交
47 48
#	define	TM1			(1 << 0)

49 50
#define OTG_FORCESTDBY		0x414
#	define	ENABLEFORCE		(1 << 0)
F
Felipe Balbi 已提交
51

52 53 54 55 56 57 58 59 60
/*
 * Control Module bit definitions
 * XXX: Will be removed once we have a driver for control module.
 */
#define	AVALID				BIT(0)
#define	BVALID				BIT(1)
#define	VBUSVALID			BIT(2)
#define	SESSEND				BIT(3)
#define	IDDIG				BIT(4)
F
Felipe Balbi 已提交
61
#endif	/* __MUSB_OMAP243X_H__ */