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

TOMOYO Linux Cross Reference
Linux/sound/soc/qcom/qdsp6/q6prm-clocks.c

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /sound/soc/qcom/qdsp6/q6prm-clocks.c (Version linux-6.11.5) and /sound/soc/qcom/qdsp6/q6prm-clocks.c (Version linux-5.6.19)


  1 // SPDX-License-Identifier: GPL-2.0                 1 
  2 // Copyright (c) 2021, Linaro Limited             
  3                                                   
  4 #include <dt-bindings/sound/qcom,q6dsp-lpass-p    
  5 #include <linux/err.h>                            
  6 #include <linux/init.h>                           
  7 #include <linux/clk-provider.h>                   
  8 #include <linux/module.h>                         
  9 #include <linux/device.h>                         
 10 #include <linux/platform_device.h>                
 11 #include "q6dsp-lpass-clocks.h"                   
 12 #include "q6prm.h"                                
 13                                                   
 14 #define Q6PRM_CLK(id) {                           
 15                 .clk_id = id,                     
 16                 .q6dsp_clk_id   = Q6PRM_##id,     
 17                 .name = #id,                      
 18                 .rate = 19200000,                 
 19         }                                         
 20                                                   
 21 static const struct q6dsp_clk_init q6prm_clks[    
 22         Q6PRM_CLK(LPASS_CLK_ID_PRI_MI2S_IBIT),    
 23         Q6PRM_CLK(LPASS_CLK_ID_PRI_MI2S_EBIT),    
 24         Q6PRM_CLK(LPASS_CLK_ID_SEC_MI2S_IBIT),    
 25         Q6PRM_CLK(LPASS_CLK_ID_SEC_MI2S_EBIT),    
 26         Q6PRM_CLK(LPASS_CLK_ID_TER_MI2S_IBIT),    
 27         Q6PRM_CLK(LPASS_CLK_ID_TER_MI2S_EBIT),    
 28         Q6PRM_CLK(LPASS_CLK_ID_QUAD_MI2S_IBIT)    
 29         Q6PRM_CLK(LPASS_CLK_ID_QUAD_MI2S_EBIT)    
 30         Q6PRM_CLK(LPASS_CLK_ID_SPEAKER_I2S_IBI    
 31         Q6PRM_CLK(LPASS_CLK_ID_SPEAKER_I2S_EBI    
 32         Q6PRM_CLK(LPASS_CLK_ID_SPEAKER_I2S_OSR    
 33         Q6PRM_CLK(LPASS_CLK_ID_QUI_MI2S_IBIT),    
 34         Q6PRM_CLK(LPASS_CLK_ID_QUI_MI2S_EBIT),    
 35         Q6PRM_CLK(LPASS_CLK_ID_SEN_MI2S_IBIT),    
 36         Q6PRM_CLK(LPASS_CLK_ID_SEN_MI2S_EBIT),    
 37         Q6PRM_CLK(LPASS_CLK_ID_INT0_MI2S_IBIT)    
 38         Q6PRM_CLK(LPASS_CLK_ID_INT1_MI2S_IBIT)    
 39         Q6PRM_CLK(LPASS_CLK_ID_INT2_MI2S_IBIT)    
 40         Q6PRM_CLK(LPASS_CLK_ID_INT3_MI2S_IBIT)    
 41         Q6PRM_CLK(LPASS_CLK_ID_INT4_MI2S_IBIT)    
 42         Q6PRM_CLK(LPASS_CLK_ID_INT5_MI2S_IBIT)    
 43         Q6PRM_CLK(LPASS_CLK_ID_INT6_MI2S_IBIT)    
 44         Q6PRM_CLK(LPASS_CLK_ID_QUI_MI2S_OSR),     
 45         Q6PRM_CLK(LPASS_CLK_ID_WSA_CORE_MCLK),    
 46         Q6PRM_CLK(LPASS_CLK_ID_WSA_CORE_NPL_MC    
 47         Q6PRM_CLK(LPASS_CLK_ID_VA_CORE_MCLK),     
 48         Q6PRM_CLK(LPASS_CLK_ID_TX_CORE_MCLK),     
 49         Q6PRM_CLK(LPASS_CLK_ID_TX_CORE_NPL_MCL    
 50         Q6PRM_CLK(LPASS_CLK_ID_RX_CORE_MCLK),     
 51         Q6PRM_CLK(LPASS_CLK_ID_RX_CORE_NPL_MCL    
 52         Q6PRM_CLK(LPASS_CLK_ID_VA_CORE_2X_MCLK    
 53         Q6PRM_CLK(LPASS_CLK_ID_WSA2_CORE_MCLK)    
 54         Q6PRM_CLK(LPASS_CLK_ID_WSA2_CORE_2X_MC    
 55         Q6PRM_CLK(LPASS_CLK_ID_RX_CORE_TX_MCLK    
 56         Q6PRM_CLK(LPASS_CLK_ID_RX_CORE_TX_2X_M    
 57         Q6PRM_CLK(LPASS_CLK_ID_WSA_CORE_TX_MCL    
 58         Q6PRM_CLK(LPASS_CLK_ID_WSA_CORE_TX_2X_    
 59         Q6PRM_CLK(LPASS_CLK_ID_WSA2_CORE_TX_MC    
 60         Q6PRM_CLK(LPASS_CLK_ID_WSA2_CORE_TX_2X    
 61         Q6PRM_CLK(LPASS_CLK_ID_RX_CORE_MCLK2_2    
 62         Q6DSP_VOTE_CLK(LPASS_HW_MACRO_VOTE, Q6    
 63                        "LPASS_HW_MACRO"),         
 64         Q6DSP_VOTE_CLK(LPASS_HW_DCODEC_VOTE, Q    
 65                        "LPASS_HW_DCODEC"),        
 66 };                                                
 67                                                   
 68 static const struct q6dsp_clk_desc q6dsp_clk_q    
 69         .clks = q6prm_clks,                       
 70         .num_clks = ARRAY_SIZE(q6prm_clks),       
 71         .lpass_set_clk = q6prm_set_lpass_clock    
 72         .lpass_vote_clk = q6prm_vote_lpass_cor    
 73         .lpass_unvote_clk = q6prm_unvote_lpass    
 74 };                                                
 75                                                   
 76 #ifdef CONFIG_OF                                  
 77 static const struct of_device_id q6prm_clock_d    
 78         { .compatible = "qcom,q6prm-lpass-cloc    
 79         {},                                       
 80 };                                                
 81 MODULE_DEVICE_TABLE(of, q6prm_clock_device_id)    
 82 #endif                                            
 83                                                   
 84 static struct platform_driver q6prm_clock_plat    
 85         .driver = {                               
 86                 .name = "q6prm-lpass-clock",      
 87                 .of_match_table = of_match_ptr    
 88         },                                        
 89         .probe = q6dsp_clock_dev_probe,           
 90 };                                                
 91 module_platform_driver(q6prm_clock_platform_dr    
 92                                                   
 93 MODULE_DESCRIPTION("Q6 Proxy Resource Manager     
 94 MODULE_LICENSE("GPL");                            
 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