summaryrefslogtreecommitdiff
path: root/arch/sandbox/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-15 17:25:24 +1300
committerSimon Glass <sjg@chromium.org>2021-03-26 17:03:08 +1300
commit8813986dfde89ae2eab2a2315e1d23e4784c3d88 (patch)
tree5190de0581e5accc73701318124a1fe23e218853 /arch/sandbox/include
parent4ddc91b32f9fc2292686dffe0159e2679362f78b (diff)
downloadu-boot-8813986dfde89ae2eab2a2315e1d23e4784c3d88.tar.gz
clk: sandbox: Create a special fixed-rate driver
Create a version of this driver for sandbox so that it can use the of-platdata struct. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/include')
-rw-r--r--arch/sandbox/include/asm/clk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/clk.h b/arch/sandbox/include/asm/clk.h
index 6972b9e743..df7156fe31 100644
--- a/arch/sandbox/include/asm/clk.h
+++ b/arch/sandbox/include/asm/clk.h
@@ -61,6 +61,14 @@ struct sandbox_clk_test {
struct clk_bulk bulk;
};
+/* Platform data for the sandbox fixed-rate clock driver */
+struct sandbox_clk_fixed_rate_plat {
+#if CONFIG_IS_ENABLED(OF_PLATDATA)
+ struct dtd_sandbox_fixed_clock dtplat;
+#endif
+ struct clk_fixed_rate fixed;
+};
+
/**
* sandbox_clk_query_rate - Query the current rate of a sandbox clock.
*