summaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci.h
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2014-02-22 16:53:40 +0100
committerTejun Heo <tj@kernel.org>2014-02-22 15:35:43 -0500
commit21b5faeec229d4f70a7f60a7b0b065c98198f491 (patch)
tree5d85aec26355adea114e096654c4d3fb15a49086 /drivers/ata/ahci.h
parent42a7f53ba0f2baa2ea23cd830511cea7f8612dd2 (diff)
downloadblackbird-op-linux-21b5faeec229d4f70a7f60a7b0b065c98198f491.tar.gz
blackbird-op-linux-21b5faeec229d4f70a7f60a7b0b065c98198f491.zip
ata: ahci_platform: Manage SATA PHY
Some platforms have a PHY hooked up to the SATA controller. The PHY needs to be initialized and powered up for SATA to work. We do that using the PHY framework. tj: Minor comment formatting updates. CC: Balaji T K <balajitk@ti.com> Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Tejun Heo<tj@kernel.org>
Diffstat (limited to 'drivers/ata/ahci.h')
-rw-r--r--drivers/ata/ahci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h
index bf8100c51142..3ab7ac9bb6a7 100644
--- a/drivers/ata/ahci.h
+++ b/drivers/ata/ahci.h
@@ -37,6 +37,7 @@
#include <linux/clk.h>
#include <linux/libata.h>
+#include <linux/phy/phy.h>
#include <linux/regulator/consumer.h>
/* Enclosure Management Control */
@@ -325,6 +326,7 @@ struct ahci_host_priv {
u32 em_msg_type; /* EM message type */
struct clk *clks[AHCI_MAX_CLKS]; /* Optional */
struct regulator *target_pwr; /* Optional */
+ struct phy *phy; /* If platform uses phy */
void *plat_data; /* Other platform data */
/*
* Optional ahci_start_engine override, if not set this gets set to the
OpenPOWER on IntegriCloud