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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-omap2/clockdomains2430_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/clockdomains2430_data.c (Version linux-6.12-rc7) and /arch/i386/mach-omap2/clockdomains2430_data.c (Version linux-4.13.16)


  1 // SPDX-License-Identifier: GPL-2.0                 1 
  2 /*                                                
  3  * OMAP2xxx clockdomains                          
  4  *                                                
  5  * Copyright (C) 2008-2009 Texas Instruments,     
  6  * Copyright (C) 2008-2010 Nokia Corporation      
  7  *                                                
  8  * Paul Walmsley, Jouni Högander                 
  9  *                                                
 10  * This file contains clockdomains and clockdo    
 11  * for OMAP2xxx chips.  Some notes:               
 12  *                                                
 13  * A useful validation rule for struct clockdo    
 14  * referenced by a wkdep_srcs must have a dep_    
 15  * wkdep_srcs are really just software-control    
 16  * Non-software-controllable dependencies do e    
 17  * encoded below (yet).                           
 18  *                                                
 19  * 24xx does not support programmable sleep de    
 20  *                                                
 21  * The overly-specific dep_bit names are due t    
 22  * with CM_FCLKEN_{DSP,IVA2}.  The DSP/IVA2 PM    
 23  * value are the same for all powerdomains: 2     
 24  *                                                
 25  * XXX should dep_bit be a mask, so we can tes    
 26  * sanity check?                                  
 27  * XXX encode hardware fixed wakeup dependenci    
 28  */                                               
 29                                                   
 30 /*                                                
 31  * To-Do List                                     
 32  * -> Port the Sleep/Wakeup dependencies for t    
 33  *    from the Power domain framework             
 34  */                                               
 35                                                   
 36 #include <linux/kernel.h>                         
 37 #include <linux/io.h>                             
 38                                                   
 39 #include "soc.h"                                  
 40 #include "clockdomain.h"                          
 41 #include "prm2xxx_3xxx.h"                         
 42 #include "cm2xxx_3xxx.h"                          
 43 #include "cm-regbits-24xx.h"                      
 44 #include "prm-regbits-24xx.h"                     
 45                                                   
 46 /*                                                
 47  * Clockdomain dependencies for wkdeps            
 48  *                                                
 49  * XXX Hardware dependencies (e.g., dependenci    
 50  * changed in software) are not included here     
 51  */                                               
 52                                                   
 53 /* Wakeup dependency source arrays */             
 54                                                   
 55 /* 2430-specific possible wakeup dependencies     
 56                                                   
 57 /* 2430 PM_WKDEP_CORE: DSP, GFX, MPU, WKUP, MD    
 58 static struct clkdm_dep core_2430_wkdeps[] = {    
 59         { .clkdm_name = "dsp_clkdm" },            
 60         { .clkdm_name = "gfx_clkdm" },            
 61         { .clkdm_name = "mpu_clkdm" },            
 62         { .clkdm_name = "wkup_clkdm" },           
 63         { .clkdm_name = "mdm_clkdm" },            
 64         { NULL },                                 
 65 };                                                
 66                                                   
 67 /* 2430 PM_WKDEP_MPU: CORE, DSP, WKUP, MDM */     
 68 static struct clkdm_dep mpu_2430_wkdeps[] = {     
 69         { .clkdm_name = "core_l3_clkdm" },        
 70         { .clkdm_name = "core_l4_clkdm" },        
 71         { .clkdm_name = "dsp_clkdm" },            
 72         { .clkdm_name = "wkup_clkdm" },           
 73         { .clkdm_name = "mdm_clkdm" },            
 74         { NULL },                                 
 75 };                                                
 76                                                   
 77 /* 2430 PM_WKDEP_MDM: CORE, MPU, WKUP */          
 78 static struct clkdm_dep mdm_2430_wkdeps[] = {     
 79         { .clkdm_name = "core_l3_clkdm" },        
 80         { .clkdm_name = "core_l4_clkdm" },        
 81         { .clkdm_name = "mpu_clkdm" },            
 82         { .clkdm_name = "wkup_clkdm" },           
 83         { NULL },                                 
 84 };                                                
 85                                                   
 86 /*                                                
 87  * 2430-only clockdomains                         
 88  */                                               
 89                                                   
 90 static struct clockdomain mpu_2430_clkdm = {      
 91         .name           = "mpu_clkdm",            
 92         .pwrdm          = { .name = "mpu_pwrdm    
 93         .flags          = CLKDM_CAN_HWSUP_SWSU    
 94         .wkdep_srcs     = mpu_2430_wkdeps,        
 95         .clktrctrl_mask = OMAP24XX_AUTOSTATE_M    
 96 };                                                
 97                                                   
 98 /* Another case of bit name collisions between    
 99 static struct clockdomain mdm_clkdm = {           
100         .name           = "mdm_clkdm",            
101         .pwrdm          = { .name = "mdm_pwrdm    
102         .flags          = CLKDM_CAN_HWSUP_SWSU    
103         .dep_bit        = OMAP2430_PM_WKDEP_MP    
104         .wkdep_srcs     = mdm_2430_wkdeps,        
105         .clktrctrl_mask = OMAP2430_AUTOSTATE_M    
106 };                                                
107                                                   
108 static struct clockdomain dsp_2430_clkdm = {      
109         .name           = "dsp_clkdm",            
110         .pwrdm          = { .name = "dsp_pwrdm    
111         .flags          = CLKDM_CAN_HWSUP_SWSU    
112         .dep_bit        = OMAP24XX_PM_WKDEP_MP    
113         .wkdep_srcs     = dsp_24xx_wkdeps,        
114         .clktrctrl_mask = OMAP24XX_AUTOSTATE_D    
115 };                                                
116                                                   
117 static struct clockdomain gfx_2430_clkdm = {      
118         .name           = "gfx_clkdm",            
119         .pwrdm          = { .name = "gfx_pwrdm    
120         .flags          = CLKDM_CAN_HWSUP_SWSU    
121         .wkdep_srcs     = gfx_24xx_wkdeps,        
122         .clktrctrl_mask = OMAP24XX_AUTOSTATE_G    
123 };                                                
124                                                   
125 /*                                                
126  * XXX add usecounting for clkdm dependencies,    
127  * of a single dep bit for core_l3_24xx_clkdm     
128  * could cause trouble                            
129  */                                               
130 static struct clockdomain core_l3_2430_clkdm =    
131         .name           = "core_l3_clkdm",        
132         .pwrdm          = { .name = "core_pwrd    
133         .flags          = CLKDM_CAN_HWSUP,        
134         .dep_bit        = OMAP24XX_EN_CORE_SHI    
135         .wkdep_srcs     = core_2430_wkdeps,       
136         .clktrctrl_mask = OMAP24XX_AUTOSTATE_L    
137 };                                                
138                                                   
139 /*                                                
140  * XXX add usecounting for clkdm dependencies,    
141  * of a single dep bit for core_l3_24xx_clkdm     
142  * could cause trouble                            
143  */                                               
144 static struct clockdomain core_l4_2430_clkdm =    
145         .name           = "core_l4_clkdm",        
146         .pwrdm          = { .name = "core_pwrd    
147         .flags          = CLKDM_CAN_HWSUP,        
148         .dep_bit        = OMAP24XX_EN_CORE_SHI    
149         .wkdep_srcs     = core_2430_wkdeps,       
150         .clktrctrl_mask = OMAP24XX_AUTOSTATE_L    
151 };                                                
152                                                   
153 static struct clockdomain dss_2430_clkdm = {      
154         .name           = "dss_clkdm",            
155         .pwrdm          = { .name = "core_pwrd    
156         .flags          = CLKDM_CAN_HWSUP,        
157         .clktrctrl_mask = OMAP24XX_AUTOSTATE_D    
158 };                                                
159                                                   
160 static struct clockdomain *clockdomains_omap24    
161         &wkup_common_clkdm,                       
162         &mpu_2430_clkdm,                          
163         &mdm_clkdm,                               
164         &dsp_2430_clkdm,                          
165         &gfx_2430_clkdm,                          
166         &core_l3_2430_clkdm,                      
167         &core_l4_2430_clkdm,                      
168         &dss_2430_clkdm,                          
169         NULL,                                     
170 };                                                
171                                                   
172 void __init omap243x_clockdomains_init(void)      
173 {                                                 
174         if (!cpu_is_omap243x())                   
175                 return;                           
176                                                   
177         clkdm_register_platform_funcs(&omap2_c    
178         clkdm_register_clkdms(clockdomains_oma    
179         clkdm_complete_init();                    
180 }                                                 
181                                                   
182                                                   

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