mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 08:05:04 +07:00
ddd3e8b976
This patch corrects the SPDX License Identifier style in header files related to Clock Drivers for Actions Semi Socs. For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used) Changes made by using a script provided by Joe Perches here: https://lkml.org/lkml/2019/2/7/46 Suggested-by: Joe Perches <joe@perches.com> Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
45 lines
1.0 KiB
C
45 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
//
|
|
// OWL common clock driver
|
|
//
|
|
// Copyright (c) 2014 Actions Semi Inc.
|
|
// Author: David Liu <liuwei@actions-semi.com>
|
|
//
|
|
// Copyright (c) 2018 Linaro Ltd.
|
|
// Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
|
|
|
|
#ifndef _OWL_COMMON_H_
|
|
#define _OWL_COMMON_H_
|
|
|
|
#include <linux/clk-provider.h>
|
|
#include <linux/of_platform.h>
|
|
#include <linux/regmap.h>
|
|
|
|
struct device_node;
|
|
|
|
struct owl_clk_common {
|
|
struct regmap *regmap;
|
|
struct clk_hw hw;
|
|
};
|
|
|
|
struct owl_clk_desc {
|
|
struct owl_clk_common **clks;
|
|
unsigned long num_clks;
|
|
struct clk_hw_onecell_data *hw_clks;
|
|
const struct owl_reset_map *resets;
|
|
unsigned long num_resets;
|
|
struct regmap *regmap;
|
|
};
|
|
|
|
static inline struct owl_clk_common *
|
|
hw_to_owl_clk_common(const struct clk_hw *hw)
|
|
{
|
|
return container_of(hw, struct owl_clk_common, hw);
|
|
}
|
|
|
|
int owl_clk_regmap_init(struct platform_device *pdev,
|
|
struct owl_clk_desc *desc);
|
|
int owl_clk_probe(struct device *dev, struct clk_hw_onecell_data *hw_clks);
|
|
|
|
#endif /* _OWL_COMMON_H_ */
|