Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
clock2430.c
Go to the documentation of this file.
1 /*
2  * clock2430.c - OMAP2430-specific clock integration code
3  *
4  * Copyright (C) 2005-2008 Texas Instruments, Inc.
5  * Copyright (C) 2004-2010 Nokia Corporation
6  *
7  * Contacts:
8  * Richard Woodruff <[email protected]>
9  * Paul Walmsley
10  *
11  * Based on earlier work by Tuukka Tikkanen, Tony Lindgren,
12  * Gordon McNutt and RidgeRun, Inc.
13  *
14  * This program is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License version 2 as
16  * published by the Free Software Foundation.
17  */
18 #undef DEBUG
19 
20 #include <linux/kernel.h>
21 #include <linux/clk.h>
22 #include <linux/io.h>
23 
24 #include <plat/clock.h>
25 
26 #include "soc.h"
27 #include "iomap.h"
28 #include "clock.h"
29 #include "clock2xxx.h"
30 #include "cm2xxx_3xxx.h"
31 #include "cm-regbits-24xx.h"
32 
45 static void omap2430_clk_i2chs_find_idlest(struct clk *clk,
46  void __iomem **idlest_reg,
47  u8 *idlest_bit,
48  u8 *idlest_val)
49 {
50  *idlest_reg = OMAP2430_CM_REGADDR(CORE_MOD, CM_IDLEST);
51  *idlest_bit = clk->enable_bit;
52  *idlest_val = OMAP24XX_CM_IDLEST_VAL;
53 }
54 
55 /* 2430 I2CHS has non-standard IDLEST register */
57  .enable = omap2_dflt_clk_enable,
58  .disable = omap2_dflt_clk_disable,
59  .find_idlest = omap2430_clk_i2chs_find_idlest,
60  .find_companion = omap2_clk_dflt_find_companion,
61 };