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

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


  1 // SPDX-License-Identifier: GPL-2.0-only            1 
  2 /*                                                
  3  *  linux/arch/arm/mach-omap2/clock.c             
  4  *                                                
  5  *  Copyright (C) 2005-2008 Texas Instruments,    
  6  *  Copyright (C) 2004-2010 Nokia Corporation     
  7  *                                                
  8  *  Contacts:                                     
  9  *  Richard Woodruff <r-woodruff2@ti.com>         
 10  *  Paul Walmsley                                 
 11  */                                               
 12 #undef DEBUG                                      
 13                                                   
 14 #include <linux/kernel.h>                         
 15 #include <linux/export.h>                         
 16 #include <linux/list.h>                           
 17 #include <linux/errno.h>                          
 18 #include <linux/err.h>                            
 19 #include <linux/delay.h>                          
 20 #include <linux/clk.h>                            
 21 #include <linux/clk-provider.h>                   
 22 #include <linux/io.h>                             
 23 #include <linux/bitops.h>                         
 24 #include <linux/of_address.h>                     
 25 #include <asm/cpu.h>                              
 26                                                   
 27 #include <trace/events/power.h>                   
 28                                                   
 29 #include "soc.h"                                  
 30 #include "clockdomain.h"                          
 31 #include "clock.h"                                
 32 #include "cm.h"                                   
 33 #include "cm2xxx.h"                               
 34 #include "cm3xxx.h"                               
 35 #include "cm-regbits-24xx.h"                      
 36 #include "cm-regbits-34xx.h"                      
 37 #include "common.h"                               
 38                                                   
 39 /* DPLL valid Fint frequency band limits - fro    
 40 #define OMAP3430_DPLL_FINT_BAND1_MIN    750000    
 41 #define OMAP3430_DPLL_FINT_BAND1_MAX    210000    
 42 #define OMAP3430_DPLL_FINT_BAND2_MIN    750000    
 43 #define OMAP3430_DPLL_FINT_BAND2_MAX    210000    
 44                                                   
 45 /*                                                
 46  * DPLL valid Fint frequency range for OMAP36x    
 47  * From device data manual section 4.3 "DPLL a    
 48  */                                               
 49 #define OMAP3PLUS_DPLL_FINT_MIN         32000     
 50 #define OMAP3PLUS_DPLL_FINT_MAX         520000    
 51                                                   
 52 struct ti_clk_ll_ops omap_clk_ll_ops = {          
 53         .clkdm_clk_enable = clkdm_clk_enable,     
 54         .clkdm_clk_disable = clkdm_clk_disable    
 55         .clkdm_lookup = clkdm_lookup,             
 56         .cm_wait_module_ready = omap_cm_wait_m    
 57         .cm_split_idlest_reg = cm_split_idlest    
 58 };                                                
 59                                                   
 60 /**                                               
 61  * omap2_clk_setup_ll_ops - setup clock driver    
 62  *                                                
 63  * Sets up clock driver low-level platform ops    
 64  * for register accesses and various other mis    
 65  * Returns 0 on success, -EBUSY if low level o    
 66  * already.                                       
 67  */                                               
 68 int __init omap2_clk_setup_ll_ops(void)           
 69 {                                                 
 70         return ti_clk_setup_ll_ops(&omap_clk_l    
 71 }                                                 
 72                                                   
 73 /*                                                
 74  * OMAP2+ specific clock functions                
 75  */                                               
 76                                                   
 77 /**                                               
 78  * ti_clk_init_features - init clock features     
 79  *                                                
 80  * Initializes the clock features struct based    
 81  */                                               
 82 void __init ti_clk_init_features(void)            
 83 {                                                 
 84         struct ti_clk_features features = { 0     
 85         /* Fint setup for DPLLs */                
 86         if (cpu_is_omap3430()) {                  
 87                 features.fint_min = OMAP3430_D    
 88                 features.fint_max = OMAP3430_D    
 89                 features.fint_band1_max = OMAP    
 90                 features.fint_band2_min = OMAP    
 91         } else {                                  
 92                 features.fint_min = OMAP3PLUS_    
 93                 features.fint_max = OMAP3PLUS_    
 94         }                                         
 95                                                   
 96         /* Bypass value setup for DPLLs */        
 97         if (cpu_is_omap24xx()) {                  
 98                 features.dpll_bypass_vals |=      
 99                         (1 << OMAP2XXX_EN_DPLL    
100                         (1 << OMAP2XXX_EN_DPLL    
101         } else if (cpu_is_omap34xx()) {           
102                 features.dpll_bypass_vals |=      
103                         (1 << OMAP3XXX_EN_DPLL    
104                         (1 << OMAP3XXX_EN_DPLL    
105         } else if (soc_is_am33xx() || cpu_is_o    
106                    soc_is_omap54xx() || soc_is    
107                 features.dpll_bypass_vals |=      
108                         (1 << OMAP4XXX_EN_DPLL    
109                         (1 << OMAP4XXX_EN_DPLL    
110                         (1 << OMAP4XXX_EN_DPLL    
111         }                                         
112                                                   
113         /* Jitter correction only available on    
114         if (cpu_is_omap343x())                    
115                 features.flags |= TI_CLK_DPLL_    
116                                                   
117         if (omap_type() == OMAP2_DEVICE_TYPE_G    
118                 features.flags |= TI_CLK_DEVIC    
119                                                   
120         /* Idlest value for interface clocks.     
121          * 24xx uses 0 to indicate not ready,     
122          * 34xx reverses this, just to keep us    
123          * AM35xx uses both, depending on the     
124          */                                       
125         if (cpu_is_omap24xx())                    
126                 features.cm_idlest_val = OMAP2    
127         else if (cpu_is_omap34xx())               
128                 features.cm_idlest_val = OMAP3    
129                                                   
130         /* On OMAP3430 ES1.0, DPLL4 can't be r    
131         if (omap_rev() == OMAP3430_REV_ES1_0)     
132                 features.flags |= TI_CLK_DPLL4    
133                                                   
134         /* Errata I810 for omap5 / dra7 */        
135         if (soc_is_omap54xx() || soc_is_dra7xx    
136                 features.flags |= TI_CLK_ERRAT    
137                                                   
138         ti_clk_setup_features(&features);         
139 }                                                 
140                                                   

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