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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-imx/mach-imx7ulp.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-imx/mach-imx7ulp.c (Version linux-6.12-rc7) and /arch/m68k/mach-imx/mach-imx7ulp.c (Version linux-6.7.12)


  1 // SPDX-License-Identifier: GPL-2.0+                1 
  2 /*                                                
  3  * Copyright (C) 2016 Freescale Semiconductor,    
  4  * Copyright 2017-2018 NXP                        
  5  *   Author: Dong Aisheng <aisheng.dong@nxp.co    
  6  */                                               
  7                                                   
  8 #include <linux/irqchip.h>                        
  9 #include <linux/mfd/syscon.h>                     
 10 #include <linux/of_platform.h>                    
 11 #include <linux/regmap.h>                         
 12 #include <asm/mach/arch.h>                        
 13                                                   
 14 #include "common.h"                               
 15 #include "cpuidle.h"                              
 16 #include "hardware.h"                             
 17                                                   
 18 #define SIM_JTAG_ID_REG         0x8c              
 19                                                   
 20 static void __init imx7ulp_set_revision(void)     
 21 {                                                 
 22         struct regmap *sim;                       
 23         u32 revision;                             
 24                                                   
 25         sim = syscon_regmap_lookup_by_compatib    
 26         if (IS_ERR(sim)) {                        
 27                 pr_warn("failed to find fsl,im    
 28                 return;                           
 29         }                                         
 30                                                   
 31         if (regmap_read(sim, SIM_JTAG_ID_REG,     
 32                 pr_warn("failed to read sim re    
 33                 return;                           
 34         }                                         
 35                                                   
 36         /*                                        
 37          * bit[31:28] of JTAG_ID register defi    
 38          * 0001        B0                         
 39          * 0010        B1                         
 40          * 0011        B2                         
 41          */                                       
 42         switch (revision >> 28) {                 
 43         case 1:                                   
 44                 imx_set_soc_revision(IMX_CHIP_    
 45                 break;                            
 46         case 2:                                   
 47                 imx_set_soc_revision(IMX_CHIP_    
 48                 break;                            
 49         case 3:                                   
 50                 imx_set_soc_revision(IMX_CHIP_    
 51                 break;                            
 52         default:                                  
 53                 imx_set_soc_revision(IMX_CHIP_    
 54                 break;                            
 55         }                                         
 56 }                                                 
 57                                                   
 58 static void __init imx7ulp_init_machine(void)     
 59 {                                                 
 60         imx7ulp_pm_init();                        
 61                                                   
 62         mxc_set_cpu_type(MXC_CPU_IMX7ULP);        
 63         imx7ulp_set_revision();                   
 64         of_platform_default_populate(NULL, NUL    
 65 }                                                 
 66                                                   
 67 static const char *const imx7ulp_dt_compat[] _    
 68         "fsl,imx7ulp",                            
 69         NULL,                                     
 70 };                                                
 71                                                   
 72 static void __init imx7ulp_init_late(void)        
 73 {                                                 
 74         if (IS_ENABLED(CONFIG_ARM_IMX_CPUFREQ_    
 75                 platform_device_register_simpl    
 76                                                   
 77         imx7ulp_cpuidle_init();                   
 78 }                                                 
 79                                                   
 80 DT_MACHINE_START(IMX7ulp, "Freescale i.MX7ULP     
 81         .init_machine   = imx7ulp_init_machine    
 82         .dt_compat      = imx7ulp_dt_compat,      
 83         .init_late      = imx7ulp_init_late,      
 84 MACHINE_END                                       
 85                                                   

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