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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-rockchip/pm.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/mach-rockchip/pm.h (Version linux-6.12-rc7) and /arch/alpha/mach-rockchip/pm.h (Version linux-6.5.13)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 
  2 /*                                                
  3  * Copyright (c) 2014, Fuzhou Rockchip Electro    
  4  * Author: Tony Xie <tony.xie@rock-chips.com>     
  5  */                                               
  6                                                   
  7 #ifndef __MACH_ROCKCHIP_PM_H                      
  8 #define __MACH_ROCKCHIP_PM_H                      
  9                                                   
 10 extern unsigned long rkpm_bootdata_cpusp;         
 11 extern unsigned long rkpm_bootdata_cpu_code;      
 12 extern unsigned long rkpm_bootdata_l2ctlr_f;      
 13 extern unsigned long rkpm_bootdata_l2ctlr;        
 14 extern unsigned long rkpm_bootdata_ddr_code;      
 15 extern unsigned long rkpm_bootdata_ddr_data;      
 16 extern unsigned long rk3288_bootram_sz;           
 17                                                   
 18 void rockchip_slp_cpu_resume(void);               
 19 #ifdef CONFIG_PM_SLEEP                            
 20 void __init rockchip_suspend_init(void);          
 21 #else                                             
 22 static inline void rockchip_suspend_init(void)    
 23 {                                                 
 24 }                                                 
 25 #endif                                            
 26                                                   
 27 /****** following is rk3288 defined **********    
 28 #define RK3288_PMU_WAKEUP_CFG0          0x00      
 29 #define RK3288_PMU_WAKEUP_CFG1          0x04      
 30 #define RK3288_PMU_PWRMODE_CON          0x18      
 31 #define RK3288_PMU_OSC_CNT              0x20      
 32 #define RK3288_PMU_PLL_CNT              0x24      
 33 #define RK3288_PMU_STABL_CNT            0x28      
 34 #define RK3288_PMU_DDR0IO_PWRON_CNT     0x2c      
 35 #define RK3288_PMU_DDR1IO_PWRON_CNT     0x30      
 36 #define RK3288_PMU_CORE_PWRDWN_CNT      0x34      
 37 #define RK3288_PMU_CORE_PWRUP_CNT       0x38      
 38 #define RK3288_PMU_GPU_PWRDWN_CNT       0x3c      
 39 #define RK3288_PMU_GPU_PWRUP_CNT        0x40      
 40 #define RK3288_PMU_WAKEUP_RST_CLR_CNT   0x44      
 41 #define RK3288_PMU_PWRMODE_CON1         0x90      
 42                                                   
 43 #define RK3288_SGRF_SOC_CON0            (0x000    
 44 #define RK3288_SGRF_FAST_BOOT_ADDR      (0x012    
 45 #define SGRF_PCLK_WDT_GATE              BIT(6)    
 46 #define SGRF_PCLK_WDT_GATE_WRITE        BIT(22    
 47 #define SGRF_FAST_BOOT_EN               BIT(8)    
 48 #define SGRF_FAST_BOOT_EN_WRITE         BIT(24    
 49                                                   
 50 #define RK3288_SGRF_CPU_CON0            (0x40)    
 51 #define SGRF_DAPDEVICEEN                BIT(0)    
 52 #define SGRF_DAPDEVICEEN_WRITE          BIT(16    
 53                                                   
 54 /* PMU_WAKEUP_CFG1 bits */                        
 55 #define PMU_ARMINT_WAKEUP_EN            BIT(0)    
 56 #define PMU_GPIOINT_WAKEUP_EN           BIT(3)    
 57                                                   
 58 enum rk3288_pwr_mode_con {                        
 59         PMU_PWR_MODE_EN = 0,                      
 60         PMU_CLK_CORE_SRC_GATE_EN,                 
 61         PMU_GLOBAL_INT_DISABLE,                   
 62         PMU_L2FLUSH_EN,                           
 63         PMU_BUS_PD_EN,                            
 64         PMU_A12_0_PD_EN,                          
 65         PMU_SCU_EN,                               
 66         PMU_PLL_PD_EN,                            
 67         PMU_CHIP_PD_EN, /* POWER OFF PIN ENABL    
 68         PMU_PWROFF_COMB,                          
 69         PMU_ALIVE_USE_LF,                         
 70         PMU_PMU_USE_LF,                           
 71         PMU_OSC_24M_DIS,                          
 72         PMU_INPUT_CLAMP_EN,                       
 73         PMU_WAKEUP_RESET_EN,                      
 74         PMU_SREF0_ENTER_EN,                       
 75         PMU_SREF1_ENTER_EN,                       
 76         PMU_DDR0IO_RET_EN,                        
 77         PMU_DDR1IO_RET_EN,                        
 78         PMU_DDR0_GATING_EN,                       
 79         PMU_DDR1_GATING_EN,                       
 80         PMU_DDR0IO_RET_DE_REQ,                    
 81         PMU_DDR1IO_RET_DE_REQ                     
 82 };                                                
 83                                                   
 84 enum rk3288_pwr_mode_con1 {                       
 85         PMU_CLR_BUS = 0,                          
 86         PMU_CLR_CORE,                             
 87         PMU_CLR_CPUP,                             
 88         PMU_CLR_ALIVE,                            
 89         PMU_CLR_DMA,                              
 90         PMU_CLR_PERI,                             
 91         PMU_CLR_GPU,                              
 92         PMU_CLR_VIDEO,                            
 93         PMU_CLR_HEVC,                             
 94         PMU_CLR_VIO,                              
 95 };                                                
 96                                                   
 97 #endif /* __MACH_ROCKCHIP_PM_H */                 
 98                                                   

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