]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: phy: samsung: Fix wrong bit mask for PHYPARAM1_PCS_TXDEEMPH
authorJingoo Han <jg1.han@samsung.com>
Fri, 8 Aug 2014 07:27:15 +0000 (16:27 +0900)
committerFelipe Balbi <balbi@ti.com>
Tue, 19 Aug 2014 14:24:25 +0000 (09:24 -0500)
According to the datasheet, PHYPARAM1_PCS_TXDEEMPH is set as
6 bits [5:0]. Thus, the bit mask should be set as 0x3f, instead
of 0x1f.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-samsung-usb.h

index 68771bfd18253df19dd2f999086611d0314d4b90..80eedd45a20aed05417066229040ccfaf4381b21 100644 (file)
 
 #define EXYNOS5_DRD_PHYPARAM1                  (0x20)
 
-#define PHYPARAM1_PCS_TXDEEMPH_MASK            (0x1f << 0)
+#define PHYPARAM1_PCS_TXDEEMPH_MASK            (0x3f << 0)
 #define PHYPARAM1_PCS_TXDEEMPH                 (0x1c)
 
 #define EXYNOS5_DRD_PHYTERM                    (0x24)