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

TOMOYO Linux Cross Reference
Linux/arch/arm/boot/compressed/misc-ep93xx.h

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/boot/compressed/misc-ep93xx.h (Architecture mips) and /arch/alpha/boot/compressed/misc-ep93xx.h (Architecture alpha)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 
  2 /*                                                
  3  * Copyright (C) 2006 Lennert Buytenhek <buyte    
  4  */                                               
  5                                                   
  6 #include <asm/mach-types.h>                       
  7                                                   
  8 static inline unsigned int __raw_readl(unsigne    
  9 {                                                 
 10         return *((volatile unsigned int *)ptr)    
 11 }                                                 
 12                                                   
 13 static inline void __raw_writeb(unsigned char     
 14 {                                                 
 15         *((volatile unsigned char *)ptr) = val    
 16 }                                                 
 17                                                   
 18 static inline void __raw_writel(unsigned int v    
 19 {                                                 
 20         *((volatile unsigned int *)ptr) = valu    
 21 }                                                 
 22                                                   
 23 /*                                                
 24  * Some bootloaders don't turn off DMA from th    
 25  * jumping to linux, which means that we might    
 26  * status and packet data scribbled over the u    
 27  * Work around this by resetting the ethernet     
 28  */                                               
 29 #define PHYS_ETH_SELF_CTL               0x8001    
 30 #define ETH_SELF_CTL_RESET              0x0000    
 31                                                   
 32 static inline void ep93xx_ethernet_reset(void)    
 33 {                                                 
 34         unsigned int v;                           
 35                                                   
 36         /* Reset the ethernet MAC.  */            
 37         v = __raw_readl(PHYS_ETH_SELF_CTL);       
 38         __raw_writel(v | ETH_SELF_CTL_RESET, P    
 39                                                   
 40         /* Wait for reset to finish.  */          
 41         while (__raw_readl(PHYS_ETH_SELF_CTL)     
 42                 ;                                 
 43 }                                                 
 44                                                   
 45 #define TS72XX_WDT_CONTROL_PHYS_BASE    0x2380    
 46 #define TS72XX_WDT_FEED_PHYS_BASE       0x23c0    
 47 #define TS72XX_WDT_FEED_VAL             0x05      
 48                                                   
 49 static inline void __maybe_unused ts72xx_watch    
 50 {                                                 
 51         __raw_writeb(TS72XX_WDT_FEED_VAL, TS72    
 52         __raw_writeb(0, TS72XX_WDT_CONTROL_PHY    
 53 }                                                 
 54                                                   
 55 static inline void ep93xx_decomp_setup(void)      
 56 {                                                 
 57         if (machine_is_ts72xx())                  
 58                 ts72xx_watchdog_disable();        
 59                                                   
 60         if (machine_is_edb9301() ||               
 61             machine_is_edb9302() ||               
 62             machine_is_edb9302a() ||              
 63             machine_is_edb9302a() ||              
 64             machine_is_edb9307() ||               
 65             machine_is_edb9307a() ||              
 66             machine_is_edb9307a() ||              
 67             machine_is_edb9312() ||               
 68             machine_is_edb9315() ||               
 69             machine_is_edb9315a() ||              
 70             machine_is_edb9315a() ||              
 71             machine_is_ts72xx() ||                
 72             machine_is_bk3() ||                   
 73             machine_is_vision_ep9307())           
 74                 ep93xx_ethernet_reset();          
 75 }                                                 
 76                                                   

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