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:
Simon Glass
2021-03-15 17:25:24 +13:00
parent 4ddc91b32f
commit 8813986dfd
4 changed files with 43 additions and 2 deletions

View File

@@ -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.
*