diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2015-04-02 04:01:11 -0400 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2015-05-12 11:27:19 -0400 |
commit | a3ac3d4a296ac88578c3a982d044e53284d85344 (patch) | |
tree | 2a1a41ce7364ae7eed85514409732c97f6bb15d0 /drivers/phy/phy-rcar-gen2.c | |
parent | 4581f798ec7373bea4530b7e57e6c6842f132bbd (diff) |
phy: phy-rcar-gen2: Fix USBHS_UGSTS_LOCK value
According to the technical update (No. TN-RCS-B011A/E), the UGSTS LOCK
bit location is bit 8, not bits 1 and 0. It also says that the register
address offset of UGSTS is 0x88, not 0x90.
So, this patch fixes the USBHS_UGSTS_LOCK value and some comments.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy/phy-rcar-gen2.c')
-rw-r--r-- | drivers/phy/phy-rcar-gen2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/phy/phy-rcar-gen2.c b/drivers/phy/phy-rcar-gen2.c index 778276aba3aa..97d45f47d1ad 100644 --- a/drivers/phy/phy-rcar-gen2.c +++ b/drivers/phy/phy-rcar-gen2.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #define USBHS_LPSTS 0x02 | 23 | #define USBHS_LPSTS 0x02 |
24 | #define USBHS_UGCTRL 0x80 | 24 | #define USBHS_UGCTRL 0x80 |
25 | #define USBHS_UGCTRL2 0x84 | 25 | #define USBHS_UGCTRL2 0x84 |
26 | #define USBHS_UGSTS 0x88 /* The manuals have 0x90 */ | 26 | #define USBHS_UGSTS 0x88 /* From technical update */ |
27 | 27 | ||
28 | /* Low Power Status register (LPSTS) */ | 28 | /* Low Power Status register (LPSTS) */ |
29 | #define USBHS_LPSTS_SUSPM 0x4000 | 29 | #define USBHS_LPSTS_SUSPM 0x4000 |
@@ -41,7 +41,7 @@ | |||
41 | #define USBHS_UGCTRL2_USB0SEL_HS_USB 0x00000030 | 41 | #define USBHS_UGCTRL2_USB0SEL_HS_USB 0x00000030 |
42 | 42 | ||
43 | /* USB General status register (UGSTS) */ | 43 | /* USB General status register (UGSTS) */ |
44 | #define USBHS_UGSTS_LOCK 0x00000300 /* The manuals have 0x3 */ | 44 | #define USBHS_UGSTS_LOCK 0x00000100 /* From technical update */ |
45 | 45 | ||
46 | #define PHYS_PER_CHANNEL 2 | 46 | #define PHYS_PER_CHANNEL 2 |
47 | 47 | ||