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


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