~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-omap2/powerdomains7xx_data.c

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/arm/mach-omap2/powerdomains7xx_data.c (Architecture ppc) and /arch/sparc/mach-omap2/powerdomains7xx_data.c (Architecture sparc)


  1 // SPDX-License-Identifier: GPL-2.0-only            1 
  2 /*                                                
  3  * DRA7xx Power domains framework                 
  4  *                                                
  5  * Copyright (C) 2009-2013 Texas Instruments,     
  6  * Copyright (C) 2009-2011 Nokia Corporation      
  7  *                                                
  8  * Generated by code originally written by:       
  9  * Abhijit Pagare (abhijitpagare@ti.com)          
 10  * Benoit Cousson (b-cousson@ti.com)              
 11  * Paul Walmsley (paul@pwsan.com)                 
 12  *                                                
 13  * This file is automatically generated from t    
 14  * We respectfully ask that any modifications     
 15  * with the public linux-omap@vger.kernel.org     
 16  * authors above to ensure that the autogenera    
 17  * up-to-date with the file contents.             
 18  */                                               
 19                                                   
 20 #include <linux/kernel.h>                         
 21 #include <linux/init.h>                           
 22                                                   
 23 #include "powerdomain.h"                          
 24                                                   
 25 #include "prcm-common.h"                          
 26 #include "prcm44xx.h"                             
 27 #include "prm7xx.h"                               
 28 #include "prcm_mpu7xx.h"                          
 29 #include "soc.h"                                  
 30                                                   
 31 /* iva_7xx_pwrdm: IVA-HD power domain */          
 32 static struct powerdomain iva_7xx_pwrdm = {       
 33         .name             = "iva_pwrdm",          
 34         .prcm_offs        = DRA7XX_PRM_IVA_INS    
 35         .prcm_partition   = DRA7XX_PRM_PARTITI    
 36         .pwrsts           = PWRSTS_OFF_ON,        
 37         .banks            = 4,                    
 38         .pwrsts_mem_on  = {                       
 39                 [0] = PWRSTS_ON,        /* hwa    
 40                 [1] = PWRSTS_ON,        /* sl2    
 41                 [2] = PWRSTS_ON,        /* tcm    
 42                 [3] = PWRSTS_ON,        /* tcm    
 43         },                                        
 44         .flags            = PWRDM_HAS_LOWPOWER    
 45 };                                                
 46                                                   
 47 /* rtc_7xx_pwrdm:  */                             
 48 static struct powerdomain rtc_7xx_pwrdm = {       
 49         .name             = "rtc_pwrdm",          
 50         .prcm_offs        = DRA7XX_PRM_RTC_INS    
 51         .prcm_partition   = DRA7XX_PRM_PARTITI    
 52         .pwrsts           = PWRSTS_ON,            
 53 };                                                
 54                                                   
 55 /* custefuse_7xx_pwrdm: Customer efuse control    
 56 static struct powerdomain custefuse_7xx_pwrdm     
 57         .name             = "custefuse_pwrdm",    
 58         .prcm_offs        = DRA7XX_PRM_CUSTEFU    
 59         .prcm_partition   = DRA7XX_PRM_PARTITI    
 60         .pwrsts           = PWRSTS_OFF_ON,        
 61         .flags            = PWRDM_HAS_LOWPOWER    
 62 };                                                
 63                                                   
 64 /* custefuse_aon_7xx_pwrdm: Customer efuse con    
 65 static struct powerdomain custefuse_aon_7xx_pw    
 66         .name             = "custefuse_pwrdm",    
 67         .prcm_offs        = DRA7XX_PRM_CUSTEFU    
 68         .prcm_partition   = DRA7XX_PRM_PARTITI    
 69         .pwrsts           = PWRSTS_ON,            
 70 };                                                
 71                                                   
 72 /* ipu_7xx_pwrdm: Audio back end power domain     
 73 static struct powerdomain ipu_7xx_pwrdm = {       
 74         .name             = "ipu_pwrdm",          
 75         .prcm_offs        = DRA7XX_PRM_IPU_INS    
 76         .prcm_partition   = DRA7XX_PRM_PARTITI    
 77         .pwrsts           = PWRSTS_OFF_ON,        
 78         .banks            = 2,                    
 79         .pwrsts_mem_on  = {                       
 80                 [0] = PWRSTS_ON,        /* aes    
 81                 [1] = PWRSTS_ON,        /* per    
 82         },                                        
 83         .flags            = PWRDM_HAS_LOWPOWER    
 84 };                                                
 85                                                   
 86 /* dss_7xx_pwrdm: Display subsystem power doma    
 87 static struct powerdomain dss_7xx_pwrdm = {       
 88         .name             = "dss_pwrdm",          
 89         .prcm_offs        = DRA7XX_PRM_DSS_INS    
 90         .prcm_partition   = DRA7XX_PRM_PARTITI    
 91         .pwrsts           = PWRSTS_OFF_ON,        
 92         .banks            = 1,                    
 93         .pwrsts_mem_on  = {                       
 94                 [0] = PWRSTS_ON,        /* dss    
 95         },                                        
 96         .flags            = PWRDM_HAS_LOWPOWER    
 97 };                                                
 98                                                   
 99 /* l4per_7xx_pwrdm: Target peripherals power d    
100 static struct powerdomain l4per_7xx_pwrdm = {     
101         .name             = "l4per_pwrdm",        
102         .prcm_offs        = DRA7XX_PRM_L4PER_I    
103         .prcm_partition   = DRA7XX_PRM_PARTITI    
104         .pwrsts           = PWRSTS_ON,            
105         .banks            = 2,                    
106         .pwrsts_mem_on  = {                       
107                 [0] = PWRSTS_ON,        /* non    
108                 [1] = PWRSTS_ON,        /* ret    
109         },                                        
110         .flags            = PWRDM_HAS_LOWPOWER    
111 };                                                
112                                                   
113 /* gpu_7xx_pwrdm: 3D accelerator power domain     
114 static struct powerdomain gpu_7xx_pwrdm = {       
115         .name             = "gpu_pwrdm",          
116         .prcm_offs        = DRA7XX_PRM_GPU_INS    
117         .prcm_partition   = DRA7XX_PRM_PARTITI    
118         .pwrsts           = PWRSTS_OFF_ON,        
119         .banks            = 1,                    
120         .pwrsts_mem_on  = {                       
121                 [0] = PWRSTS_ON,        /* gpu    
122         },                                        
123         .flags            = PWRDM_HAS_LOWPOWER    
124 };                                                
125                                                   
126 /* wkupaon_7xx_pwrdm: Wake-up power domain */     
127 static struct powerdomain wkupaon_7xx_pwrdm =     
128         .name             = "wkupaon_pwrdm",      
129         .prcm_offs        = DRA7XX_PRM_WKUPAON    
130         .prcm_partition   = DRA7XX_PRM_PARTITI    
131         .pwrsts           = PWRSTS_ON,            
132         .banks            = 1,                    
133         .pwrsts_mem_on  = {                       
134                 [0] = PWRSTS_ON,        /* wku    
135         },                                        
136 };                                                
137                                                   
138 /* core_7xx_pwrdm: CORE power domain */           
139 static struct powerdomain core_7xx_pwrdm = {      
140         .name             = "core_pwrdm",         
141         .prcm_offs        = DRA7XX_PRM_CORE_IN    
142         .prcm_partition   = DRA7XX_PRM_PARTITI    
143         .pwrsts           = PWRSTS_ON,            
144         .banks            = 5,                    
145         .pwrsts_mem_on  = {                       
146                 [0] = PWRSTS_ON,        /* cor    
147                 [1] = PWRSTS_ON,        /* cor    
148                 [2] = PWRSTS_ON,        /* cor    
149                 [3] = PWRSTS_ON,        /* ipu    
150                 [4] = PWRSTS_ON,        /* ipu    
151         },                                        
152         .flags            = PWRDM_HAS_LOWPOWER    
153 };                                                
154                                                   
155 /* coreaon_7xx_pwrdm: Always ON logic that sit    
156 static struct powerdomain coreaon_7xx_pwrdm =     
157         .name             = "coreaon_pwrdm",      
158         .prcm_offs        = DRA7XX_PRM_COREAON    
159         .prcm_partition   = DRA7XX_PRM_PARTITI    
160         .pwrsts           = PWRSTS_ON,            
161 };                                                
162                                                   
163 /* cpu0_7xx_pwrdm: MPU0 processor and Neon cop    
164 static struct powerdomain cpu0_7xx_pwrdm = {      
165         .name             = "cpu0_pwrdm",         
166         .prcm_offs        = DRA7XX_MPU_PRCM_PR    
167         .prcm_partition   = DRA7XX_MPU_PRCM_PA    
168         .pwrsts           = PWRSTS_RET_ON,        
169         .pwrsts_logic_ret = PWRSTS_RET,           
170         .banks            = 1,                    
171         .pwrsts_mem_ret = {                       
172                 [0] = PWRSTS_OFF_RET,   /* cpu    
173         },                                        
174         .pwrsts_mem_on  = {                       
175                 [0] = PWRSTS_ON,        /* cpu    
176         },                                        
177 };                                                
178                                                   
179 /* cpu1_7xx_pwrdm: MPU1 processor and Neon cop    
180 static struct powerdomain cpu1_7xx_pwrdm = {      
181         .name             = "cpu1_pwrdm",         
182         .prcm_offs        = DRA7XX_MPU_PRCM_PR    
183         .prcm_partition   = DRA7XX_MPU_PRCM_PA    
184         .pwrsts           = PWRSTS_RET_ON,        
185         .pwrsts_logic_ret = PWRSTS_RET,           
186         .banks            = 1,                    
187         .pwrsts_mem_ret = {                       
188                 [0] = PWRSTS_OFF_RET,   /* cpu    
189         },                                        
190         .pwrsts_mem_on  = {                       
191                 [0] = PWRSTS_ON,        /* cpu    
192         },                                        
193 };                                                
194                                                   
195 /* vpe_7xx_pwrdm:  */                             
196 static struct powerdomain vpe_7xx_pwrdm = {       
197         .name             = "vpe_pwrdm",          
198         .prcm_offs        = DRA7XX_PRM_VPE_INS    
199         .prcm_partition   = DRA7XX_PRM_PARTITI    
200         .pwrsts           = PWRSTS_OFF_ON,        
201         .banks            = 1,                    
202         .pwrsts_mem_on  = {                       
203                 [0] = PWRSTS_ON,        /* vpe    
204         },                                        
205         .flags            = PWRDM_HAS_LOWPOWER    
206 };                                                
207                                                   
208 /* mpu_7xx_pwrdm: Modena processor and the Neo    
209 static struct powerdomain mpu_7xx_pwrdm = {       
210         .name             = "mpu_pwrdm",          
211         .prcm_offs        = DRA7XX_PRM_MPU_INS    
212         .prcm_partition   = DRA7XX_PRM_PARTITI    
213         .pwrsts           = PWRSTS_RET_ON,        
214         .pwrsts_logic_ret = PWRSTS_RET,           
215         .banks            = 2,                    
216         .pwrsts_mem_ret = {                       
217                 [0] = PWRSTS_OFF_RET,   /* mpu    
218                 [1] = PWRSTS_RET,       /* mpu    
219         },                                        
220         .pwrsts_mem_on  = {                       
221                 [0] = PWRSTS_ON,        /* mpu    
222                 [1] = PWRSTS_ON,        /* mpu    
223         },                                        
224 };                                                
225                                                   
226 /* l3init_7xx_pwrdm: L3 initators pheripherals    
227 static struct powerdomain l3init_7xx_pwrdm = {    
228         .name             = "l3init_pwrdm",       
229         .prcm_offs        = DRA7XX_PRM_L3INIT_    
230         .prcm_partition   = DRA7XX_PRM_PARTITI    
231         .pwrsts           = PWRSTS_ON,            
232         .banks            = 3,                    
233         .pwrsts_mem_on  = {                       
234                 [0] = PWRSTS_ON,        /* gma    
235                 [1] = PWRSTS_ON,        /* l3i    
236                 [2] = PWRSTS_ON,        /* l3i    
237         },                                        
238         .flags            = PWRDM_HAS_LOWPOWER    
239 };                                                
240                                                   
241 /* eve3_7xx_pwrdm:  */                            
242 static struct powerdomain eve3_7xx_pwrdm = {      
243         .name             = "eve3_pwrdm",         
244         .prcm_offs        = DRA7XX_PRM_EVE3_IN    
245         .prcm_partition   = DRA7XX_PRM_PARTITI    
246         .pwrsts           = PWRSTS_OFF_ON,        
247         .banks            = 1,                    
248         .pwrsts_mem_on  = {                       
249                 [0] = PWRSTS_ON,        /* eve    
250         },                                        
251         .flags            = PWRDM_HAS_LOWPOWER    
252 };                                                
253                                                   
254 /* emu_7xx_pwrdm: Emulation power domain */       
255 static struct powerdomain emu_7xx_pwrdm = {       
256         .name             = "emu_pwrdm",          
257         .prcm_offs        = DRA7XX_PRM_EMU_INS    
258         .prcm_partition   = DRA7XX_PRM_PARTITI    
259         .pwrsts           = PWRSTS_OFF_ON,        
260         .banks            = 1,                    
261         .pwrsts_mem_on  = {                       
262                 [0] = PWRSTS_ON,        /* emu    
263         },                                        
264 };                                                
265                                                   
266 /* dsp2_7xx_pwrdm:  */                            
267 static struct powerdomain dsp2_7xx_pwrdm = {      
268         .name             = "dsp2_pwrdm",         
269         .prcm_offs        = DRA7XX_PRM_DSP2_IN    
270         .prcm_partition   = DRA7XX_PRM_PARTITI    
271         .pwrsts           = PWRSTS_OFF_ON,        
272         .banks            = 3,                    
273         .pwrsts_mem_on  = {                       
274                 [0] = PWRSTS_ON,        /* dsp    
275                 [1] = PWRSTS_ON,        /* dsp    
276                 [2] = PWRSTS_ON,        /* dsp    
277         },                                        
278         .flags            = PWRDM_HAS_LOWPOWER    
279 };                                                
280                                                   
281 /* dsp1_7xx_pwrdm: Tesla processor power domai    
282 static struct powerdomain dsp1_7xx_pwrdm = {      
283         .name             = "dsp1_pwrdm",         
284         .prcm_offs        = DRA7XX_PRM_DSP1_IN    
285         .prcm_partition   = DRA7XX_PRM_PARTITI    
286         .pwrsts           = PWRSTS_OFF_ON,        
287         .banks            = 3,                    
288         .pwrsts_mem_on  = {                       
289                 [0] = PWRSTS_ON,        /* dsp    
290                 [1] = PWRSTS_ON,        /* dsp    
291                 [2] = PWRSTS_ON,        /* dsp    
292         },                                        
293         .flags            = PWRDM_HAS_LOWPOWER    
294 };                                                
295                                                   
296 /* cam_7xx_pwrdm: Camera subsystem power domai    
297 static struct powerdomain cam_7xx_pwrdm = {       
298         .name             = "cam_pwrdm",          
299         .prcm_offs        = DRA7XX_PRM_CAM_INS    
300         .prcm_partition   = DRA7XX_PRM_PARTITI    
301         .pwrsts           = PWRSTS_OFF_ON,        
302         .banks            = 1,                    
303         .pwrsts_mem_on  = {                       
304                 [0] = PWRSTS_ON,        /* vip    
305         },                                        
306         .flags            = PWRDM_HAS_LOWPOWER    
307 };                                                
308                                                   
309 /* eve4_7xx_pwrdm:  */                            
310 static struct powerdomain eve4_7xx_pwrdm = {      
311         .name             = "eve4_pwrdm",         
312         .prcm_offs        = DRA7XX_PRM_EVE4_IN    
313         .prcm_partition   = DRA7XX_PRM_PARTITI    
314         .pwrsts           = PWRSTS_OFF_ON,        
315         .banks            = 1,                    
316         .pwrsts_mem_on  = {                       
317                 [0] = PWRSTS_ON,        /* eve    
318         },                                        
319         .flags            = PWRDM_HAS_LOWPOWER    
320 };                                                
321                                                   
322 /* eve2_7xx_pwrdm:  */                            
323 static struct powerdomain eve2_7xx_pwrdm = {      
324         .name             = "eve2_pwrdm",         
325         .prcm_offs        = DRA7XX_PRM_EVE2_IN    
326         .prcm_partition   = DRA7XX_PRM_PARTITI    
327         .pwrsts           = PWRSTS_OFF_ON,        
328         .banks            = 1,                    
329         .pwrsts_mem_on  = {                       
330                 [0] = PWRSTS_ON,        /* eve    
331         },                                        
332         .flags            = PWRDM_HAS_LOWPOWER    
333 };                                                
334                                                   
335 /* eve1_7xx_pwrdm:  */                            
336 static struct powerdomain eve1_7xx_pwrdm = {      
337         .name             = "eve1_pwrdm",         
338         .prcm_offs        = DRA7XX_PRM_EVE1_IN    
339         .prcm_partition   = DRA7XX_PRM_PARTITI    
340         .pwrsts           = PWRSTS_OFF_ON,        
341         .banks            = 1,                    
342         .pwrsts_mem_on  = {                       
343                 [0] = PWRSTS_ON,        /* eve    
344         },                                        
345         .flags            = PWRDM_HAS_LOWPOWER    
346 };                                                
347                                                   
348 /*                                                
349  * The following power domains are not under S    
350  *                                                
351  * mpuaon                                         
352  * mmaon                                          
353  */                                               
354                                                   
355 /* As powerdomains are added or removed above,    
356 static struct powerdomain *powerdomains_dra7xx    
357         &iva_7xx_pwrdm,                           
358         &rtc_7xx_pwrdm,                           
359         &ipu_7xx_pwrdm,                           
360         &dss_7xx_pwrdm,                           
361         &l4per_7xx_pwrdm,                         
362         &gpu_7xx_pwrdm,                           
363         &wkupaon_7xx_pwrdm,                       
364         &core_7xx_pwrdm,                          
365         &coreaon_7xx_pwrdm,                       
366         &cpu0_7xx_pwrdm,                          
367         &cpu1_7xx_pwrdm,                          
368         &vpe_7xx_pwrdm,                           
369         &mpu_7xx_pwrdm,                           
370         &l3init_7xx_pwrdm,                        
371         &eve3_7xx_pwrdm,                          
372         &emu_7xx_pwrdm,                           
373         &dsp2_7xx_pwrdm,                          
374         &dsp1_7xx_pwrdm,                          
375         &cam_7xx_pwrdm,                           
376         &eve4_7xx_pwrdm,                          
377         &eve2_7xx_pwrdm,                          
378         &eve1_7xx_pwrdm,                          
379         NULL                                      
380 };                                                
381                                                   
382 static struct powerdomain *powerdomains_dra76x    
383         &custefuse_aon_7xx_pwrdm,                 
384         NULL                                      
385 };                                                
386                                                   
387 static struct powerdomain *powerdomains_dra74x    
388         &custefuse_7xx_pwrdm,                     
389         NULL                                      
390 };                                                
391                                                   
392 static struct powerdomain *powerdomains_dra72x    
393         &custefuse_aon_7xx_pwrdm,                 
394         NULL                                      
395 };                                                
396                                                   
397 void __init dra7xx_powerdomains_init(void)        
398 {                                                 
399         pwrdm_register_platform_funcs(&omap4_p    
400         pwrdm_register_pwrdms(powerdomains_dra    
401                                                   
402         if (soc_is_dra76x())                      
403                 pwrdm_register_pwrdms(powerdom    
404         else if (soc_is_dra74x())                 
405                 pwrdm_register_pwrdms(powerdom    
406         else if (soc_is_dra72x())                 
407                 pwrdm_register_pwrdms(powerdom    
408                                                   
409         pwrdm_complete_init();                    
410 }                                                 
411                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php