[PATCH 1/8] clk: test: introduce a few specific rate constants for mock testing

From: Brian Masney
Date: Mon Apr 07 2025 - 09:14:31 EST


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@xxxxxxxxxx>
---
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