clk: ti: dpll: move omap3 DPLL functionality to clock driver
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-omap2 / clock3xxx.c
1 /*
2  * OMAP3-specific clock framework functions
3  *
4  * Copyright (C) 2007-2008 Texas Instruments, Inc.
5  * Copyright (C) 2007-2010 Nokia Corporation
6  *
7  * Paul Walmsley
8  * Jouni Högander
9  *
10  * Parts of this code are based on code written by
11  * Richard Woodruff, Tony Lindgren, Tuukka Tikkanen, Karthik Dasu
12  *
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License version 2 as
15  * published by the Free Software Foundation.
16  */
17 #undef DEBUG
18
19 #include <linux/kernel.h>
20 #include <linux/errno.h>
21 #include <linux/clk.h>
22 #include <linux/io.h>
23
24 #include "soc.h"
25 #include "clock.h"
26 #include "clock3xxx.h"
27 #include "prm2xxx_3xxx.h"
28 #include "prm-regbits-34xx.h"
29 #include "cm2xxx_3xxx.h"
30 #include "cm-regbits-34xx.h"
31
32 /* needed by omap3_core_dpll_m2_set_rate() */
33 struct clk *sdrc_ick_p, *arm_fck_p;