1 /* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
15 static int dummy_clk_enable(unsigned id
)
20 static void dummy_clk_disable(unsigned id
)
24 static int dummy_clk_reset(unsigned id
, enum clk_reset_action action
)
29 static int dummy_clk_set_rate(unsigned id
, unsigned rate
)
34 static int dummy_clk_set_min_rate(unsigned id
, unsigned rate
)
39 static int dummy_clk_set_max_rate(unsigned id
, unsigned rate
)
44 static int dummy_clk_set_flags(unsigned id
, unsigned flags
)
49 static unsigned dummy_clk_get_rate(unsigned id
)
54 static unsigned dummy_clk_is_enabled(unsigned id
)
59 static long dummy_clk_round_rate(unsigned id
, unsigned rate
)
64 static bool dummy_clk_is_local(unsigned id
)
69 struct clk_ops clk_ops_dummy
= {
70 .enable
= dummy_clk_enable
,
71 .disable
= dummy_clk_disable
,
72 .reset
= dummy_clk_reset
,
73 .set_rate
= dummy_clk_set_rate
,
74 .set_min_rate
= dummy_clk_set_min_rate
,
75 .set_max_rate
= dummy_clk_set_max_rate
,
76 .set_flags
= dummy_clk_set_flags
,
77 .get_rate
= dummy_clk_get_rate
,
78 .is_enabled
= dummy_clk_is_enabled
,
79 .round_rate
= dummy_clk_round_rate
,
80 .is_local
= dummy_clk_is_local
,