summaryrefslogtreecommitdiff
path: root/drivers/clk/meson/meson-aoclk.h
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2019-01-16 20:54:35 +0300
committerNeil Armstrong <narmstrong@baylibre.com>2019-01-18 12:51:39 +0300
commit439a6bb5bfe775f9aa18f267a54878e0ac7f3d49 (patch)
treee7ca071c7ddea0846ddb9e444c81c9176e6f1168 /drivers/clk/meson/meson-aoclk.h
parent6e73dac7078f13d7fd2ee0d59941c5425bcf8ed8 (diff)
downloadlinux-439a6bb5bfe775f9aa18f267a54878e0ac7f3d49.tar.xz
clk: meson: ao-clkc: claim clock controller input clocks from DT
Instead of relying on a fixed names for the differents input clocks of the controller, get them through DT. Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://lkml.kernel.org/r/20190116175435.4990-4-jbrunet@baylibre.com
Diffstat (limited to 'drivers/clk/meson/meson-aoclk.h')
-rw-r--r--drivers/clk/meson/meson-aoclk.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/clk/meson/meson-aoclk.h b/drivers/clk/meson/meson-aoclk.h
index ab2819e88922..0758b35d4427 100644
--- a/drivers/clk/meson/meson-aoclk.h
+++ b/drivers/clk/meson/meson-aoclk.h
@@ -13,14 +13,22 @@
#include <linux/platform_device.h>
#include <linux/reset-controller.h>
-#include "clk-regmap.h"
+#include "clkc.h"
+
+struct meson_aoclk_input {
+ const char *name;
+ bool required;
+};
struct meson_aoclk_data {
const unsigned int reset_reg;
const int num_reset;
const unsigned int *reset;
- int num_clks;
+ const int num_clks;
struct clk_regmap **clks;
+ const int num_inputs;
+ const struct meson_aoclk_input *inputs;
+ const char *input_prefix;
const struct clk_hw_onecell_data *hw_data;
};