summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/clock44xx.c
blob: 5b25d38d542e6ec89bfcf138c367ee6f2d50ae20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
 * OMAP4-specific clock framework functions
 *
 * Copyright (C) 2009 Texas Instruments, Inc.
 *
 * Rajendra Nayak (rnayak@ti.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.
 */

#include <linux/errno.h>
#include "clock.h"

struct clk_functions omap2_clk_functions = {
	.clk_enable		= omap2_clk_enable,
	.clk_disable		= omap2_clk_disable,
	.clk_round_rate		= omap2_clk_round_rate,
	.clk_set_rate		= omap2_clk_set_rate,
	.clk_set_parent		= omap2_clk_set_parent,
	.clk_disable_unused	= omap2_clk_disable_unused,
};

/*
 * Dummy functions for DPLL control. Plan is to re-use
 * existing OMAP3 dpll control functions.
 */

unsigned long omap3_dpll_recalc(struct clk *clk)
{
	return 0;
}

int omap3_noncore_dpll_set_rate(struct clk *clk, unsigned long rate)
{
	return 0;
}

int omap3_noncore_dpll_enable(struct clk *clk)
{
	return 0;
}

void omap3_noncore_dpll_disable(struct clk *clk)
{
	return;
}

const struct clkops clkops_noncore_dpll_ops = {
	.enable		= &omap3_noncore_dpll_enable,
	.disable	= &omap3_noncore_dpll_disable,
};

void omap2_clk_prepare_for_reboot(void)
{
	return;
}