// SPDX-License-Identifier: GPL-2.0-only /* * UFS Host driver for Synopsys Designware Core * * Copyright (C) 2015-2016 Synopsys, Inc. (www.synopsys.com) * * Authors: Joao Pinto <[email protected]> */ #include <linux/module.h> #include <ufs/ufshcd.h> #include <ufs/unipro.h> #include "ufshcd-dwc.h" #include "ufshci-dwc.h" int ufshcd_dwc_dme_set_attrs(struct ufs_hba *hba, const struct ufshcd_dme_attr_val *v, int n) { … } EXPORT_SYMBOL(…); /** * ufshcd_dwc_program_clk_div() - program clock divider. * @hba: Private Structure pointer * @divider_val: clock divider value to be programmed * */ static void ufshcd_dwc_program_clk_div(struct ufs_hba *hba, u32 divider_val) { … } /** * ufshcd_dwc_link_is_up() - check if link is up. * @hba: private structure pointer * * Return: 0 on success, non-zero value on failure. */ static int ufshcd_dwc_link_is_up(struct ufs_hba *hba) { … } /** * ufshcd_dwc_connection_setup() - configure unipro attributes. * @hba: pointer to drivers private data * * This function configures both the local side (host) and the peer side * (device) unipro attributes to establish the connection to application/ * cport. * This function is not required if the hardware is properly configured to * have this connection setup on reset. But invoking this function does no * harm and should be fine even working with any ufs device. * * Return: 0 on success non-zero value on failure. */ static int ufshcd_dwc_connection_setup(struct ufs_hba *hba) { … } /** * ufshcd_dwc_link_startup_notify() - program clock divider. * @hba: private structure pointer * @status: Callback notify status * * Return: 0 on success, non-zero value on failure. */ int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba, enum ufs_notify_change_status status) { … } EXPORT_SYMBOL(…); MODULE_AUTHOR(…) …; MODULE_DESCRIPTION(…) …; MODULE_LICENSE(…) …;