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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-imx/mach-imx7d.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-imx7d.c (Architecture sparc64) and /arch/i386/mach-imx/mach-imx7d.c (Architecture i386)


  1 // SPDX-License-Identifier: GPL-2.0-only            1 
  2 /*                                                
  3  * Copyright (C) 2015 Freescale Semiconductor,    
  4  */                                               
  5 #include <linux/irqchip.h>                        
  6 #include <linux/mfd/syscon.h>                     
  7 #include <linux/mfd/syscon/imx7-iomuxc-gpr.h>     
  8 #include <linux/platform_device.h>                
  9 #include <linux/phy.h>                            
 10 #include <linux/regmap.h>                         
 11                                                   
 12 #include <asm/mach/arch.h>                        
 13 #include <asm/mach/map.h>                         
 14                                                   
 15 #include "common.h"                               
 16                                                   
 17 static int bcm54220_phy_fixup(struct phy_devic    
 18 {                                                 
 19         /* enable RXC skew select RGMII copper    
 20         phy_write(dev, 0x1e, 0x21);               
 21         phy_write(dev, 0x1f, 0x7ea8);             
 22         phy_write(dev, 0x1e, 0x2f);               
 23         phy_write(dev, 0x1f, 0x71b7);             
 24                                                   
 25         return 0;                                 
 26 }                                                 
 27                                                   
 28 #define PHY_ID_BCM54220 0x600d8589                
 29                                                   
 30 static void __init imx7d_enet_phy_init(void)      
 31 {                                                 
 32         if (IS_BUILTIN(CONFIG_PHYLIB)) {          
 33                 phy_register_fixup_for_uid(PHY    
 34                                            bcm    
 35         }                                         
 36 }                                                 
 37                                                   
 38 static void __init imx7d_enet_clk_sel(void)       
 39 {                                                 
 40         struct regmap *gpr;                       
 41                                                   
 42         gpr = syscon_regmap_lookup_by_compatib    
 43         if (!IS_ERR(gpr)) {                       
 44                 regmap_update_bits(gpr, IOMUXC    
 45                 regmap_update_bits(gpr, IOMUXC    
 46         } else {                                  
 47                 pr_err("failed to find fsl,imx    
 48         }                                         
 49 }                                                 
 50                                                   
 51 static void __init imx7d_enet_init(void)          
 52 {                                                 
 53         imx7d_enet_phy_init();                    
 54         imx7d_enet_clk_sel();                     
 55 }                                                 
 56                                                   
 57 static void __init imx7d_init_machine(void)       
 58 {                                                 
 59         imx_anatop_init();                        
 60         imx7d_enet_init();                        
 61 }                                                 
 62                                                   
 63 static void __init imx7d_init_late(void)          
 64 {                                                 
 65         if (IS_ENABLED(CONFIG_ARM_IMX_CPUFREQ_    
 66                 platform_device_register_simpl    
 67 }                                                 
 68                                                   
 69 static void __init imx7d_init_irq(void)           
 70 {                                                 
 71         imx_init_revision_from_anatop();          
 72         imx7_src_init();                          
 73         irqchip_init();                           
 74 }                                                 
 75                                                   
 76 static const char *const imx7d_dt_compat[] __i    
 77         "fsl,imx7d",                              
 78         "fsl,imx7s",                              
 79         NULL,                                     
 80 };                                                
 81                                                   
 82 DT_MACHINE_START(IMX7D, "Freescale i.MX7 Dual     
 83         .smp            = smp_ops(imx7_smp_ops    
 84         .init_irq       = imx7d_init_irq,         
 85         .init_machine   = imx7d_init_machine,     
 86         .init_late      = imx7d_init_late,        
 87         .dt_compat      = imx7d_dt_compat,        
 88 MACHINE_END                                       
 89                                                   

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