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>
42 lines
735 B
C
42 lines
735 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef __QCOM_CLK_KRAIT_H
|
|
#define __QCOM_CLK_KRAIT_H
|
|
|
|
#include <linux/clk-provider.h>
|
|
|
|
struct krait_mux_clk {
|
|
unsigned int *parent_map;
|
|
u32 offset;
|
|
u32 mask;
|
|
u32 shift;
|
|
u32 en_mask;
|
|
bool lpl;
|
|
u8 safe_sel;
|
|
u8 old_index;
|
|
bool reparent;
|
|
bool disable_sec_src_gating;
|
|
|
|
struct clk_hw hw;
|
|
struct notifier_block clk_nb;
|
|
};
|
|
|
|
#define to_krait_mux_clk(_hw) container_of(_hw, struct krait_mux_clk, hw)
|
|
|
|
extern const struct clk_ops krait_mux_clk_ops;
|
|
|
|
struct krait_div2_clk {
|
|
u32 offset;
|
|
u8 width;
|
|
u32 shift;
|
|
bool lpl;
|
|
|
|
struct clk_hw hw;
|
|
};
|
|
|
|
#define to_krait_div2_clk(_hw) container_of(_hw, struct krait_div2_clk, hw)
|
|
|
|
extern const struct clk_ops krait_div2_clk_ops;
|
|
|
|
#endif
|