[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220726142303.4126434-7-abel.vesa@linaro.org>
Date: Tue, 26 Jul 2022 17:23:00 +0300
From: Abel Vesa <abel.vesa@...aro.org>
To: Bjorn Andersson <bjorn.andersson@...aro.org>,
Andy Gross <agross@...nel.org>,
Konrad Dybcio <konrad.dybcio@...ainline.org>,
Mike Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>
Cc: linux-arm-msm@...r.kernel.org, linux-clk@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Abel Vesa <abel.vesa@...aro.org>
Subject: [RFC 6/9] clk: qcom: common: Add macro wrapper for all clock types
Add a generic macro that uses the clk_type to figure out which
clock type specific macro to call.
Signed-off-by: Abel Vesa <abel.vesa@...aro.org>
---
drivers/clk/qcom/common.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/clk/qcom/common.h b/drivers/clk/qcom/common.h
index 9c8f7b798d9f..475febd19dba 100644
--- a/drivers/clk/qcom/common.h
+++ b/drivers/clk/qcom/common.h
@@ -19,6 +19,9 @@ struct clk_hw;
#define PLL_VOTE_FSM_ENA BIT(20)
#define PLL_VOTE_FSM_RESET BIT(21)
+#define DEFINE_QCOM_CC_CLK(clk_type, ...) \
+ DEFINE_QCOM_CC_CLK_##clk_type(__VA_ARGS__)
+
struct qcom_cc_desc {
const struct regmap_config *config;
struct clk_regmap **clks;
--
2.34.3
Powered by blists - more mailing lists