[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250407131258.70638-2-bmasney@redhat.com>
Date: Mon, 7 Apr 2025 09:12:51 -0400
From: Brian Masney <bmasney@...hat.com>
To: sboyd@...nel.org,
mturquette@...libre.com
Cc: linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org,
mripard@...hat.com
Subject: [PATCH 1/8] clk: test: introduce a few specific rate constants for mock testing
Some of the mock tests care about the relationship between two
different rates, and the specific numbers are important, such as for
mocking a divider.
Signed-off-by: Brian Masney <bmasney@...hat.com>
---
drivers/clk/clk_test.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/clk/clk_test.c b/drivers/clk/clk_test.c
index f08feeaa3750..1b34d54ec9c6 100644
--- a/drivers/clk/clk_test.c
+++ b/drivers/clk/clk_test.c
@@ -24,6 +24,10 @@ static const struct clk_ops empty_clk_ops = { };
#define DUMMY_CLOCK_INIT_RATE (42 * 1000 * 1000)
#define DUMMY_CLOCK_RATE_1 (142 * 1000 * 1000)
#define DUMMY_CLOCK_RATE_2 (242 * 1000 * 1000)
+#define DUMMY_CLOCK_RATE_6_MHZ (6 * 1000 * 1000)
+#define DUMMY_CLOCK_RATE_16_MHZ (16 * 1000 * 1000)
+#define DUMMY_CLOCK_RATE_24_MHZ (24 * 1000 * 1000)
+#define DUMMY_CLOCK_RATE_48_MHZ (48 * 1000 * 1000)
struct clk_dummy_context {
struct clk_hw hw;
--
2.49.0
Powered by blists - more mailing lists