diff options
Diffstat (limited to 'drivers/usb/chipidea/bits.h')
-rw-r--r-- | drivers/usb/chipidea/bits.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/bits.h b/drivers/usb/chipidea/bits.h index 050de8562a04..aefa0261220c 100644 --- a/drivers/usb/chipidea/bits.h +++ b/drivers/usb/chipidea/bits.h | |||
@@ -48,10 +48,24 @@ | |||
48 | #define PORTSC_SUSP BIT(7) | 48 | #define PORTSC_SUSP BIT(7) |
49 | #define PORTSC_HSP BIT(9) | 49 | #define PORTSC_HSP BIT(9) |
50 | #define PORTSC_PTC (0x0FUL << 16) | 50 | #define PORTSC_PTC (0x0FUL << 16) |
51 | /* PTS and PTW for non lpm version only */ | ||
52 | #define PORTSC_PTS(d) \ | ||
53 | ((((d) & 0x3) << 30) | (((d) & 0x4) ? BIT(25) : 0)) | ||
54 | #define PORTSC_PTW BIT(28) | ||
55 | #define PORTSC_STS BIT(29) | ||
51 | 56 | ||
52 | /* DEVLC */ | 57 | /* DEVLC */ |
53 | #define DEVLC_PSPD (0x03UL << 25) | 58 | #define DEVLC_PSPD (0x03UL << 25) |
54 | #define DEVLC_PSPD_HS (0x02UL << 25) | 59 | #define DEVLC_PSPD_HS (0x02UL << 25) |
60 | #define DEVLC_PTW BIT(27) | ||
61 | #define DEVLC_STS BIT(28) | ||
62 | #define DEVLC_PTS(d) (((d) & 0x7) << 29) | ||
63 | |||
64 | /* Encoding for DEVLC_PTS and PORTSC_PTS */ | ||
65 | #define PTS_UTMI 0 | ||
66 | #define PTS_ULPI 2 | ||
67 | #define PTS_SERIAL 3 | ||
68 | #define PTS_HSIC 4 | ||
55 | 69 | ||
56 | /* OTGSC */ | 70 | /* OTGSC */ |
57 | #define OTGSC_IDPU BIT(5) | 71 | #define OTGSC_IDPU BIT(5) |