diff options
| author | Roger Quadros <rogerq@ti.com> | 2014-07-04 05:55:45 -0400 |
|---|---|---|
| committer | Kishon Vijay Abraham I <kishon@ti.com> | 2014-07-22 03:16:10 -0400 |
| commit | 3be88125d85df587085b0be0a5c0e9953eb5ed6b (patch) | |
| tree | c0fd6fcb0c03681d6442381480e6f30c8d6f250d /include/linux/phy | |
| parent | 016e0d3cb72c1433810fd85a7a7c0946e710d3d6 (diff) | |
phy: core: Support regulator supply for PHY power
Some PHYs can be powered by an external power regulator.
e.g. USB_HS PHY on DRA7 SoC. Make the PHY core support a
power regulator.
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'include/linux/phy')
| -rw-r--r-- | include/linux/phy/phy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index 2760744cb2a7..9a8694524742 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | #include <linux/of.h> | 18 | #include <linux/of.h> |
| 19 | #include <linux/device.h> | 19 | #include <linux/device.h> |
| 20 | #include <linux/pm_runtime.h> | 20 | #include <linux/pm_runtime.h> |
| 21 | #include <linux/regulator/consumer.h> | ||
| 21 | 22 | ||
| 22 | struct phy; | 23 | struct phy; |
| 23 | 24 | ||
| @@ -65,6 +66,7 @@ struct phy { | |||
| 65 | int init_count; | 66 | int init_count; |
| 66 | int power_count; | 67 | int power_count; |
| 67 | struct phy_attrs attrs; | 68 | struct phy_attrs attrs; |
| 69 | struct regulator *pwr; | ||
| 68 | }; | 70 | }; |
| 69 | 71 | ||
| 70 | /** | 72 | /** |
