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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-sunxi/headsmp.S

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-sunxi/headsmp.S (Version linux-6.12-rc7) and /arch/i386/mach-sunxi/headsmp.S (Version linux-2.4.37.11)


  1 /* SPDX-License-Identifier: GPL-2.0               
  2  *                                                
  3  * Copyright (c) 2018 Chen-Yu Tsai                
  4  * Copyright (c) 2018 Bootlin                     
  5  *                                                
  6  * Chen-Yu Tsai <wens@csie.org>                    
  7  * Mylène Josserand <mylene.josserand@bootlin.    
  8  *                                                
  9  * SMP support for sunxi based systems with Co    
 10  *                                                
 11  */                                               
 12                                                   
 13 #include <linux/linkage.h>                        
 14 #include <asm/assembler.h>                        
 15 #include <asm/cputype.h>                          
 16                                                   
 17 ENTRY(sunxi_mc_smp_cluster_cache_enable)          
 18         .arch   armv7-a                           
 19         /*                                        
 20          * Enable cluster-level coherency, in     
 21          *                                        
 22          * Also enable regional clock gating a    
 23          * Cortex-A15. These settings are from    
 24          */                                       
 25         mrc     p15, 0, r1, c0, c0, 0             
 26         movw    r2, #(ARM_CPU_PART_MASK & 0xff    
 27         movt    r2, #(ARM_CPU_PART_MASK >> 16)    
 28         and     r1, r1, r2                        
 29         movw    r2, #(ARM_CPU_PART_CORTEX_A15     
 30         movt    r2, #(ARM_CPU_PART_CORTEX_A15     
 31         cmp     r1, r2                            
 32         bne     not_a15                           
 33                                                   
 34         /* The following is Cortex-A15 specifi    
 35                                                   
 36         /* ACTLR2: Enable CPU regional clock g    
 37         mrc p15, 1, r1, c15, c0, 4                
 38         orr r1, r1, #(0x1 << 31)                  
 39         mcr p15, 1, r1, c15, c0, 4                
 40                                                   
 41         /* L2ACTLR */                             
 42         mrc p15, 1, r1, c15, c0, 0                
 43         /* Enable L2, GIC, and Timer regional     
 44         orr r1, r1, #(0x1 << 26)                  
 45         /* Disable clean/evict from being push    
 46         orr r1, r1, #(0x1<<3)                     
 47         mcr p15, 1, r1, c15, c0, 0                
 48                                                   
 49         /* L2CTRL: L2 data RAM latency */         
 50         mrc p15, 1, r1, c9, c0, 2                 
 51         bic r1, r1, #(0x7 << 0)                   
 52         orr r1, r1, #(0x3 << 0)                   
 53         mcr p15, 1, r1, c9, c0, 2                 
 54                                                   
 55         /* End of Cortex-A15 specific setup */    
 56         not_a15:                                  
 57                                                   
 58         /* Get value of sunxi_mc_smp_first_com    
 59         adr     r1, first                         
 60         ldr     r0, [r1]                          
 61         ldr     r0, [r1, r0]                      
 62                                                   
 63         /* Skip cci_enable_port_for_self if no    
 64         cmp     r0, #0                            
 65         bxeq    lr                                
 66         b       cci_enable_port_for_self          
 67                                                   
 68         .align 2                                  
 69         first: .word sunxi_mc_smp_first_comer     
 70 ENDPROC(sunxi_mc_smp_cluster_cache_enable)        
 71                                                   
 72 ENTRY(sunxi_mc_smp_secondary_startup)             
 73         bl      sunxi_mc_smp_cluster_cache_ena    
 74         bl      secure_cntvoff_init               
 75         b       secondary_startup                 
 76 ENDPROC(sunxi_mc_smp_secondary_startup)           
 77                                                   
 78 ENTRY(sunxi_mc_smp_resume)                        
 79         bl      sunxi_mc_smp_cluster_cache_ena    
 80         b       cpu_resume                        
 81 ENDPROC(sunxi_mc_smp_resume)                      
                                                      

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