blob: fda7a927b3c20de9263d33b4542d94e3a4f599f1 [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
Matt Wagantall33d01f52012-02-23 23:27:44 -080013#include <mach/clk-provider.h>
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070014
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_max_rate(struct clk *clk, unsigned long rate)
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070026{
27 return 0;
28}
29
30static int dummy_clk_set_flags(struct clk *clk, unsigned flags)
31{
32 return 0;
33}
34
Matt Wagantall9de3bfb2011-11-03 20:13:12 -070035static unsigned long dummy_clk_get_rate(struct clk *clk)
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070036{
37 return 0;
38}
39
Matt Wagantall9de3bfb2011-11-03 20:13:12 -070040static long dummy_clk_round_rate(struct clk *clk, unsigned long rate)
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070041{
42 return rate;
43}
44
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070045static struct clk_ops clk_ops_dummy = {
46 .reset = dummy_clk_reset,
47 .set_rate = dummy_clk_set_rate,
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070048 .set_max_rate = dummy_clk_set_max_rate,
49 .set_flags = dummy_clk_set_flags,
50 .get_rate = dummy_clk_get_rate,
51 .round_rate = dummy_clk_round_rate,
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070052};
53
54struct clk dummy_clk = {
55 .dbg_name = "dummy_clk",
56 .ops = &clk_ops_dummy,
57 CLK_INIT(dummy_clk),
58};