Release 4.7 drivers/clk/mediatek/clk-gate.h
  
  
/*
 * Copyright (c) 2014 MediaTek Inc.
 * Author: James Liao <jamesjj.liao@mediatek.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */
#ifndef __DRV_CLK_GATE_H
#define __DRV_CLK_GATE_H
#include <linux/regmap.h>
#include <linux/clk-provider.h>
struct clk;
struct mtk_clk_gate {
	
struct clk_hw	hw;
	
struct regmap	*regmap;
	
int		set_ofs;
	
int		clr_ofs;
	
int		sta_ofs;
	
u8		bit;
};
static inline struct mtk_clk_gate *to_mtk_clk_gate(struct clk_hw *hw)
{
	return container_of(hw, struct mtk_clk_gate, hw);
}
Contributors
 | Person | Tokens | Prop | Commits | CommitProp | 
| james liao | james liao | 24 | 96.00% | 1 | 50.00% | 
| geliang tang | geliang tang | 1 | 4.00% | 1 | 50.00% | 
 | Total | 25 | 100.00% | 2 | 100.00% | 
extern const struct clk_ops mtk_clk_gate_ops_setclr;
extern const struct clk_ops mtk_clk_gate_ops_setclr_inv;
struct clk *mtk_clk_register_gate(
		const char *name,
		const char *parent_name,
		struct regmap *regmap,
		int set_ofs,
		int clr_ofs,
		int sta_ofs,
		u8 bit,
		const struct clk_ops *ops);
#endif /* __DRV_CLK_GATE_H */
Overall Contributors
 | Person | Tokens | Prop | Commits | CommitProp | 
| james liao | james liao | 117 | 96.69% | 1 | 33.33% | 
| stephen boyd | stephen boyd | 3 | 2.48% | 1 | 33.33% | 
| geliang tang | geliang tang | 1 | 0.83% | 1 | 33.33% | 
 | Total | 121 | 100.00% | 3 | 100.00% | 
  
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.