Beispiel #1
0
static void clk_gate_disable(struct clk_hw *hw)
{
#if !defined(CONFIG_MTK_LEGACY) /* FIXME: only for bring up */
	printk("[CCF] %s: %s\n", __func__, __clk_get_name(hw->clk));
	return;
#endif /* !defined(CONFIG_MTK_LEGACY) */
	clk_gate_endisable(hw, 0);
}
static void clk_gate_disable(struct clk_hw *hw)
{
	clk_gate_endisable(hw, 0);
}
static int clk_gate_enable(struct clk_hw *hw)
{
	clk_gate_endisable(hw, 1);

	return 0;
}
static void clk_gate_disable(struct clk_hw *hw)
{
#ifndef CONFIG_HISI_CLK_ALWAYS_ON
	clk_gate_endisable(hw, 0);
#endif
}
static int pmudebug_clk_gate_enable(struct clk_hw *hw)
{
	clk_gate_endisable(hw, 0);

	return 0;
}
static void pmudebug_clk_gate_disable(struct clk_hw *hw)
{
	clk_gate_endisable(hw, 1);
}