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

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


  1 // SPDX-License-Identifier: GPL-2.0-only            1 
  2 /*                                                
  3  * OMAP4 Voltage Controller (VC) data             
  4  *                                                
  5  * Copyright (C) 2007, 2010 Texas Instruments,    
  6  * Rajendra Nayak <rnayak@ti.com>                 
  7  * Lesly A M <x0080970@ti.com>                    
  8  * Thara Gopinath <thara@ti.com>                  
  9  *                                                
 10  * Copyright (C) 2008, 2011 Nokia Corporation     
 11  * Kalle Jokiniemi                                
 12  * Paul Walmsley                                  
 13  */                                               
 14 #include <linux/io.h>                             
 15 #include <linux/err.h>                            
 16 #include <linux/init.h>                           
 17                                                   
 18 #include "common.h"                               
 19                                                   
 20 #include "prm44xx.h"                              
 21 #include "prm-regbits-44xx.h"                     
 22 #include "voltage.h"                              
 23                                                   
 24 #include "vc.h"                                   
 25                                                   
 26 /*                                                
 27  * VC data common to 44xx chips                   
 28  * XXX This stuff presumably belongs in the vc    
 29  */                                               
 30 static const struct omap_vc_common omap4_vc_co    
 31         .bypass_val_reg = OMAP4_PRM_VC_VAL_BYP    
 32         .data_shift = OMAP4430_DATA_SHIFT,        
 33         .slaveaddr_shift = OMAP4430_SLAVEADDR_    
 34         .regaddr_shift = OMAP4430_REGADDR_SHIF    
 35         .valid = OMAP4430_VALID_MASK,             
 36         .cmd_on_shift = OMAP4430_ON_SHIFT,        
 37         .cmd_on_mask = OMAP4430_ON_MASK,          
 38         .cmd_onlp_shift = OMAP4430_ONLP_SHIFT,    
 39         .cmd_ret_shift = OMAP4430_RET_SHIFT,      
 40         .cmd_off_shift = OMAP4430_OFF_SHIFT,      
 41         .i2c_cfg_reg = OMAP4_PRM_VC_CFG_I2C_MO    
 42         .i2c_cfg_clear_mask = OMAP4430_SRMODEE    
 43         .i2c_cfg_hsen_mask = OMAP4430_HSMODEEN    
 44         .i2c_mcode_mask  = OMAP4430_HSMCODE_MA    
 45 };                                                
 46                                                   
 47 /* VC instance data for each controllable volt    
 48 struct omap_vc_channel omap4_vc_mpu = {           
 49         .flags = OMAP_VC_CHANNEL_DEFAULT | OMA    
 50         .common = &omap4_vc_common,               
 51         .smps_sa_reg = OMAP4_PRM_VC_SMPS_SA_OF    
 52         .smps_volra_reg = OMAP4_PRM_VC_VAL_SMP    
 53         .smps_cmdra_reg = OMAP4_PRM_VC_VAL_SMP    
 54         .cfg_channel_reg = OMAP4_PRM_VC_CFG_CH    
 55         .cmdval_reg = OMAP4_PRM_VC_VAL_CMD_VDD    
 56         .smps_sa_mask = OMAP4430_SA_VDD_MPU_L_    
 57         .smps_volra_mask = OMAP4430_VOLRA_VDD_    
 58         .smps_cmdra_mask = OMAP4430_CMDRA_VDD_    
 59         .cfg_channel_sa_shift = OMAP4430_SA_VD    
 60 };                                                
 61                                                   
 62 struct omap_vc_channel omap4_vc_iva = {           
 63         .common = &omap4_vc_common,               
 64         .smps_sa_reg = OMAP4_PRM_VC_SMPS_SA_OF    
 65         .smps_volra_reg = OMAP4_PRM_VC_VAL_SMP    
 66         .smps_cmdra_reg = OMAP4_PRM_VC_VAL_SMP    
 67         .cfg_channel_reg = OMAP4_PRM_VC_CFG_CH    
 68         .cmdval_reg = OMAP4_PRM_VC_VAL_CMD_VDD    
 69         .smps_sa_mask = OMAP4430_SA_VDD_IVA_L_    
 70         .smps_volra_mask = OMAP4430_VOLRA_VDD_    
 71         .smps_cmdra_mask = OMAP4430_CMDRA_VDD_    
 72         .cfg_channel_sa_shift = OMAP4430_SA_VD    
 73 };                                                
 74                                                   
 75 struct omap_vc_channel omap4_vc_core = {          
 76         .common = &omap4_vc_common,               
 77         .smps_sa_reg = OMAP4_PRM_VC_SMPS_SA_OF    
 78         .smps_volra_reg = OMAP4_PRM_VC_VAL_SMP    
 79         .smps_cmdra_reg = OMAP4_PRM_VC_VAL_SMP    
 80         .cfg_channel_reg = OMAP4_PRM_VC_CFG_CH    
 81         .cmdval_reg = OMAP4_PRM_VC_VAL_CMD_VDD    
 82         .smps_sa_mask = OMAP4430_SA_VDD_CORE_L    
 83         .smps_volra_mask = OMAP4430_VOLRA_VDD_    
 84         .smps_cmdra_mask = OMAP4430_CMDRA_VDD_    
 85         .cfg_channel_sa_shift = OMAP4430_SA_VD    
 86 };                                                
 87                                                   
 88 /*                                                
 89  * Voltage levels for different operating mode    
 90  */                                               
 91 #define OMAP4_ON_VOLTAGE_UV                       
 92 #define OMAP4_ONLP_VOLTAGE_UV                     
 93 #define OMAP4_RET_VOLTAGE_UV                      
 94 #define OMAP4_OFF_VOLTAGE_UV                      
 95                                                   
 96 struct omap_vc_param omap4_mpu_vc_data = {        
 97         .on                     = OMAP4_ON_VOL    
 98         .onlp                   = OMAP4_ONLP_V    
 99         .ret                    = OMAP4_RET_VO    
100         .off                    = OMAP4_OFF_VO    
101 };                                                
102                                                   
103 struct omap_vc_param omap4_iva_vc_data = {        
104         .on                     = OMAP4_ON_VOL    
105         .onlp                   = OMAP4_ONLP_V    
106         .ret                    = OMAP4_RET_VO    
107         .off                    = OMAP4_OFF_VO    
108 };                                                
109                                                   
110 struct omap_vc_param omap4_core_vc_data = {       
111         .on                     = OMAP4_ON_VOL    
112         .onlp                   = OMAP4_ONLP_V    
113         .ret                    = OMAP4_RET_VO    
114         .off                    = OMAP4_OFF_VO    
115 };                                                
116                                                   

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