Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
vp44xx_data.c
Go to the documentation of this file.
1 /*
2  * OMAP3 Voltage Processor (VP) data
3  *
4  * Copyright (C) 2007, 2010 Texas Instruments, Inc.
5  * Rajendra Nayak <[email protected]>
6  * Lesly A M <[email protected]>
7  * Thara Gopinath <[email protected]>
8  *
9  * Copyright (C) 2008, 2011 Nokia Corporation
10  * Kalle Jokiniemi
11  * Paul Walmsley
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 
18 #include <linux/io.h>
19 #include <linux/err.h>
20 #include <linux/init.h>
21 
22 #include "common.h"
23 
24 #include "prm44xx.h"
25 #include "prm-regbits-44xx.h"
26 #include "voltage.h"
27 
28 #include "vp.h"
29 
30 static const struct omap_vp_ops omap4_vp_ops = {
31  .check_txdone = omap4_prm_vp_check_txdone,
32  .clear_txdone = omap4_prm_vp_clear_txdone,
33 };
34 
35 /*
36  * VP data common to 44xx chips
37  * XXX This stuff presumably belongs in the vp44xx.c or vp.c file.
38  */
39 static const struct omap_vp_common omap4_vp_common = {
40  .vpconfig_erroroffset_mask = OMAP4430_ERROROFFSET_MASK,
41  .vpconfig_errorgain_mask = OMAP4430_ERRORGAIN_MASK,
42  .vpconfig_initvoltage_mask = OMAP4430_INITVOLTAGE_MASK,
43  .vpconfig_timeouten = OMAP4430_TIMEOUTEN_MASK,
44  .vpconfig_initvdd = OMAP4430_INITVDD_MASK,
45  .vpconfig_forceupdate = OMAP4430_FORCEUPDATE_MASK,
46  .vpconfig_vpenable = OMAP4430_VPENABLE_MASK,
47  .vstepmin_smpswaittimemin_shift = OMAP4430_SMPSWAITTIMEMIN_SHIFT,
48  .vstepmax_smpswaittimemax_shift = OMAP4430_SMPSWAITTIMEMAX_SHIFT,
49  .vstepmin_stepmin_shift = OMAP4430_VSTEPMIN_SHIFT,
50  .vstepmax_stepmax_shift = OMAP4430_VSTEPMAX_SHIFT,
51  .vlimitto_vddmin_shift = OMAP4430_VDDMIN_SHIFT,
52  .vlimitto_vddmax_shift = OMAP4430_VDDMAX_SHIFT,
53  .vlimitto_timeout_shift = OMAP4430_TIMEOUT_SHIFT,
54  .vpvoltage_mask = OMAP4430_VPVOLTAGE_MASK,
55  .ops = &omap4_vp_ops,
56 };
57 
59  .id = OMAP4_VP_VDD_MPU_ID,
60  .common = &omap4_vp_common,
67 };
68 
70  .id = OMAP4_VP_VDD_IVA_ID,
71  .common = &omap4_vp_common,
78 };
79 
82  .common = &omap4_vp_common,
89 };