diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2019-02-01 17:53:45 +0300 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2019-02-04 11:52:11 +0300 |
commit | 6682bd4d443fad802e11a0a39332025cdfbf5108 (patch) | |
tree | 20fc5daa823752c6cae1fb860e05afd8d4e20481 /drivers/clk/meson/meson-eeclk.h | |
parent | 085a4ea93d5491b9e5274272b528a1fccf9b2546 (diff) | |
download | linux-6682bd4d443fad802e11a0a39332025cdfbf5108.tar.xz |
clk: meson: factorise meson64 peripheral clock controller drivers
The function used to probe the peripheral clock controller of the arm64
amlogic SoCs is mostly the same. We now have 3 of those controllers so
it is time to factorize things a bit.
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/20190201145345.6795-5-jbrunet@baylibre.com
Diffstat (limited to 'drivers/clk/meson/meson-eeclk.h')
-rw-r--r-- | drivers/clk/meson/meson-eeclk.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/clk/meson/meson-eeclk.h b/drivers/clk/meson/meson-eeclk.h new file mode 100644 index 000000000000..1b809b1419fe --- /dev/null +++ b/drivers/clk/meson/meson-eeclk.h @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2019 BayLibre, SAS. + * Author: Jerome Brunet <jbrunet@baylibre.com> + */ + +#ifndef __MESON_CLKC_H +#define __MESON_CLKC_H + +#include <linux/clk-provider.h> +#include "clk-regmap.h" + +#define IN_PREFIX "ee-in-" + +struct platform_device; + +struct meson_eeclkc_data { + struct clk_regmap *const *regmap_clks; + unsigned int regmap_clk_num; + struct clk_hw_onecell_data *hw_onecell_data; +}; + +int meson_eeclkc_probe(struct platform_device *pdev); + +#endif /* __MESON_CLKC_H */ |