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

TOMOYO Linux Cross Reference
Linux/arch/arm/include/debug/omap2plus.S

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/include/debug/omap2plus.S (Architecture sparc) and /arch/alpha/include/debug/omap2plus.S (Architecture alpha)


  1 /* SPDX-License-Identifier: GPL-2.0-only */       
  2 /*                                                
  3  * Debugging macro include header                 
  4  *                                                
  5  *  Copyright (C) 1994-1999 Russell King          
  6  *  Moved from linux/arch/arm/kernel/debug.S b    
  7 */                                                
  8                                                   
  9 #include <linux/serial_reg.h>                     
 10                                                   
 11 /* External port on Zoom2/3 */                    
 12 #define ZOOM_UART_BASE          0x10000000        
 13 #define ZOOM_UART_VIRT          0xfa400000        
 14                                                   
 15 #define OMAP_PORT_SHIFT         2                 
 16 #define ZOOM_PORT_SHIFT         1                 
 17                                                   
 18 #define UART_OFFSET(addr)       ((addr) & 0x00    
 19                                                   
 20                 .pushsection .data                
 21                 .align  2                         
 22 omap_uart_phys: .word   0                         
 23 omap_uart_virt: .word   0                         
 24 omap_uart_lsr:  .word   0                         
 25                 .popsection                       
 26                                                   
 27                 .macro  addruart, rp, rv, tmp     
 28                                                   
 29                 /* Use omap_uart_phys/virt if     
 30 10:             adr     \rp, 99f                  
 31                 ldr     \rv, [\rp]                
 32                 sub     \rv, \rv, \rp             
 33                 ldr     \rp, [\rp, #4]            
 34                 sub     \tmp, \rp, \rv            
 35                 ldr     \rp, [\tmp, #0]           
 36                 ldr     \rv, [\tmp, #4]           
 37                 cmp     \rp, #0                   
 38                 cmpne   \rv, #0                   
 39                 bne     100f                      
 40                                                   
 41                 /* Configure the UART offset f    
 42 #ifdef CONFIG_DEBUG_ZOOM_UART                     
 43                 ldr     \rp, =ZOOM_UART_BASE      
 44                 str     \rp, [\tmp, #0]           
 45                 ldr     \rp, =ZOOM_UART_VIRT      
 46                 str     \rp, [\tmp, #4]           
 47                 mov     \rp, #(UART_LSR << ZOO    
 48                 str     \rp, [\tmp, #8]           
 49 #endif                                            
 50                 b       10b                       
 51                                                   
 52                 .align                            
 53 99:             .word   .                         
 54                 .word   omap_uart_phys            
 55                 .ltorg                            
 56                                                   
 57 100:            /* Pass the UART_LSR reg addre    
 58                 ldr     \tmp, [\tmp, #8]          
 59                 add     \rp, \rp, \tmp            
 60                 add     \rv, \rv, \tmp            
 61                 .endm                             
 62                                                   
 63                 .macro  senduart,rd,rx            
 64                 orr     \rd, \rd, \rx, lsl #24    
 65                 bic     \rx, \rx, #0xff           
 66                 strb    \rd, [\rx]                
 67                 orr     \rx, \rx, \rd, lsr #24    
 68                 bic     \rd, \rd, #(0xff << 24    
 69                 .endm                             
 70                                                   
 71                 .macro  busyuart,rd,rx            
 72 1001:           ldrb    \rd, [\rx]                
 73                 and     \rd, \rd, #(UART_LSR_T    
 74                 teq     \rd, #(UART_LSR_TEMT |    
 75                 bne     1001b                     
 76                 .endm                             
 77                                                   
 78                 .macro  waituartcts,rd,rx         
 79                 .endm                             
 80                                                   
 81                 .macro  waituarttxrdy,rd,rx       
 82                 .endm                             
                                                      

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