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

TOMOYO Linux Cross Reference
Linux/arch/sh/boards/mach-ecovec24/sdram.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/sh/boards/mach-ecovec24/sdram.S (Version linux-6.12-rc7) and /arch/i386/boards/mach-ecovec24/sdram.S (Version linux-4.17.19)


  1 /* SPDX-License-Identifier: GPL-2.0               
  2  *                                                
  3  * Ecovec24 sdram self/auto-refresh setup code    
  4  *                                                
  5  *  Copyright (C) 2009 Magnus Damm                
  6  */                                               
  7                                                   
  8 #include <linux/sys.h>                            
  9 #include <linux/errno.h>                          
 10 #include <linux/linkage.h>                        
 11 #include <asm/asm-offsets.h>                      
 12 #include <asm/suspend.h>                          
 13 #include <asm/romimage-macros.h>                  
 14                                                   
 15 /* code to enter and leave self-refresh. must     
 16  * this code will be copied to on-chip memory     
 17  */                                               
 18         .balign 4                                 
 19 ENTRY(ecovec24_sdram_enter_start)                 
 20                                                   
 21         /* DBSC: put memory in self-refresh mo    
 22                                                   
 23         ED 0xFD000010, 0x00000000 /* DBEN */      
 24         ED 0xFD000040, 0x00000000 /* DBRFPDN0     
 25         ED 0xFD000014, 0x00000002 /* DBCMDCNT     
 26         ED 0xFD000014, 0x00000004 /* DBCMDCNT     
 27         ED 0xFD000040, 0x00000001 /* DBRFPDN0     
 28                                                   
 29         rts                                       
 30          nop                                      
 31                                                   
 32 ENTRY(ecovec24_sdram_enter_end)                   
 33                                                   
 34         .balign 4                                 
 35 ENTRY(ecovec24_sdram_leave_start)                 
 36                                                   
 37         mov.l   @(SH_SLEEP_MODE, r5), r0          
 38         tst     #SUSP_SH_RSTANDBY, r0             
 39         bf      resume_rstandby                   
 40                                                   
 41         /* DBSC: put memory in auto-refresh mo    
 42                                                   
 43         ED 0xFD000040, 0x00000000 /* DBRFPDN0     
 44         WAIT 1                                    
 45         ED 0xFD000014, 0x00000002 /* DBCMDCNT     
 46         ED 0xFD000014, 0x00000004 /* DBCMDCNT     
 47         ED 0xFD000010, 0x00000001 /* DBEN */      
 48         ED 0xFD000040, 0x00010000 /* DBRFPDN0     
 49                                                   
 50         rts                                       
 51          nop                                      
 52                                                   
 53 resume_rstandby:                                  
 54                                                   
 55         /* DBSC: re-initialize and put in auto    
 56                                                   
 57         ED 0xFD000108, 0x00000181 /* DBPDCNT0     
 58         ED 0xFD000020, 0x015B0002 /* DBCONF */    
 59         ED 0xFD000030, 0x03071502 /* DBTR0 */     
 60         ED 0xFD000034, 0x02020102 /* DBTR1 */     
 61         ED 0xFD000038, 0x01090405 /* DBTR2 */     
 62         ED 0xFD00003C, 0x00000002 /* DBTR3 */     
 63         ED 0xFD000008, 0x00000005 /* DBKIND */    
 64         ED 0xFD000040, 0x00000001 /* DBRFPDN0     
 65         ED 0xFD000040, 0x00000000 /* DBRFPDN0     
 66         ED 0xFD000018, 0x00000001 /* DBCKECNT     
 67                                                   
 68         mov     #100,r0                           
 69 WAIT_400NS:                                       
 70         dt      r0                                
 71         bf      WAIT_400NS                        
 72                                                   
 73         ED 0xFD000014, 0x00000002 /* DBCMDCNT     
 74         ED 0xFD000060, 0x00020000 /* DBMRCNT (    
 75         ED 0xFD000060, 0x00030000 /* DBMRCNT (    
 76         ED 0xFD000060, 0x00010004 /* DBMRCNT (    
 77         ED 0xFD000060, 0x00000532 /* DBMRCNT (    
 78         ED 0xFD000014, 0x00000002 /* DBCMDCNT     
 79         ED 0xFD000014, 0x00000004 /* DBCMDCNT     
 80         ED 0xFD000014, 0x00000004 /* DBCMDCNT     
 81         ED 0xFD000060, 0x00000432 /* DBMRCNT (    
 82         ED 0xFD000060, 0x000103c0 /* DBMRCNT (    
 83         ED 0xFD000060, 0x00010040 /* DBMRCNT (    
 84                                                   
 85         mov     #100,r0                           
 86 WAIT_400NS_2:                                     
 87         dt      r0                                
 88         bf      WAIT_400NS_2                      
 89                                                   
 90         ED 0xFD000010, 0x00000001 /* DBEN */      
 91         ED 0xFD000044, 0x0000050f /* DBRFPDN1     
 92         ED 0xFD000048, 0x236800e6 /* DBRFPDN2     
 93                                                   
 94         mov.l   DUMMY,r0                          
 95         mov.l   @r0, r1 /* force single dummy     
 96                                                   
 97         ED 0xFD000014, 0x00000002 /* DBCMDCNT     
 98         ED 0xFD000014, 0x00000004 /* DBCMDCNT     
 99         ED 0xFD000108, 0x00000080 /* DBPDCNT0     
100         ED 0xFD000040, 0x00010000 /* DBRFPDN0     
101                                                   
102         rts                                       
103          nop                                      
104                                                   
105         .balign 4                                 
106 DUMMY:  .long   0xac400000                        
107                                                   
108 ENTRY(ecovec24_sdram_leave_end)                   
                                                      

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