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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-dove/cm-a510.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-dove/cm-a510.c (Version linux-6.12-rc7) and /arch/mips/mach-dove/cm-a510.c (Version linux-5.18.19)


  1 // SPDX-License-Identifier: GPL-2.0-only            1 
  2 /*                                                
  3  * arch/arm/mach-dove/cm-a510.c                   
  4  *                                                
  5  * Copyright (C) 2010 CompuLab, Ltd.              
  6  * Konstantin Sinyuk <kostyas@compulab.co.il>     
  7  *                                                
  8  * Based on Marvell DB-MV88AP510-BP Developmen    
  9  */                                               
 10                                                   
 11 #include <linux/kernel.h>                         
 12 #include <linux/init.h>                           
 13 #include <linux/platform_device.h>                
 14 #include <linux/ata_platform.h>                   
 15 #include <linux/mv643xx_eth.h>                    
 16 #include <linux/spi/spi.h>                        
 17 #include <linux/spi/flash.h>                      
 18                                                   
 19 #include <asm/mach-types.h>                       
 20 #include <asm/mach/arch.h>                        
 21                                                   
 22 #include "dove.h"                                 
 23 #include "common.h"                               
 24                                                   
 25 static struct mv643xx_eth_platform_data cm_a51    
 26         .phy_addr       = MV643XX_ETH_PHY_ADDR    
 27 };                                                
 28                                                   
 29 static struct mv_sata_platform_data cm_a510_sa    
 30         .n_ports        = 1,                      
 31 };                                                
 32                                                   
 33 /*                                                
 34  * SPI Devices:                                   
 35  * SPI0: 1M Flash Winbond w25q32bv                
 36  */                                               
 37 static const struct flash_platform_data cm_a51    
 38         .type           = "w25q32bv",             
 39 };                                                
 40                                                   
 41 static struct spi_board_info __initdata cm_a51    
 42         {                                         
 43                 .modalias       = "m25p80",       
 44                 .platform_data  = &cm_a510_spi    
 45                 .irq            = -1,             
 46                 .max_speed_hz   = 20000000,       
 47                 .bus_num        = 0,              
 48                 .chip_select    = 0,              
 49         },                                        
 50 };                                                
 51                                                   
 52 static int __init cm_a510_pci_init(void)          
 53 {                                                 
 54         if (machine_is_cm_a510())                 
 55                 dove_pcie_init(1, 1);             
 56                                                   
 57         return 0;                                 
 58 }                                                 
 59                                                   
 60 subsys_initcall(cm_a510_pci_init);                
 61                                                   
 62 /* Board Init */                                  
 63 static void __init cm_a510_init(void)             
 64 {                                                 
 65         /*                                        
 66          * Basic Dove setup. Needs to be calle    
 67          */                                       
 68         dove_init();                              
 69                                                   
 70         dove_ge00_init(&cm_a510_ge00_data);       
 71         dove_ehci0_init();                        
 72         dove_ehci1_init();                        
 73         dove_sata_init(&cm_a510_sata_data);       
 74         dove_sdio0_init();                        
 75         dove_sdio1_init();                        
 76         dove_spi0_init();                         
 77         dove_spi1_init();                         
 78         dove_uart0_init();                        
 79         dove_uart1_init();                        
 80         dove_i2c_init();                          
 81         spi_register_board_info(cm_a510_spi_fl    
 82                                 ARRAY_SIZE(cm_    
 83 }                                                 
 84                                                   
 85 MACHINE_START(CM_A510, "Compulab CM-A510 Board    
 86         .atag_offset    = 0x100,                  
 87         .nr_irqs        = DOVE_NR_IRQS,           
 88         .init_machine   = cm_a510_init,           
 89         .map_io         = dove_map_io,            
 90         .init_early     = dove_init_early,        
 91         .init_irq       = dove_init_irq,          
 92         .init_time      = dove_timer_init,        
 93         .restart        = dove_restart,           
 94 MACHINE_END                                       
 95                                                   

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