diff options
Diffstat (limited to 'drivers/usb/chipidea/bits.h')
-rw-r--r-- | drivers/usb/chipidea/bits.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/bits.h b/drivers/usb/chipidea/bits.h index 83d06c1455b7..ca57e3dcd3d5 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,8 @@ | |||
72 | 80 | ||
73 | /* OTGSC */ | 81 | /* OTGSC */ |
74 | #define OTGSC_IDPU BIT(5) | 82 | #define OTGSC_IDPU BIT(5) |
83 | #define OTGSC_HADP BIT(6) | ||
84 | #define OTGSC_HABA BIT(7) | ||
75 | #define OTGSC_ID BIT(8) | 85 | #define OTGSC_ID BIT(8) |
76 | #define OTGSC_AVV BIT(9) | 86 | #define OTGSC_AVV BIT(9) |
77 | #define OTGSC_ASV BIT(10) | 87 | #define OTGSC_ASV BIT(10) |