#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/mfd/palmas.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#define PALMAS_CLOCK_DT_EXT_CONTROL_ENABLE1 …
#define PALMAS_CLOCK_DT_EXT_CONTROL_ENABLE2 …
#define PALMAS_CLOCK_DT_EXT_CONTROL_NSLEEP …
struct palmas_clk32k_desc { … };
struct palmas_clock_info { … };
static inline struct palmas_clock_info *to_palmas_clks_info(struct clk_hw *hw)
{ … }
static unsigned long palmas_clks_recalc_rate(struct clk_hw *hw,
unsigned long parent_rate)
{ … }
static int palmas_clks_prepare(struct clk_hw *hw)
{ … }
static void palmas_clks_unprepare(struct clk_hw *hw)
{ … }
static int palmas_clks_is_prepared(struct clk_hw *hw)
{ … }
static const struct clk_ops palmas_clks_ops = …;
struct palmas_clks_of_match_data { … };
static const struct palmas_clks_of_match_data palmas_of_clk32kg = …;
static const struct palmas_clks_of_match_data palmas_of_clk32kgaudio = …;
static const struct of_device_id palmas_clks_of_match[] = …;
MODULE_DEVICE_TABLE(of, palmas_clks_of_match);
static void palmas_clks_get_clk_data(struct platform_device *pdev,
struct palmas_clock_info *cinfo)
{ … }
static int palmas_clks_init_configure(struct palmas_clock_info *cinfo)
{ … }
static int palmas_clks_probe(struct platform_device *pdev)
{ … }
static void palmas_clks_remove(struct platform_device *pdev)
{ … }
static struct platform_driver palmas_clks_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_ALIAS(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;