mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 17:16:45 +07:00
f9419783a6
SPDX headers updated for common/branch/pll/regmap files. Signed-off-by: Taniya Das <tdas@codeaurora.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (c) 2014, The Linux Foundation. All rights reserved. */
|
|
|
|
#ifndef __QCOM_CLK_REGMAP_H__
|
|
#define __QCOM_CLK_REGMAP_H__
|
|
|
|
#include <linux/clk-provider.h>
|
|
|
|
struct regmap;
|
|
|
|
/**
|
|
* struct clk_regmap - regmap supporting clock
|
|
* @hw: handle between common and hardware-specific interfaces
|
|
* @regmap: regmap to use for regmap helpers and/or by providers
|
|
* @enable_reg: register when using regmap enable/disable ops
|
|
* @enable_mask: mask when using regmap enable/disable ops
|
|
* @enable_is_inverted: flag to indicate set enable_mask bits to disable
|
|
* when using clock_enable_regmap and friends APIs.
|
|
*/
|
|
struct clk_regmap {
|
|
struct clk_hw hw;
|
|
struct regmap *regmap;
|
|
unsigned int enable_reg;
|
|
unsigned int enable_mask;
|
|
bool enable_is_inverted;
|
|
};
|
|
#define to_clk_regmap(_hw) container_of(_hw, struct clk_regmap, hw)
|
|
|
|
int clk_is_enabled_regmap(struct clk_hw *hw);
|
|
int clk_enable_regmap(struct clk_hw *hw);
|
|
void clk_disable_regmap(struct clk_hw *hw);
|
|
int devm_clk_register_regmap(struct device *dev, struct clk_regmap *rclk);
|
|
|
|
#endif
|