blob: 0a2c18a9771daa40165e01c363651055572787f3 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/*
2 * Copyright (c) 2013-2015, Linux Foundation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 */
14
15#ifndef PHY_QCOM_UFS_H_
16#define PHY_QCOM_UFS_H_
17
18#include "phy.h"
19
20/**
21 * ufs_qcom_phy_enable_dev_ref_clk() - Enable the device
22 * ref clock.
23 * @phy: reference to a generic phy.
24 */
25void ufs_qcom_phy_enable_dev_ref_clk(struct phy *phy);
26
27/**
28 * ufs_qcom_phy_disable_dev_ref_clk() - Disable the device
29 * ref clock.
30 * @phy: reference to a generic phy.
31 */
32void ufs_qcom_phy_disable_dev_ref_clk(struct phy *phy);
33
34int ufs_qcom_phy_set_tx_lane_enable(struct phy *phy, u32 tx_lanes);
35void ufs_qcom_phy_save_controller_version(struct phy *phy,
36 u8 major, u16 minor, u16 step);
37
38#endif /* PHY_QCOM_UFS_H_ */