diff options
author | Kunihiko Hayashi <hayashi.kunihiko@socionext.com> | 2018-03-23 04:30:53 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-03-26 17:40:01 +0300 |
commit | f0f56716fc3e5d547fd7811eb218a30ed0695605 (patch) | |
tree | 98e855715735d806bdc2dfec4836decb8799ef50 /drivers/ata/ahci.h | |
parent | 3d6f22b74d919a5f32a6093666e85be110cc06de (diff) | |
download | linux-f0f56716fc3e5d547fd7811eb218a30ed0695605.tar.xz |
ata: ahci-platform: add reset control support
Add support to get and control a list of resets for the device
as optional and shared. These resets must be kept de-asserted until
the device is enabled.
This is specified as shared because some SoCs like UniPhier series
have common reset controls with all ahci controller instances.
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index a9d996e17d75..4356ef1d28a8 100644 --- a/drivers/ata/ahci.h +++ b/drivers/ata/ahci.h @@ -350,6 +350,7 @@ struct ahci_host_priv { u32 em_msg_type; /* EM message type */ bool got_runtime_pm; /* Did we do pm_runtime_get? */ struct clk *clks[AHCI_MAX_CLKS]; /* Optional */ + struct reset_control *rsts; /* Optional */ struct regulator **target_pwrs; /* Optional */ /* * If platform uses PHYs. There is a 1:1 relation between the port number and |