Files
cubelinux-kernel/drivers/clk/qcom/clk-hfpll.h
T
Greg Kroah-Hartman 598cf27219 Linux 6.19.3
Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com>
Tested-by: Peter Schneider <pschneider1968@googlemail.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Salvatore Bonaccorso <carnil@debian.org>
Tested-by: Brett A C Sheffield <bacs@librecast.net>
Tested-by: Mark Brown <broonie@kernel.org>
Tested-by: Luna Jernberg <droidbittin@gmail.com>
Tested-by: Ronald Warsow <rwarsow@gmx.de>
Tested-by: Justin M. Forbes <jforbes@fedoraproject.org>
Tested-by: Ron Economos <re@w6rz.net>
Tested-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-02-19 16:33:27 +01:00

46 lines
754 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __QCOM_CLK_HFPLL_H__
#define __QCOM_CLK_HFPLL_H__
#include <linux/clk-provider.h>
#include <linux/spinlock.h>
#include "clk-regmap.h"
struct hfpll_data {
u32 mode_reg;
u32 l_reg;
u32 m_reg;
u32 n_reg;
u32 user_reg;
u32 droop_reg;
u32 config_reg;
u32 status_reg;
u8 lock_bit;
u32 l_val;
u32 droop_val;
u32 config_val;
u32 user_val;
u32 user_vco_mask;
unsigned long low_vco_max_rate;
unsigned long min_rate;
unsigned long max_rate;
};
struct clk_hfpll {
struct hfpll_data const *d;
int init_done;
struct clk_regmap clkr;
spinlock_t lock;
};
#define to_clk_hfpll(_hw) \
container_of(to_clk_regmap(_hw), struct clk_hfpll, clkr)
extern const struct clk_ops clk_ops_hfpll;
#endif