Quoting Christian Marangi (2023-11-24 07:18:45) > diff --git a/drivers/clk/qcom/clk-rcg.h b/drivers/clk/qcom/clk-rcg.h > index e6d84c8c7989..c81458db6ce4 100644 > --- a/drivers/clk/qcom/clk-rcg.h > +++ b/drivers/clk/qcom/clk-rcg.h > @@ -17,6 +17,23 @@ struct freq_tbl { > u16 n; > }; > > +#define C(s, h, m, n) { (s), (2 * (h) - 1), (m), (n) } > +#define FM(f, confs) { (f), ARRAY_SIZE(confs), (confs) } > +#define FMS(f, s, h, m, n) { (f), 1, (const struct freq_conf []){ C(s, h, m, n) } } > + > +struct freq_conf { > + u8 src; > + u8 pre_div; > + u16 m; > + u16 n; > +}; > + > +struct freq_multi_tbl { > + unsigned long freq; > + int num_confs; size_t? > + const struct freq_conf *confs; > +}; > + > /** > * struct mn - M/N:D counter > * @mnctr_en_bit: bit to enable mn counter