[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5bcc0bafc1c31ca4902b9b574f02625d.sboyd@kernel.org>
Date: Wed, 20 Dec 2023 12:07:37 -0800
From: Stephen Boyd <sboyd@...nel.org>
To: Andy Gross <agross@...nel.org>, Bjorn Andersson <andersson@...nel.org>, Christian Marangi <ansuelsmth@...il.com>, Konrad Dybcio <konrad.dybcio@...aro.org>, Michael Turquette <mturquette@...libre.com>, linux-arm-msm@...r.kernel.org, linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Christian Marangi <ansuelsmth@...il.com>
Subject: Re: [PATCH v7 1/3] clk: qcom: clk-rcg: introduce support for multiple conf for same freq
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
Powered by blists - more mailing lists