blob: feef984a7bf1bbab787ea22d0445a8b1db169ad9 [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
2 *
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.
6 *
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.
11 */
12
13#include "clock.h"
14
15static int dummy_clk_reset(struct clk *clk, enum clk_reset_action action)
16{
17 return 0;
18}
19
Matt Wagantall9de3bfb2011-11-03 20:13:12 -070020static int dummy_clk_set_rate(struct clk *clk, unsigned long rate)
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070021{
22 return 0;
23}
24
Matt Wagantall9de3bfb2011-11-03 20:13:12 -070025static int dummy_clk_set_min_rate(struct clk *clk, unsigned long rate)
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070026{
27 return 0;
28}
29
Matt Wagantall9de3bfb2011-11-03 20:13:12 -070030static int dummy_clk_set_max_rate(struct clk *clk, unsigned long rate)
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070031{
32 return 0;
33}
34
35static int dummy_clk_set_flags(struct clk *clk, unsigned flags)
36{
37 return 0;
38}
39
Matt Wagantall9de3bfb2011-11-03 20:13:12 -070040static unsigned long dummy_clk_get_rate(struct clk *clk)
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070041{
42 return 0;
43}
44
Matt Wagantall9de3bfb2011-11-03 20:13:12 -070045static long dummy_clk_round_rate(struct clk *clk, unsigned long rate)
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070046{
47 return rate;
48}
49
50static bool dummy_clk_is_local(struct clk *clk)
51{
52 return true;
53}
54
55static struct clk_ops clk_ops_dummy = {
56 .reset = dummy_clk_reset,
57 .set_rate = dummy_clk_set_rate,
58 .set_min_rate = dummy_clk_set_min_rate,
59 .set_max_rate = dummy_clk_set_max_rate,
60 .set_flags = dummy_clk_set_flags,
61 .get_rate = dummy_clk_get_rate,
62 .round_rate = dummy_clk_round_rate,
63 .is_local = dummy_clk_is_local,
64};
65
66struct clk dummy_clk = {
67 .dbg_name = "dummy_clk",
68 .ops = &clk_ops_dummy,
69 CLK_INIT(dummy_clk),
70};