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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-omap2/prm.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/arm/mach-omap2/prm.h (Architecture sparc64) and /arch/ppc/mach-omap2/prm.h (Architecture ppc)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 
  2 /*                                                
  3  * OMAP2/3/4 Power/Reset Management (PRM) bitf    
  4  *                                                
  5  * Copyright (C) 2007-2009, 2012 Texas Instrum    
  6  * Copyright (C) 2010 Nokia Corporation           
  7  *                                                
  8  * Paul Walmsley                                  
  9  */                                               
 10 #ifndef __ARCH_ARM_MACH_OMAP2_PRM_H               
 11 #define __ARCH_ARM_MACH_OMAP2_PRM_H               
 12                                                   
 13 #include "prcm-common.h"                          
 14                                                   
 15 # ifndef __ASSEMBLER__                            
 16 extern struct omap_domain_base prm_base;          
 17 extern u16 prm_features;                          
 18 extern enum reboot_mode prm_reboot_mode;          
 19 int omap_prcm_init(void);                         
 20 int omap2_prcm_base_init(void);                   
 21 # endif                                           
 22                                                   
 23 /*                                                
 24  * prm_features flag values                       
 25  *                                                
 26  * PRM_HAS_IO_WAKEUP: has IO wakeup capability    
 27  * PRM_HAS_VOLTAGE: has voltage domains           
 28  */                                               
 29 #define PRM_HAS_IO_WAKEUP       BIT(0)            
 30 #define PRM_HAS_VOLTAGE         BIT(1)            
 31                                                   
 32 /*                                                
 33  * MAX_MODULE_SOFTRESET_WAIT: Maximum microsec    
 34  * module to softreset                            
 35  */                                               
 36 #define MAX_MODULE_SOFTRESET_WAIT                 
 37                                                   
 38 /*                                                
 39  * MAX_MODULE_HARDRESET_WAIT: Maximum microsec    
 40  * submodule to exit hardreset                    
 41  */                                               
 42 #define MAX_MODULE_HARDRESET_WAIT                 
 43                                                   
 44 /*                                                
 45  * Register bitfields                             
 46  */                                               
 47                                                   
 48 /*                                                
 49  * 24XX: PM_PWSTST_CORE, PM_PWSTST_GFX, PM_PWS    
 50  *                                                
 51  * 2430: PM_PWSTST_MDM                            
 52  *                                                
 53  * 3430: PM_PWSTST_IVA2, PM_PWSTST_MPU, PM_PWS    
 54  *       PM_PWSTST_DSS, PM_PWSTST_CAM, PM_PWST    
 55  *       PM_PWSTST_NEON                           
 56  */                                               
 57 #define OMAP_INTRANSITION_MASK                    
 58                                                   
 59                                                   
 60 /*                                                
 61  * 24XX: PM_PWSTST_GFX, PM_PWSTST_DSP             
 62  *                                                
 63  * 2430: PM_PWSTST_MDM                            
 64  *                                                
 65  * 3430: PM_PWSTST_IVA2, PM_PWSTST_MPU, PM_PWS    
 66  *       PM_PWSTST_DSS, PM_PWSTST_CAM, PM_PWST    
 67  *       PM_PWSTST_NEON                           
 68  */                                               
 69 #define OMAP_POWERSTATEST_SHIFT                   
 70 #define OMAP_POWERSTATEST_MASK                    
 71                                                   
 72 /*                                                
 73  * 24XX: PM_PWSTCTRL_MPU, PM_PWSTCTRL_CORE, PM    
 74  *       PM_PWSTCTRL_DSP, PM_PWSTST_MPU           
 75  *                                                
 76  * 2430: PM_PWSTCTRL_MDM shared bits              
 77  *                                                
 78  * 3430: PM_PWSTCTRL_IVA2, PM_PWSTCTRL_MPU, PM    
 79  *       PM_PWSTCTRL_GFX, PM_PWSTCTRL_DSS, PM_    
 80  *       PM_PWSTCTRL_NEON shared bits             
 81  */                                               
 82 #define OMAP_POWERSTATE_SHIFT                     
 83 #define OMAP_POWERSTATE_MASK                      
 84                                                   
 85 /*                                                
 86  * Standardized OMAP reset source bits            
 87  *                                                
 88  * To the extent these happen to match the har    
 89  * shifts, it's purely coincidental.  Used by     
 90  * OMAP_UNKNOWN_RST_SRC_ID_SHIFT is a special     
 91  * there are any bits remaining in the global     
 92  * haven't been identified, or when the PRM co    
 93  * doesn't know how to interpret the register.    
 94  */                                               
 95 #define OMAP_GLOBAL_COLD_RST_SRC_ID_SHIFT         
 96 #define OMAP_GLOBAL_WARM_RST_SRC_ID_SHIFT         
 97 #define OMAP_SECU_VIOL_RST_SRC_ID_SHIFT           
 98 #define OMAP_MPU_WD_RST_SRC_ID_SHIFT              
 99 #define OMAP_SECU_WD_RST_SRC_ID_SHIFT             
100 #define OMAP_EXTWARM_RST_SRC_ID_SHIFT             
101 #define OMAP_VDD_MPU_VM_RST_SRC_ID_SHIFT          
102 #define OMAP_VDD_IVA_VM_RST_SRC_ID_SHIFT          
103 #define OMAP_VDD_CORE_VM_RST_SRC_ID_SHIFT         
104 #define OMAP_ICEPICK_RST_SRC_ID_SHIFT             
105 #define OMAP_ICECRUSHER_RST_SRC_ID_SHIFT          
106 #define OMAP_C2C_RST_SRC_ID_SHIFT                 
107 #define OMAP_UNKNOWN_RST_SRC_ID_SHIFT             
108                                                   
109 #ifndef __ASSEMBLER__                             
110                                                   
111 /**                                               
112  * struct prm_reset_src_map - map register bit    
113  * @reg_shift: bitshift in the PRM reset sourc    
114  * @std_shift: bitshift equivalent in the stan    
115  *                                                
116  * The fields are signed because -1 is used as    
117  */                                               
118 struct prm_reset_src_map {                        
119         s8 reg_shift;                             
120         s8 std_shift;                             
121 };                                                
122                                                   
123 /**                                               
124  * struct prm_ll_data - fn ptrs to per-SoC PRM    
125  * @read_reset_sources: ptr to the SoC PRM-spe    
126  * @was_any_context_lost_old: ptr to the SoC P    
127  * @clear_context_loss_flags_old: ptr to the S    
128  * @late_init: ptr to the late init function      
129  * @assert_hardreset: ptr to the SoC PRM hardr    
130  * @deassert_hardreset: ptr to the SoC PRM har    
131  *                                                
132  * XXX @was_any_context_lost_old and @clear_co    
133  * deprecated.                                    
134  */                                               
135 struct prm_ll_data {                              
136         u32 (*read_reset_sources)(void);          
137         bool (*was_any_context_lost_old)(u8 pa    
138         void (*clear_context_loss_flags_old)(u    
139         int (*late_init)(void);                   
140         int (*assert_hardreset)(u8 shift, u8 p    
141         int (*deassert_hardreset)(u8 shift, u8    
142                                   u16 offset,     
143         int (*is_hardreset_asserted)(u8 shift,    
144                                      u16 offse    
145         void (*reset_system)(void);               
146         int (*clear_mod_irqs)(s16 module, u8 r    
147         u32 (*vp_check_txdone)(u8 vp_id);         
148         void (*vp_clear_txdone)(u8 vp_id);        
149 };                                                
150                                                   
151 extern int prm_register(struct prm_ll_data *pl    
152 extern int prm_unregister(struct prm_ll_data *    
153                                                   
154 int omap_prm_assert_hardreset(u8 shift, u8 par    
155 int omap_prm_deassert_hardreset(u8 shift, u8 s    
156                                 u16 offset, u1    
157 int omap_prm_is_hardreset_asserted(u8 shift, u    
158 extern bool prm_was_any_context_lost_old(u8 pa    
159 extern void prm_clear_context_loss_flags_old(u    
160 void omap_prm_reset_system(void);                 
161                                                   
162 int omap_prm_clear_mod_irqs(s16 module, u8 reg    
163                                                   
164 /*                                                
165  * Voltage Processor (VP) identifiers             
166  */                                               
167 #define OMAP3_VP_VDD_MPU_ID     0                 
168 #define OMAP3_VP_VDD_CORE_ID    1                 
169 #define OMAP4_VP_VDD_CORE_ID    0                 
170 #define OMAP4_VP_VDD_IVA_ID     1                 
171 #define OMAP4_VP_VDD_MPU_ID     2                 
172                                                   
173 u32 omap_prm_vp_check_txdone(u8 vp_id);           
174 void omap_prm_vp_clear_txdone(u8 vp_id);          
175                                                   
176 #endif                                            
177                                                   
178                                                   
179 #endif                                            
180                                                   

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