aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/bits.h
diff options
context:
space:
mode:
authorLi Jun <B47624@freescale.com>2014-04-23 03:56:48 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-24 15:56:35 -0400
commit826cfe751f3e1faf4a63b65245f5ee3a7efeb763 (patch)
tree99e33fcb1d99b158f923543dfca4d8c9576c4359 /drivers/usb/chipidea/bits.h
parent95f5555fa0f0176da338e8f42bca08f236032832 (diff)
usb: chipidea: add OTG fsm operation functions implementation
Add OTG HNP and SRP operation functions implementation: - charge vbus - drive vbus - connection signaling - drive sof - start data pulse - add fsm timer - delete fsm timer - start host - start gadget Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/bits.h')
-rw-r--r--drivers/usb/chipidea/bits.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/bits.h b/drivers/usb/chipidea/bits.h
index 83d06c1455b7..44882c8133d6 100644
--- a/drivers/usb/chipidea/bits.h
+++ b/drivers/usb/chipidea/bits.h
@@ -44,9 +44,14 @@
44#define DEVICEADDR_USBADR (0x7FUL << 25) 44#define DEVICEADDR_USBADR (0x7FUL << 25)
45 45
46/* PORTSC */ 46/* PORTSC */
47#define PORTSC_CCS BIT(0)
48#define PORTSC_CSC BIT(1)
49#define PORTSC_PEC BIT(3)
50#define PORTSC_OCC BIT(5)
47#define PORTSC_FPR BIT(6) 51#define PORTSC_FPR BIT(6)
48#define PORTSC_SUSP BIT(7) 52#define PORTSC_SUSP BIT(7)
49#define PORTSC_HSP BIT(9) 53#define PORTSC_HSP BIT(9)
54#define PORTSC_PP BIT(12)
50#define PORTSC_PTC (0x0FUL << 16) 55#define PORTSC_PTC (0x0FUL << 16)
51#define PORTSC_PHCD(d) ((d) ? BIT(22) : BIT(23)) 56#define PORTSC_PHCD(d) ((d) ? BIT(22) : BIT(23))
52/* PTS and PTW for non lpm version only */ 57/* PTS and PTW for non lpm version only */
@@ -56,6 +61,9 @@
56#define PORTSC_PTW BIT(28) 61#define PORTSC_PTW BIT(28)
57#define PORTSC_STS BIT(29) 62#define PORTSC_STS BIT(29)
58 63
64#define PORTSC_W1C_BITS \
65 (PORTSC_CSC | PORTSC_PEC | PORTSC_OCC)
66
59/* DEVLC */ 67/* DEVLC */
60#define DEVLC_PFSC BIT(23) 68#define DEVLC_PFSC BIT(23)
61#define DEVLC_PSPD (0x03UL << 25) 69#define DEVLC_PSPD (0x03UL << 25)
@@ -72,6 +80,7 @@
72 80
73/* OTGSC */ 81/* OTGSC */
74#define OTGSC_IDPU BIT(5) 82#define OTGSC_IDPU BIT(5)
83#define OTGSC_HADP BIT(6)
75#define OTGSC_ID BIT(8) 84#define OTGSC_ID BIT(8)
76#define OTGSC_AVV BIT(9) 85#define OTGSC_AVV BIT(9)
77#define OTGSC_ASV BIT(10) 86#define OTGSC_ASV BIT(10)