summaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-samsung-usb2.h
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2015-08-21 14:38:37 +0200
committerKishon Vijay Abraham I <kishon@ti.com>2015-10-06 16:51:47 +0200
commita007ddbaef5317f76bec541688e304f31ad9c4b0 (patch)
treea991e43fb013d8b4397beec3c363aac12a083b44 /drivers/phy/phy-samsung-usb2.h
parentLinux 4.3-rc1 (diff)
downloadlinux-a007ddbaef5317f76bec541688e304f31ad9c4b0.tar.xz
linux-a007ddbaef5317f76bec541688e304f31ad9c4b0.zip
phy: exynos-usb2: add vbus regulator support
Exynos USB2 PHY has separate power supply, which is usually provided by VBUS regulator. This patch adds support for it. VBUS regulator is optional, to keep compatibility with boards, which have VBUS provided from some always-on power source. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Tested-by: Krzysztof Kozlowski <k.kozlowski@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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/phy/phy-samsung-usb2.h b/drivers/phy/phy-samsung-usb2.h
index 44bead9b8f34..6563e7ca0ac4 100644
--- a/drivers/phy/phy-samsung-usb2.h
+++ b/drivers/phy/phy-samsung-usb2.h
@@ -17,6 +17,7 @@
#include <linux/device.h>
#include <linux/regmap.h>
#include <linux/spinlock.h>
+#include <linux/regulator/consumer.h>
#define KHZ 1000
#define MHZ (KHZ * KHZ)
@@ -37,6 +38,7 @@ struct samsung_usb2_phy_driver {
const struct samsung_usb2_phy_config *cfg;
struct clk *clk;
struct clk *ref_clk;
+ struct regulator *vbus;
unsigned long ref_rate;
u32 ref_reg_val;
struct device *dev;