CMI Instrumentation Library API Reference Guide
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator
PCMI_Omap4430.h
Go to the documentation of this file.
1 #ifndef __PMI_CMI_OMAP4430_H
2 #define __PMI_CMI_OMAP4430_H
3 /*
4  * PCMI_Omap4430.h
5  *
6  * Common Power & Clock Management Instrumentation OMAP4430 Specific Definitions
7  *
8  * Copyright (C) 2009, 2010 Texas Instruments Incorporated - http://www.ti.com/
9  *
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions
13  * are met:
14  *
15  * Redistributions of source code must retain the above copyright
16  * notice, this list of conditions and the following disclaimer.
17  *
18  * Redistributions in binary form must reproduce the above copyright
19  * notice, this list of conditions and the following disclaimer in the
20  * documentation and/or other materials provided with the
21  * distribution.
22  *
23  * Neither the name of Texas Instruments Incorporated nor the names of
24  * its contributors may be used to endorse or promote products derived
25  * from this software without specific prior written permission.
26  *
27  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
30  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
31  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
32  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
34  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
35  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
36  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38  *
39 */
40 
48 #ifdef _PMI
49 
53 typedef enum {
54  ePMI_LOGIC_VOLTAGE_OPP_CHANGE,
55  ePMI_MEMORY_VOLTAGE_OPP_CHANGE,
56  ePMI_LOGIC_POWER_STATE_CHANGE,
57  ePMI_MEMORY_POWER_STATE_CHANGE
58  } ePMI_DataClass;
59 
63 typedef enum { eLVD_MPU,
64  eLVD_IVA,
65  eLVD_CORE,
66  eLVD_EndEl
67  } ePMI_LVD_OPP;
68 
72 typedef enum { eMVD_SRAM_MPU,
73  eMVD_SRAM_IVA,
74  eMVD_SRAM_CORE,
75  eMVD_EndEl
76  } ePMI_MVD_OPP;
77 
81 typedef enum { eLPD_MPU,
82  eLPD_A9_C0,
83  eLPD_A9_C1,
84  eLPD_TESLA,
85  eLPD_ABE,
86  eLPD_CORE,
87  eLPD_IVAHD,
88  eLPD_CAM,
89  eLPD_DSS,
90  eLPD_GFX,
91  eLPD_L3INT,
92  eLPD_LAPER,
93  eLPD_CEFUSE,
94  eLPD_EndEl
95  } ePMI_LPD_StateChange;
96 
100 typedef enum { eMPD_MPU_L1,
101  eMPD_MPU_L2,
102  eMPD_MPU_RAM,
103  eMPD_MPU_CHIRON_M0,
104  eMPD_MPU_CHIRON_M1,
105  eMPD_TESLA_L1,
106  eMPD_TESLA_L2,
107  eMPD_TESLA_EDMA,
108  eMPD_AUDIO_ENG,
109  eMPD_AUDIO_PER,
110  eMPD_CORE_NON_RET,
111  eMPD_OCMRAM,
112  eMPD_DUCATI_L2,
113  eMPD_DUCATI_UNICHACHE,
114  eMPD_CORE_OTHER_BANKS,
115  eMPD_IVAHD_HWA,
116  eMPD_IVAHD_SL2,
117  eMPD_IVAHD_TCM1,
118  eMPD_IVAHD_TCM2,
119  eMPD_CAM,
120  eMPD_DSS,
121  eMPD_GFX,
122  eMPD_L3INT_BANK1,
123  eMPD_L4_PER1,
124  eMPD_L4_PER2,
125  eMPD_EndEl
126  } ePMI_MPD_StateChange;
127 
131 typedef enum { eMVD_ON,
132  eMVD_SLEEP,
133  eMVD_PwrState_EndEl
134  } ePMI_MVD_PwrState;
135 
139 typedef enum { eLPD_OFF,
140  eLPD_RET,
141  eLPD_INACTIVE,
142  eLPD_ON,
143  eLPD_PwrState_EndEl
144  } ePMI_LPD_PwrState;
145 
149 typedef enum { eMPD_OFF,
150  eMPD_RET,
151  eMPD_INACTIVE,
152  eMPD_ON,
153  eMPD_PwrState_EndEl
154  } ePMI_MPD_PwrState;
155 
156 #ifndef _DOXYGEN_IGNORE
157 extern const char * pPMI_LpdPwrStateStr[];
158 extern const char * pPMI_MvdPwrStateStr[];
159 extern const char * pPMI_MpdOppStr[];
160 extern const char * pPMI_LpdOppStr[];
161 extern const char * pPMI_LpdOppStr[];
162 extern const char * pPMI_MvdOppStr[];
163 extern const char * pPMI_DataClassStr[];
164 extern const char * pPMI_LvdOppStr[];
165 extern const char * pPMI_MpdPwrStateStr[];
166 
167 extern const char PMI_DataValueFmtStr[];
168 #endif
169 #endif
170 #ifdef _CMI
171 
180 
184 typedef enum { //CM1 Clock Domain State Change
195  //CM2 Clock Domain State Change
238  eCMI_CDSC_EndEl
239 
241 
245 typedef enum { eCMI_ClkDomainGated,
247  }eCMI_clkState;
248 
252 typedef enum { //CM1 Clock Divider Ratio Change
258  //CM2 Clock Divider Ratio Change
265 
269 typedef enum { eCMI_DivideBy_dummy, // Just a placeholder for 0
274  eCMI_DivideBy_EndEl
275  } eCMI_divState;
276 
280 typedef enum { //CM1 Clock Source Selection Change
286  //CM2 Clock Source Selection
296 
300 typedef enum { //CM1 DPLL Settings Update
307  //CM2 DLPP Settings Update
312  }eCMI_DPLLSrc;
313 
314 #ifndef _DOXYGEN_IGNORE
315 extern const char * pCMI_DataClassStr[];
316 
317 #define eCM1_CDSC_firstElement eCMI_CDSC_MPU_DPLL
318 #define eCM1_CDSC_lastElement eCMI_CDSC_L4_ALWON_ICLK
319 #define eCM2_CDSC_firstElement eCMI_CDSC_L3_1
320 #define eCM2_CDSC_lastElement eCMI_CDSC_UNIPRO_DPLL
321 
322 extern const char * pCMI_ClkDomainStr[];
323 
324 #define eCM1_DLPPSRC_firstElement eCMI_DLPP_UPDATE_CORE
325 #define eCM1_DLPPSRC_lastElement eCMI_DLPP_UPDATE_DDRPHY
326 #define eCM2_DLPPSRC_firstElement eCMI_DLPP_UPDATE_PER
327 #define eCM2_DLPPSRC_lastElement eCMI_DLPP_UPDATE_UNIPRO
328 
329 extern const char * pCMI_DLPPSrcStr[];
330 
331 #define eCM1_CDRC_firstElement eCMI_CDRC_CLKSEL_OPP
332 #define eCM1_CDRC_lastElement eCMI_CDRC_ABE_AESS
333 #define eCM2_CDRC_firstElement eCMI_CDRC_SCALE_FCLK
334 #define eCM2_CDRC_lastElement eCMI_CDRC_GFX_PER_192M
335 
336 extern const char * pCMI_DivRatioStr[];
337 
338 #define eCM1_CSSC_firstElement eCMI_CSS_CORE_L4
339 #define eCM1_CSSC_lastElement eCMI_CSS_DPLL_CORE
340 #define eCM2_CSSC_firstElement eCMI_CSS_DUCATI_ISS_ROOT
341 #define eCM2_CSSC_lastElement eCMI_CSS_HSI
342 
343 extern const char * pCMI_ClkSelectStr[];
344 
345 extern const char * pCMI_ClkStateStr[];
346 extern const char * pCMI_DivRatioStateStr[];
347 #endif
348 
349 #endif // End of #ifdef _CMI
350 #endif // End of #ifndef __PMI_CMI_OMAP4430_H
Definition: PCMI_Omap4430.h:185
Definition: PCMI_Omap4430.h:198
Definition: PCMI_Omap4430.h:255
Definition: PCMI_Omap4430.h:270
Definition: PCMI_Omap4430.h:220
Definition: PCMI_Omap4430.h:304
eCMI_clkState
Definition: PCMI_Omap4430.h:245
Definition: PCMI_Omap4430.h:256
Definition: PCMI_Omap4430.h:187
Definition: PCMI_Omap4430.h:192
Definition: PCMI_Omap4430.h:219
Definition: PCMI_Omap4430.h:281
Definition: PCMI_Omap4430.h:273
Definition: PCMI_Omap4430.h:237
Definition: PCMI_Omap4430.h:226
Definition: PCMI_Omap4430.h:254
Definition: PCMI_Omap4430.h:215
Definition: PCMI_Omap4430.h:205
Definition: PCMI_Omap4430.h:260
Definition: PCMI_Omap4430.h:186
Definition: PCMI_Omap4430.h:211
Definition: PCMI_Omap4430.h:228
Definition: PCMI_Omap4430.h:261
eCMI_divState
Definition: PCMI_Omap4430.h:269
Definition: PCMI_Omap4430.h:227
Definition: PCMI_Omap4430.h:193
Definition: PCMI_Omap4430.h:191
Definition: PCMI_Omap4430.h:204
Definition: PCMI_Omap4430.h:282
Definition: PCMI_Omap4430.h:216
Definition: PCMI_Omap4430.h:283
eCMI_ClockDomainStateChange
Definition: PCMI_Omap4430.h:184
Definition: PCMI_Omap4430.h:230
Definition: PCMI_Omap4430.h:245
Definition: PCMI_Omap4430.h:212
Definition: PCMI_Omap4430.h:176
Definition: PCMI_Omap4430.h:202
Definition: PCMI_Omap4430.h:271
Definition: PCMI_Omap4430.h:293
Definition: PCMI_Omap4430.h:177
Definition: PCMI_Omap4430.h:208
Definition: PCMI_Omap4430.h:206
Definition: PCMI_Omap4430.h:189
Definition: PCMI_Omap4430.h:259
Definition: PCMI_Omap4430.h:233
Definition: PCMI_Omap4430.h:175
Definition: PCMI_Omap4430.h:302
Definition: PCMI_Omap4430.h:190
Definition: PCMI_Omap4430.h:234
Definition: PCMI_Omap4430.h:303
Definition: PCMI_Omap4430.h:199
Definition: PCMI_Omap4430.h:305
Definition: PCMI_Omap4430.h:217
Definition: PCMI_Omap4430.h:309
Definition: PCMI_Omap4430.h:197
Definition: PCMI_Omap4430.h:310
Definition: PCMI_Omap4430.h:290
eCMI_DPLLSrc
Definition: PCMI_Omap4430.h:300
Definition: PCMI_Omap4430.h:232
Definition: PCMI_Omap4430.h:218
Definition: PCMI_Omap4430.h:207
Definition: PCMI_Omap4430.h:213
Definition: PCMI_Omap4430.h:246
Definition: PCMI_Omap4430.h:229
Definition: PCMI_Omap4430.h:196
Definition: PCMI_Omap4430.h:223
Definition: PCMI_Omap4430.h:221
eCMI_ClockSource
Definition: PCMI_Omap4430.h:280
Definition: PCMI_Omap4430.h:291
Definition: PCMI_Omap4430.h:288
Definition: PCMI_Omap4430.h:188
Definition: PCMI_Omap4430.h:236
Definition: PCMI_Omap4430.h:235
Definition: PCMI_Omap4430.h:292
Definition: PCMI_Omap4430.h:225
Definition: PCMI_Omap4430.h:289
Definition: PCMI_Omap4430.h:272
Definition: PCMI_Omap4430.h:224
Definition: PCMI_Omap4430.h:222
Definition: PCMI_Omap4430.h:203
Definition: PCMI_Omap4430.h:287
Definition: PCMI_Omap4430.h:231
Definition: PCMI_Omap4430.h:178
Definition: PCMI_Omap4430.h:201
Definition: PCMI_Omap4430.h:253
Definition: PCMI_Omap4430.h:209
Definition: PCMI_Omap4430.h:214
Definition: PCMI_Omap4430.h:210
eCMI_DataClasses
Definition: PCMI_Omap4430.h:175
Definition: PCMI_Omap4430.h:308
Definition: PCMI_Omap4430.h:284
Definition: PCMI_Omap4430.h:294
eCMI_ClockDividerRatioChange
Definition: PCMI_Omap4430.h:252
Definition: PCMI_Omap4430.h:200
Definition: PCMI_Omap4430.h:301