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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-omap2/powerdomains2xxx_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/powerdomains2xxx_data.c (Architecture sparc) and /arch/sparc64/mach-omap2/powerdomains2xxx_data.c (Architecture sparc64)


  1 // SPDX-License-Identifier: GPL-2.0-only            1 
  2 /*                                                
  3  * OMAP2XXX powerdomain definitions               
  4  *                                                
  5  * Copyright (C) 2007-2008, 2011 Texas Instrum    
  6  * Copyright (C) 2007-2011 Nokia Corporation      
  7  *                                                
  8  * Paul Walmsley, Jouni Högander                 
  9  */                                               
 10                                                   
 11 #include <linux/kernel.h>                         
 12 #include <linux/init.h>                           
 13                                                   
 14 #include "soc.h"                                  
 15 #include "powerdomain.h"                          
 16 #include "powerdomains2xxx_3xxx_data.h"           
 17                                                   
 18 #include "prcm-common.h"                          
 19 #include "prm2xxx_3xxx.h"                         
 20 #include "prm-regbits-24xx.h"                     
 21                                                   
 22 /* 24XX powerdomains and dependencies */          
 23                                                   
 24 /* Powerdomains */                                
 25                                                   
 26 static struct powerdomain dsp_pwrdm = {           
 27         .name             = "dsp_pwrdm",          
 28         .prcm_offs        = OMAP24XX_DSP_MOD,     
 29         .pwrsts           = PWRSTS_OFF_RET_ON,    
 30         .pwrsts_logic_ret = PWRSTS_RET,           
 31         .banks            = 1,                    
 32         .pwrsts_mem_ret   = {                     
 33                 [0] = PWRSTS_RET,                 
 34         },                                        
 35         .pwrsts_mem_on    = {                     
 36                 [0] = PWRSTS_ON,                  
 37         },                                        
 38         .voltdm           = { .name = "core" }    
 39 };                                                
 40                                                   
 41 static struct powerdomain mpu_24xx_pwrdm = {      
 42         .name             = "mpu_pwrdm",          
 43         .prcm_offs        = MPU_MOD,              
 44         .pwrsts           = PWRSTS_OFF_RET_ON,    
 45         .pwrsts_logic_ret = PWRSTS_OFF_RET,       
 46         .banks            = 1,                    
 47         .pwrsts_mem_ret   = {                     
 48                 [0] = PWRSTS_RET,                 
 49         },                                        
 50         .pwrsts_mem_on    = {                     
 51                 [0] = PWRSTS_ON,                  
 52         },                                        
 53         .voltdm           = { .name = "core" }    
 54 };                                                
 55                                                   
 56 static struct powerdomain core_24xx_pwrdm = {     
 57         .name             = "core_pwrdm",         
 58         .prcm_offs        = CORE_MOD,             
 59         .pwrsts           = PWRSTS_OFF_RET_ON,    
 60         .pwrsts_logic_ret = PWRSTS_RET,           
 61         .banks            = 3,                    
 62         .pwrsts_mem_ret   = {                     
 63                 [0] = PWRSTS_OFF_RET,    /* ME    
 64                 [1] = PWRSTS_OFF_RET,    /* ME    
 65                 [2] = PWRSTS_OFF_RET,    /* ME    
 66         },                                        
 67         .pwrsts_mem_on    = {                     
 68                 [0] = PWRSTS_OFF_RET_ON, /* ME    
 69                 [1] = PWRSTS_OFF_RET_ON, /* ME    
 70                 [2] = PWRSTS_OFF_RET_ON, /* ME    
 71         },                                        
 72         .voltdm           = { .name = "core" }    
 73 };                                                
 74                                                   
 75                                                   
 76 /*                                                
 77  * 2430-specific powerdomains                     
 78  */                                               
 79                                                   
 80 /* XXX 2430 KILLDOMAINWKUP bit?  No current us    
 81                                                   
 82 static struct powerdomain mdm_pwrdm = {           
 83         .name             = "mdm_pwrdm",          
 84         .prcm_offs        = OMAP2430_MDM_MOD,     
 85         .pwrsts           = PWRSTS_OFF_RET_ON,    
 86         .pwrsts_logic_ret = PWRSTS_RET,           
 87         .banks            = 1,                    
 88         .pwrsts_mem_ret   = {                     
 89                 [0] = PWRSTS_RET, /* MEMRETSTA    
 90         },                                        
 91         .pwrsts_mem_on    = {                     
 92                 [0] = PWRSTS_ON,  /* MEMONSTAT    
 93         },                                        
 94         .voltdm           = { .name = "core" }    
 95 };                                                
 96                                                   
 97 /*                                                
 98  *                                                
 99  */                                               
100                                                   
101 static struct powerdomain *powerdomains_omap24    
102         &wkup_omap2_pwrdm,                        
103         &gfx_omap2_pwrdm,                         
104         &dsp_pwrdm,                               
105         &mpu_24xx_pwrdm,                          
106         &core_24xx_pwrdm,                         
107         NULL                                      
108 };                                                
109                                                   
110 static struct powerdomain *powerdomains_omap24    
111         &mdm_pwrdm,                               
112         NULL                                      
113 };                                                
114                                                   
115 void __init omap242x_powerdomains_init(void)      
116 {                                                 
117         if (!cpu_is_omap2420())                   
118                 return;                           
119                                                   
120         pwrdm_register_platform_funcs(&omap2_p    
121         pwrdm_register_pwrdms(powerdomains_oma    
122         pwrdm_complete_init();                    
123 }                                                 
124                                                   
125 void __init omap243x_powerdomains_init(void)      
126 {                                                 
127         if (!cpu_is_omap2430())                   
128                 return;                           
129                                                   
130         pwrdm_register_platform_funcs(&omap2_p    
131         pwrdm_register_pwrdms(powerdomains_oma    
132         pwrdm_register_pwrdms(powerdomains_oma    
133         pwrdm_complete_init();                    
134 }                                                 
135                                                   

~ [ 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