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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-omap2/powerdomain-common.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/powerdomain-common.c (Architecture alpha) and /arch/ppc/mach-omap2/powerdomain-common.c (Architecture ppc)


  1 // SPDX-License-Identifier: GPL-2.0-only            1 
  2 /*                                                
  3  * Common powerdomain framework functions         
  4  *                                                
  5  * Copyright (C) 2010-2011 Texas Instruments,     
  6  * Copyright (C) 2010 Nokia Corporation           
  7  *                                                
  8  * Derived from mach-omap2/powerdomain.c writt    
  9  */                                               
 10                                                   
 11 #include <linux/errno.h>                          
 12 #include <linux/kernel.h>                         
 13 #include <linux/bug.h>                            
 14 #include "pm.h"                                   
 15 #include "cm.h"                                   
 16 #include "cm-regbits-34xx.h"                      
 17 #include "prm-regbits-34xx.h"                     
 18 #include "prm-regbits-44xx.h"                     
 19                                                   
 20 /*                                                
 21  * OMAP3 and OMAP4 specific register bit initi    
 22  * Notice that the names here are not accordin    
 23  * domain but the bit mapping used applies to     
 24  */                                               
 25 /* OMAP3 and OMAP4 Memory Onstate Masks (commo    
 26 #define OMAP_MEM0_ONSTATE_MASK OMAP3430_SHARED    
 27 #define OMAP_MEM1_ONSTATE_MASK OMAP3430_L1FLAT    
 28 #define OMAP_MEM2_ONSTATE_MASK OMAP3430_SHARED    
 29 #define OMAP_MEM3_ONSTATE_MASK OMAP3430_L2FLAT    
 30 #define OMAP_MEM4_ONSTATE_MASK OMAP4430_OCP_NR    
 31                                                   
 32 /* OMAP3 and OMAP4 Memory Retstate Masks (comm    
 33 #define OMAP_MEM0_RETSTATE_MASK OMAP3430_SHARE    
 34 #define OMAP_MEM1_RETSTATE_MASK OMAP3430_L1FLA    
 35 #define OMAP_MEM2_RETSTATE_MASK OMAP3430_SHARE    
 36 #define OMAP_MEM3_RETSTATE_MASK OMAP3430_L2FLA    
 37 #define OMAP_MEM4_RETSTATE_MASK OMAP4430_OCP_N    
 38                                                   
 39 /* OMAP3 and OMAP4 Memory Status bits */          
 40 #define OMAP_MEM0_STATEST_MASK OMAP3430_SHARED    
 41 #define OMAP_MEM1_STATEST_MASK OMAP3430_L1FLAT    
 42 #define OMAP_MEM2_STATEST_MASK OMAP3430_SHARED    
 43 #define OMAP_MEM3_STATEST_MASK OMAP3430_L2FLAT    
 44 #define OMAP_MEM4_STATEST_MASK OMAP4430_OCP_NR    
 45                                                   
 46 /* Common Internal functions used across OMAP     
 47 u32 omap2_pwrdm_get_mem_bank_onstate_mask(u8 b    
 48 {                                                 
 49         switch (bank) {                           
 50         case 0:                                   
 51                 return OMAP_MEM0_ONSTATE_MASK;    
 52         case 1:                                   
 53                 return OMAP_MEM1_ONSTATE_MASK;    
 54         case 2:                                   
 55                 return OMAP_MEM2_ONSTATE_MASK;    
 56         case 3:                                   
 57                 return OMAP_MEM3_ONSTATE_MASK;    
 58         case 4:                                   
 59                 return OMAP_MEM4_ONSTATE_MASK;    
 60         default:                                  
 61                 WARN_ON(1); /* should never ha    
 62                 return -EEXIST;                   
 63         }                                         
 64         return 0;                                 
 65 }                                                 
 66                                                   
 67 u32 omap2_pwrdm_get_mem_bank_retst_mask(u8 ban    
 68 {                                                 
 69         switch (bank) {                           
 70         case 0:                                   
 71                 return OMAP_MEM0_RETSTATE_MASK    
 72         case 1:                                   
 73                 return OMAP_MEM1_RETSTATE_MASK    
 74         case 2:                                   
 75                 return OMAP_MEM2_RETSTATE_MASK    
 76         case 3:                                   
 77                 return OMAP_MEM3_RETSTATE_MASK    
 78         case 4:                                   
 79                 return OMAP_MEM4_RETSTATE_MASK    
 80         default:                                  
 81                 WARN_ON(1); /* should never ha    
 82                 return -EEXIST;                   
 83         }                                         
 84         return 0;                                 
 85 }                                                 
 86                                                   
 87 u32 omap2_pwrdm_get_mem_bank_stst_mask(u8 bank    
 88 {                                                 
 89         switch (bank) {                           
 90         case 0:                                   
 91                 return OMAP_MEM0_STATEST_MASK;    
 92         case 1:                                   
 93                 return OMAP_MEM1_STATEST_MASK;    
 94         case 2:                                   
 95                 return OMAP_MEM2_STATEST_MASK;    
 96         case 3:                                   
 97                 return OMAP_MEM3_STATEST_MASK;    
 98         case 4:                                   
 99                 return OMAP_MEM4_STATEST_MASK;    
100         default:                                  
101                 WARN_ON(1); /* should never ha    
102                 return -EEXIST;                   
103         }                                         
104         return 0;                                 
105 }                                                 
106                                                   
107                                                   

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