mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 05:04:00 +08:00
ddc9e569f1
This patch corrects the SPDX License Identifier style in clk-regmap-mux-div.h. 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.3 KiB
C
45 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2017, Linaro Limited
|
|
* Author: Georgi Djakov <georgi.djakov@linaro.org>
|
|
*/
|
|
|
|
#ifndef __QCOM_CLK_REGMAP_MUX_DIV_H__
|
|
#define __QCOM_CLK_REGMAP_MUX_DIV_H__
|
|
|
|
#include <linux/clk-provider.h>
|
|
#include "clk-regmap.h"
|
|
|
|
/**
|
|
* struct mux_div_clk - combined mux/divider clock
|
|
* @reg_offset: offset of the mux/divider register
|
|
* @hid_width: number of bits in half integer divider
|
|
* @hid_shift: lowest bit of hid value field
|
|
* @src_width: number of bits in source select
|
|
* @src_shift: lowest bit of source select field
|
|
* @div: the divider raw configuration value
|
|
* @src: the mux index which will be used if the clock is enabled
|
|
* @parent_map: map from parent_names index to src_sel field
|
|
* @clkr: handle between common and hardware-specific interfaces
|
|
* @pclk: the input PLL clock
|
|
* @clk_nb: clock notifier for rate changes of the input PLL
|
|
*/
|
|
struct clk_regmap_mux_div {
|
|
u32 reg_offset;
|
|
u32 hid_width;
|
|
u32 hid_shift;
|
|
u32 src_width;
|
|
u32 src_shift;
|
|
u32 div;
|
|
u32 src;
|
|
const u32 *parent_map;
|
|
struct clk_regmap clkr;
|
|
struct clk *pclk;
|
|
struct notifier_block clk_nb;
|
|
};
|
|
|
|
extern const struct clk_ops clk_regmap_mux_div_ops;
|
|
extern int mux_div_set_src_div(struct clk_regmap_mux_div *md, u32 src, u32 div);
|
|
|
|
#endif
|