summaryrefslogtreecommitdiff
path: root/arch/sandbox/include/asm/clk.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-15 17:25:22 +1300
committerSimon Glass <sjg@chromium.org>2021-03-21 14:30:47 +1300
commitd7b1e2d0ca817770a4611d50f4929c0ba54b76e0 (patch)
tree3fb2bd93c656c13580e5a701ced562634a76b10e /arch/sandbox/include/asm/clk.h
parent25625a580624df95cc822ac02fb0ed077284e296 (diff)
downloadu-boot-d7b1e2d0ca817770a4611d50f4929c0ba54b76e0.tar.gz
clk: sandbox: Move priv/plat data to a header file
At present the structs used by this driver are not accessible outside it, so cannot be used with OF_PLATDATA_INST. Move them to a header file to fix this. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/include/asm/clk.h')
-rw-r--r--arch/sandbox/include/asm/clk.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/clk.h b/arch/sandbox/include/asm/clk.h
index 68a8687f57..6972b9e743 100644
--- a/arch/sandbox/include/asm/clk.h
+++ b/arch/sandbox/include/asm/clk.h
@@ -7,6 +7,9 @@
#define __SANDBOX_CLK_H
#include <common.h>
+#include <clk.h>
+#include <dt-structs.h>
+#include <linux/clk-provider.h>
struct udevice;
@@ -45,6 +48,19 @@ enum sandbox_clk_test_id {
#define SANDBOX_CLK_TEST_NON_DEVM_COUNT SANDBOX_CLK_TEST_ID_DEVM1
+struct sandbox_clk_priv {
+ bool probed;
+ ulong rate[SANDBOX_CLK_ID_COUNT];
+ bool enabled[SANDBOX_CLK_ID_COUNT];
+ bool requested[SANDBOX_CLK_ID_COUNT];
+};
+
+struct sandbox_clk_test {
+ struct clk clks[SANDBOX_CLK_TEST_NON_DEVM_COUNT];
+ struct clk *clkps[SANDBOX_CLK_TEST_ID_COUNT];
+ struct clk_bulk bulk;
+};
+
/**
* sandbox_clk_query_rate - Query the current rate of a sandbox clock.
*