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>
52 lines
1.1 KiB
C
52 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2024 Neil Armstrong <neil.armstrong@linaro.org>
|
|
*/
|
|
|
|
#ifndef __VCLK_H
|
|
#define __VCLK_H
|
|
|
|
#include "clk-regmap.h"
|
|
#include "parm.h"
|
|
|
|
/**
|
|
* struct meson_vclk_gate_data - vclk_gate regmap backed specific data
|
|
*
|
|
* @enable: vclk enable field
|
|
* @reset: vclk reset field
|
|
* @flags: hardware-specific flags
|
|
*
|
|
* Flags:
|
|
* Same as clk_gate except CLK_GATE_HIWORD_MASK which is ignored
|
|
*/
|
|
struct meson_vclk_gate_data {
|
|
struct parm enable;
|
|
struct parm reset;
|
|
u8 flags;
|
|
};
|
|
|
|
extern const struct clk_ops meson_vclk_gate_ops;
|
|
|
|
/**
|
|
* struct meson_vclk_div_data - vclk_div regmap back specific data
|
|
*
|
|
* @div: divider field
|
|
* @enable: vclk divider enable field
|
|
* @reset: vclk divider reset field
|
|
* @table: array of value/divider pairs, last entry should have div = 0
|
|
*
|
|
* Flags:
|
|
* Same as clk_divider except CLK_DIVIDER_HIWORD_MASK which is ignored
|
|
*/
|
|
struct meson_vclk_div_data {
|
|
struct parm div;
|
|
struct parm enable;
|
|
struct parm reset;
|
|
const struct clk_div_table *table;
|
|
u8 flags;
|
|
};
|
|
|
|
extern const struct clk_ops meson_vclk_div_ops;
|
|
|
|
#endif /* __VCLK_H */
|