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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-tegra/tegra.c

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/arm/mach-tegra/tegra.c (Architecture ppc) and /arch/m68k/mach-tegra/tegra.c (Architecture m68k)


  1 // SPDX-License-Identifier: GPL-2.0-only            1 
  2 /*                                                
  3  * NVIDIA Tegra SoC device tree board support     
  4  *                                                
  5  * Copyright (C) 2011, 2013, NVIDIA Corporatio    
  6  * Copyright (C) 2010 Secret Lab Technologies,    
  7  * Copyright (C) 2010 Google, Inc.                
  8  */                                               
  9                                                   
 10 #include <linux/clk.h>                            
 11 #include <linux/clk/tegra.h>                      
 12 #include <linux/dma-mapping.h>                    
 13 #include <linux/init.h>                           
 14 #include <linux/io.h>                             
 15 #include <linux/irqchip.h>                        
 16 #include <linux/irqdomain.h>                      
 17 #include <linux/kernel.h>                         
 18 #include <linux/of_address.h>                     
 19 #include <linux/of_fdt.h>                         
 20 #include <linux/of.h>                             
 21 #include <linux/of_platform.h>                    
 22 #include <linux/platform_device.h>                
 23 #include <linux/serial_8250.h>                    
 24 #include <linux/slab.h>                           
 25 #include <linux/sys_soc.h>                        
 26 #include <linux/usb/tegra_usb_phy.h>              
 27                                                   
 28 #include <linux/firmware/trusted_foundations.h    
 29                                                   
 30 #include <soc/tegra/fuse.h>                       
 31 #include <soc/tegra/pmc.h>                        
 32                                                   
 33 #include <asm/firmware.h>                         
 34 #include <asm/hardware/cache-l2x0.h>              
 35 #include <asm/mach/arch.h>                        
 36 #include <asm/mach/time.h>                        
 37 #include <asm/mach-types.h>                       
 38 #include <asm/psci.h>                             
 39 #include <asm/setup.h>                            
 40                                                   
 41 #include "board.h"                                
 42 #include "common.h"                               
 43 #include "iomap.h"                                
 44 #include "pm.h"                                   
 45 #include "reset.h"                                
 46 #include "sleep.h"                                
 47                                                   
 48 /*                                                
 49  * Storage for debug-macro.S's state.             
 50  *                                                
 51  * This must be in .data not .bss so that it g    
 52  * kernel is loaded. The data is declared here    
 53  * that multiple inclusions of debug-macro.S p    
 54  */                                               
 55 u32 tegra_uart_config[3] = {                      
 56         /* Debug UART initialization required     
 57         1,                                        
 58         /* Debug UART physical address */         
 59         0,                                        
 60         /* Debug UART virtual address */          
 61         0,                                        
 62 };                                                
 63                                                   
 64 static void __init tegra_init_early(void)         
 65 {                                                 
 66         of_register_trusted_foundations();        
 67         tegra_cpu_reset_handler_init();           
 68         call_firmware_op(l2x0_init);              
 69 }                                                 
 70                                                   
 71 static void __init tegra_dt_init_irq(void)        
 72 {                                                 
 73         tegra_init_irq();                         
 74         irqchip_init();                           
 75 }                                                 
 76                                                   
 77 static void __init tegra_dt_init(void)            
 78 {                                                 
 79         struct device *parent = tegra_soc_devi    
 80                                                   
 81         of_platform_default_populate(NULL, NUL    
 82 }                                                 
 83                                                   
 84 static void __init tegra_dt_init_late(void)       
 85 {                                                 
 86         if (IS_ENABLED(CONFIG_ARCH_TEGRA_2x_SO    
 87             of_machine_is_compatible("compal,p    
 88                 tegra_paz00_wifikill_init();      
 89                                                   
 90         if (IS_ENABLED(CONFIG_ARCH_TEGRA_2x_SO    
 91             of_machine_is_compatible("nvidia,t    
 92                 platform_device_register_simpl    
 93                                                   
 94         if (IS_ENABLED(CONFIG_ARM_TEGRA_CPUIDL    
 95                 platform_device_register_simpl    
 96                                                   
 97         if (IS_ENABLED(CONFIG_ARCH_TEGRA_3x_SO    
 98             of_machine_is_compatible("nvidia,t    
 99                 platform_device_register_simpl    
100 }                                                 
101                                                   
102 static const char * const tegra_dt_board_compa    
103         "nvidia,tegra124",                        
104         "nvidia,tegra114",                        
105         "nvidia,tegra30",                         
106         "nvidia,tegra20",                         
107         NULL                                      
108 };                                                
109                                                   
110 DT_MACHINE_START(TEGRA_DT, "NVIDIA Tegra SoC (    
111         .l2c_aux_val    = 0x3c400000,             
112         .l2c_aux_mask   = 0xc20fc3ff,             
113         .smp            = smp_ops(tegra_smp_op    
114         .map_io         = tegra_map_common_io,    
115         .init_early     = tegra_init_early,       
116         .init_irq       = tegra_dt_init_irq,      
117         .init_machine   = tegra_dt_init,          
118         .init_late      = tegra_dt_init_late,     
119         .dt_compat      = tegra_dt_board_compa    
120 MACHINE_END                                       
121                                                   

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