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>
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user