Lines Matching refs:ssp_index

65 		.ssp_index = DT_PROP(node_id, ssp_index),		\
101 static struct dai_intel_ssp_plat_data *ssp_get_device_instance(uint32_t ssp_index) in ssp_get_device_instance() argument
107 if (ssp_plat_data_table[i].ssp_index == ssp_index) { in ssp_get_device_instance()
710 static void dai_ssp_mn_release_bclk(struct dai_intel_ssp *dp, uint32_t ssp_index) in dai_ssp_mn_release_bclk() argument
717 mp->bclk_sources[ssp_index] = MN_BCLK_SOURCE_NONE; in dai_ssp_mn_release_bclk()
728 static void dai_ssp_mn_reset_bclk_divider(struct dai_intel_ssp *dp, uint32_t ssp_index) in dai_ssp_mn_reset_bclk_divider() argument
735 sys_write32(1, dai_mn_base(dp) + MN_MDIV_M_VAL(ssp_index)); in dai_ssp_mn_reset_bclk_divider()
736 sys_write32(1, dai_mn_base(dp) + MN_MDIV_N_VAL(ssp_index)); in dai_ssp_mn_reset_bclk_divider()
754 uint32_t ssp_index) in dai_ssp_pm_runtime_dis_ssp_clk_gating() argument
760 (ssp_index < CONFIG_DAI_INTEL_SSP_NUM_BASE ? in dai_ssp_pm_runtime_dis_ssp_clk_gating()
761 SHIM_CLKCTL_I2SFDCGB(ssp_index) : in dai_ssp_pm_runtime_dis_ssp_clk_gating()
762 SHIM_CLKCTL_I2SEFDCGB(ssp_index - in dai_ssp_pm_runtime_dis_ssp_clk_gating()
767 LOG_INF("ssp_index %d CLKCTL %08x", ssp_index, shim_reg); in dai_ssp_pm_runtime_dis_ssp_clk_gating()
772 uint32_t ssp_index) in dai_ssp_pm_runtime_en_ssp_clk_gating() argument
778 ~(ssp_index < CONFIG_DAI_INTEL_SSP_NUM_BASE ? in dai_ssp_pm_runtime_en_ssp_clk_gating()
779 SHIM_CLKCTL_I2SFDCGB(ssp_index) : in dai_ssp_pm_runtime_en_ssp_clk_gating()
780 SHIM_CLKCTL_I2SEFDCGB(ssp_index - in dai_ssp_pm_runtime_en_ssp_clk_gating()
785 LOG_INF("ssp_index %d CLKCTL %08x", ssp_index, shim_reg); in dai_ssp_pm_runtime_en_ssp_clk_gating()
789 static void dai_ssp_pm_runtime_en_ssp_power(struct dai_intel_ssp *dp, uint32_t ssp_index) in dai_ssp_pm_runtime_en_ssp_power() argument
794 LOG_INF("SSP%d", ssp_index); in dai_ssp_pm_runtime_en_ssp_power()
796 sys_write32(sys_read32(dai_ip_base(dp) + I2SLCTL_OFFSET) | I2SLCTL_SPA(ssp_index), in dai_ssp_pm_runtime_en_ssp_power()
801 I2SLCTL_CPA(ssp_index), I2SLCTL_CPA(ssp_index), in dai_ssp_pm_runtime_en_ssp_power()
805 I2SLCTL_SPA(ssp_index), in dai_ssp_pm_runtime_en_ssp_power()
809 I2SLCTL_CPA(ssp_index), I2SLCTL_CPA(ssp_index), in dai_ssp_pm_runtime_en_ssp_power()
815 LOG_WRN("SSP%d: timeout", ssp_index); in dai_ssp_pm_runtime_en_ssp_power()
819 ARG_UNUSED(ssp_index); in dai_ssp_pm_runtime_en_ssp_power()
823 static void dai_ssp_pm_runtime_dis_ssp_power(struct dai_intel_ssp *dp, uint32_t ssp_index) in dai_ssp_pm_runtime_dis_ssp_power() argument
828 LOG_INF("SSP%d", ssp_index); in dai_ssp_pm_runtime_dis_ssp_power()
830 sys_write32(sys_read32(dai_ip_base(dp) + I2SLCTL_OFFSET) & (~I2SLCTL_SPA(ssp_index)), in dai_ssp_pm_runtime_dis_ssp_power()
835 I2SLCTL_CPA(ssp_index), 0, in dai_ssp_pm_runtime_dis_ssp_power()
839 sys_write32(sys_read32(dai_hdamlssp_base(dp) + I2SLCTL_OFFSET) & (~I2SLCTL_SPA(ssp_index)), in dai_ssp_pm_runtime_dis_ssp_power()
844 I2SLCTL_CPA(ssp_index), 0, in dai_ssp_pm_runtime_dis_ssp_power()
850 LOG_WRN("SSP%d: timeout", ssp_index); in dai_ssp_pm_runtime_dis_ssp_power()
854 ARG_UNUSED(ssp_index); in dai_ssp_pm_runtime_dis_ssp_power()
859 const struct dai_config *cfg, uint32_t ssp_index, const void *spec_config) in dai_ssp_program_channel_map() argument
868 uint32_t reg_add = dai_ip_base(dp) + 0x1000 * ssp_index + PCMS0CM_OFFSET; in dai_ssp_program_channel_map()
872 uint32_t reg_add = dai_ip_base(dp) + 0x1000 * ssp_index + PCMS1CM_OFFSET; in dai_ssp_program_channel_map()
893 uint32_t reg_add = dai_ip_base(dp) + 0x1000 * ssp_index + in dai_ssp_program_channel_map()
909 uint32_t reg_add = dai_ip_base(dp) + 0x1000 * ssp_index + in dai_ssp_program_channel_map()
918 ARG_UNUSED(ssp_index); in dai_ssp_program_channel_map()
1233 dai_ssp_mn_release_bclk(dp, ssp_plat_data->ssp_index); in dai_ssp_bclk_disable_unprepare()
1791 LOG_INF("SSE set for SSP%d", ssp_plat_data->ssp_index); in dai_ssp_set_config_tplg()
1795 ssp_plat_data->ssp_index); in dai_ssp_set_config_tplg()
2517 dai_ssp_program_channel_map(dp, cfg, ssp_plat_data->ssp_index, bespoke_cfg); in dai_ssp_config_set()
2554 dai_ssp_pm_runtime_en_ssp_power(dp, ssp->ssp_index); in ssp_acquire_ip()
2557 dai_ssp_pm_runtime_dis_ssp_clk_gating(dp, ssp->ssp_index); in ssp_acquire_ip()
2586 LOG_INF("%s SSE clear SSP%d", __func__, ssp->ssp_index); in ssp_release_ip()
2599 dai_ssp_pm_runtime_en_ssp_clk_gating(dp, ssp->ssp_index); in ssp_release_ip()
2605 dai_ssp_pm_runtime_dis_ssp_power(dp, ssp->ssp_index); in ssp_release_ip()
2622 LOG_ERR("SSP%d: alloc failed", ssp_plat_data->ssp_index); in dai_ssp_probe()
2632 dai_ssp_mn_reset_bclk_divider(dp, ssp_plat_data->ssp_index); in dai_ssp_probe()
2676 dp->ssp_plat_data = ssp_get_device_instance(dp->ssp_index); in dai_intel_ssp_init_device()
2731 .ssp_index = DT_PROP(DT_INST_PARENT(n), ssp_index), \