summaryrefslogtreecommitdiff
path: root/drivers/phy/phy-samsung-usb2.h
diff options
context:
space:
mode:
authorKamil Debski <k.debski@samsung.com>2014-07-01 17:15:54 +0200
committerKishon Vijay Abraham I <kishon@ti.com>2014-07-22 12:46:10 +0530
commit57416c23e3ab57e65ba6e7c2e30fb40ba85035a6 (patch)
treea505c4b06e6c361f13bf46768abde3ebdea5d2dc /drivers/phy/phy-samsung-usb2.h
parentad6202b4d941c69e9154419bd3002fbcacccbb67 (diff)
downloadlinux-rpi3-57416c23e3ab57e65ba6e7c2e30fb40ba85035a6.tar.gz
linux-rpi3-57416c23e3ab57e65ba6e7c2e30fb40ba85035a6.tar.bz2
linux-rpi3-57416c23e3ab57e65ba6e7c2e30fb40ba85035a6.zip
phy: phy-samsung-usb2: Change phy power on/power off sequence
The Exynos4412 USB 2.0 PHY hardware differs from the description provided in the documentation. Some register bits have different function. This patch fixes the defines of register bits and changes the way how phys are powered on and off. Signed-off-by: Kamil Debski <k.debski@samsung.com> Tested-by: Daniel Drake <drake@endlessm.com> Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy/phy-samsung-usb2.h')
-rw-r--r--drivers/phy/phy-samsung-usb2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/phy/phy-samsung-usb2.h b/drivers/phy/phy-samsung-usb2.h
index 45b3170652bd..918847843a95 100644
--- a/drivers/phy/phy-samsung-usb2.h
+++ b/drivers/phy/phy-samsung-usb2.h
@@ -29,7 +29,8 @@ struct samsung_usb2_phy_instance {
const struct samsung_usb2_common_phy *cfg;
struct phy *phy;
struct samsung_usb2_phy_driver *drv;
- bool enabled;
+ int int_cnt;
+ int ext_cnt;
};
struct samsung_usb2_phy_driver {