From 8813986dfde89ae2eab2a2315e1d23e4784c3d88 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 15 Mar 2021 17:25:24 +1300 Subject: 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 Signed-off-by: Simon Glass --- arch/sandbox/include/asm/clk.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'arch/sandbox/include') 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. * -- cgit v1.2.1