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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-clps711x/board-dt.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-clps711x/board-dt.c (Version linux-6.12-rc7) and /arch/m68k/mach-clps711x/board-dt.c (Version linux-5.15.171)


  1 // SPDX-License-Identifier: GPL-2.0-or-later        1 
  2 /*                                                
  3  *  Author: Alexander Shiyan <shc_work@mail.ru    
  4  */                                               
  5                                                   
  6 #include <linux/io.h>                             
  7 #include <linux/of_fdt.h>                         
  8 #include <linux/platform_device.h>                
  9 #include <linux/random.h>                         
 10 #include <linux/sizes.h>                          
 11                                                   
 12 #include <linux/mfd/syscon/clps711x.h>            
 13                                                   
 14 #include <asm/system_info.h>                      
 15 #include <asm/system_misc.h>                      
 16 #include <asm/mach/arch.h>                        
 17 #include <asm/mach/map.h>                         
 18                                                   
 19 #define CLPS711X_VIRT_BASE      IOMEM(0xfeff40    
 20 #define CLPS711X_PHYS_BASE      (0x80000000)      
 21 # define SYSFLG1                (0x0140)          
 22 # define HALT                   (0x0800)          
 23 # define UNIQID                 (0x2440)          
 24 # define RANDID0                (0x2700)          
 25 # define RANDID1                (0x2704)          
 26 # define RANDID2                (0x2708)          
 27 # define RANDID3                (0x270c)          
 28                                                   
 29 static struct map_desc clps711x_io_desc __init    
 30         .virtual        = (unsigned long)CLPS7    
 31         .pfn            = __phys_to_pfn(CLPS71    
 32         .length         = 48 * SZ_1K,             
 33         .type           = MT_DEVICE,              
 34 };                                                
 35                                                   
 36 static void __init clps711x_map_io(void)          
 37 {                                                 
 38         iotable_init(&clps711x_io_desc, 1);       
 39 }                                                 
 40                                                   
 41 static const struct resource clps711x_cpuidle_    
 42         DEFINE_RES_MEM(CLPS711X_PHYS_BASE + HA    
 43                                                   
 44 static void __init clps711x_init(void)            
 45 {                                                 
 46         u32 id[5];                                
 47                                                   
 48         id[0] = readl(CLPS711X_VIRT_BASE + UNI    
 49         id[1] = readl(CLPS711X_VIRT_BASE + RAN    
 50         id[2] = readl(CLPS711X_VIRT_BASE + RAN    
 51         id[3] = readl(CLPS711X_VIRT_BASE + RAN    
 52         id[4] = readl(CLPS711X_VIRT_BASE + RAN    
 53         system_rev = SYSFLG1_VERID(readl(CLPS7    
 54                                                   
 55         add_device_randomness(id, sizeof(id));    
 56                                                   
 57         system_serial_low = id[0];                
 58                                                   
 59         platform_device_register_simple("clps7    
 60                                         &clps7    
 61 }                                                 
 62                                                   
 63 static void clps711x_restart(enum reboot_mode     
 64 {                                                 
 65         soft_restart(0);                          
 66 }                                                 
 67                                                   
 68 static const char *const clps711x_compat[] __i    
 69         "cirrus,ep7209",                          
 70         NULL                                      
 71 };                                                
 72                                                   
 73 DT_MACHINE_START(CLPS711X_DT, "Cirrus Logic CL    
 74         .dt_compat      = clps711x_compat,        
 75         .map_io         = clps711x_map_io,        
 76         .init_late      = clps711x_init,          
 77         .restart        = clps711x_restart,       
 78 MACHINE_END                                       
 79                                                   

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