1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 3 #ifndef __Q6PRM_H__ 4 #define __Q6PRM_H__ 5 6 /* Clock ID for Primary I2S IBIT */ 7 #define Q6PRM_LPASS_CLK_ID_PRI_MI2S_IBIT 8 /* Clock ID for Primary I2S EBIT */ 9 #define Q6PRM_LPASS_CLK_ID_PRI_MI2S_EBIT 10 /* Clock ID for Secondary I2S IBIT */ 11 #define Q6PRM_LPASS_CLK_ID_SEC_MI2S_IBIT 12 /* Clock ID for Secondary I2S EBIT */ 13 #define Q6PRM_LPASS_CLK_ID_SEC_MI2S_EBIT 14 /* Clock ID for Tertiary I2S IBIT */ 15 #define Q6PRM_LPASS_CLK_ID_TER_MI2S_IBIT 16 /* Clock ID for Tertiary I2S EBIT */ 17 #define Q6PRM_LPASS_CLK_ID_TER_MI2S_EBIT 18 /* Clock ID for Quartnery I2S IBIT */ 19 #define Q6PRM_LPASS_CLK_ID_QUAD_MI2S_IBIT 20 /* Clock ID for Quartnery I2S EBIT */ 21 #define Q6PRM_LPASS_CLK_ID_QUAD_MI2S_EBIT 22 /* Clock ID for Speaker I2S IBIT */ 23 #define Q6PRM_LPASS_CLK_ID_SPEAKER_I2S_IBIT 24 /* Clock ID for Speaker I2S EBIT */ 25 #define Q6PRM_LPASS_CLK_ID_SPEAKER_I2S_EBIT 26 /* Clock ID for Speaker I2S OSR */ 27 #define Q6PRM_LPASS_CLK_ID_SPEAKER_I2S_OSR 28 29 /* Clock ID for QUINARY I2S IBIT */ 30 #define Q6PRM_LPASS_CLK_ID_QUI_MI2S_IBIT 31 /* Clock ID for QUINARY I2S EBIT */ 32 #define Q6PRM_LPASS_CLK_ID_QUI_MI2S_EBIT 33 /* Clock ID for SENARY I2S IBIT */ 34 #define Q6PRM_LPASS_CLK_ID_SEN_MI2S_IBIT 35 /* Clock ID for SENARY I2S EBIT */ 36 #define Q6PRM_LPASS_CLK_ID_SEN_MI2S_EBIT 37 /* Clock ID for INT0 I2S IBIT */ 38 #define Q6PRM_LPASS_CLK_ID_INT0_MI2S_IBIT 39 /* Clock ID for INT1 I2S IBIT */ 40 #define Q6PRM_LPASS_CLK_ID_INT1_MI2S_IBIT 41 /* Clock ID for INT2 I2S IBIT */ 42 #define Q6PRM_LPASS_CLK_ID_INT2_MI2S_IBIT 43 /* Clock ID for INT3 I2S IBIT */ 44 #define Q6PRM_LPASS_CLK_ID_INT3_MI2S_IBIT 45 /* Clock ID for INT4 I2S IBIT */ 46 #define Q6PRM_LPASS_CLK_ID_INT4_MI2S_IBIT 47 /* Clock ID for INT5 I2S IBIT */ 48 #define Q6PRM_LPASS_CLK_ID_INT5_MI2S_IBIT 49 /* Clock ID for INT6 I2S IBIT */ 50 #define Q6PRM_LPASS_CLK_ID_INT6_MI2S_IBIT 51 52 /* Clock ID for QUINARY MI2S OSR CLK */ 53 #define Q6PRM_LPASS_CLK_ID_QUI_MI2S_OSR 54 55 #define Q6PRM_LPASS_CLK_ID_WSA_CORE_MCLK 56 #define Q6PRM_LPASS_CLK_ID_WSA_CORE_NPL_MCLK 57 58 #define Q6PRM_LPASS_CLK_ID_VA_CORE_MCLK 59 #define Q6PRM_LPASS_CLK_ID_VA_CORE_2X_MCLK 60 61 #define Q6PRM_LPASS_CLK_ID_TX_CORE_MCLK 62 #define Q6PRM_LPASS_CLK_ID_TX_CORE_NPL_MCLK 63 64 #define Q6PRM_LPASS_CLK_ID_RX_CORE_MCLK 65 #define Q6PRM_LPASS_CLK_ID_RX_CORE_NPL_MCLK 66 67 /* Clock ID for MCLK for WSA2 core */ 68 #define Q6PRM_LPASS_CLK_ID_WSA2_CORE_MCLK 0x31 69 /* Clock ID for NPL MCLK for WSA2 core */ 70 #define Q6PRM_LPASS_CLK_ID_WSA2_CORE_2X_MCLK 0 71 /* Clock ID for RX Core TX MCLK */ 72 #define Q6PRM_LPASS_CLK_ID_RX_CORE_TX_MCLK 0x3 73 /* Clock ID for RX CORE TX 2X MCLK */ 74 #define Q6PRM_LPASS_CLK_ID_RX_CORE_TX_2X_MCLK 75 /* Clock ID for WSA core TX MCLK */ 76 #define Q6PRM_LPASS_CLK_ID_WSA_CORE_TX_MCLK 0x 77 /* Clock ID for WSA core TX 2X MCLK */ 78 #define Q6PRM_LPASS_CLK_ID_WSA_CORE_TX_2X_MCLK 79 /* Clock ID for WSA2 core TX MCLK */ 80 #define Q6PRM_LPASS_CLK_ID_WSA2_CORE_TX_MCLK 0 81 /* Clock ID for WSA2 core TX 2X MCLK */ 82 #define Q6PRM_LPASS_CLK_ID_WSA2_CORE_TX_2X_MCL 83 /* Clock ID for RX CORE MCLK2 2X MCLK */ 84 #define Q6PRM_LPASS_CLK_ID_RX_CORE_MCLK2_2X_MC 85 86 #define Q6PRM_LPASS_CLK_SRC_INTERNAL 1 87 #define Q6PRM_LPASS_CLK_ROOT_DEFAULT 0 88 #define Q6PRM_HW_CORE_ID_LPASS 1 89 #define Q6PRM_HW_CORE_ID_DCODEC 2 90 91 int q6prm_set_lpass_clock(struct device *dev, 92 int clk_root, unsign 93 int q6prm_vote_lpass_core_hw(struct device *de 94 const char *clien 95 int q6prm_unvote_lpass_core_hw(struct device * 96 uint32_t client 97 #endif /* __Q6PRM_H__ */ 98
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.