Lines Matching refs:dai_base
29 #define dai_base(dai) dai->ssp_plat_data->base macro
118 uint32_t dest = dai_base(dp) + reg; in dai_ssp_update_bits()
120 LOG_DBG("base %x, reg %x, mask %x, value %x", dai_base(dp), reg, mask, val); in dai_ssp_update_bits()
934 ret = dai_ssp_poll_for_register_delay(dai_base(dp) + SSMODyCS(dp->tdm_slot_group), in dai_ssp_empty_tx_fifo()
938 ret |= dai_ssp_poll_for_register_delay(dai_base(dp) + SSMODyCS(dp->tdm_slot_group), in dai_ssp_empty_tx_fifo()
943 ret = dai_ssp_poll_for_register_delay(dai_base(dp) + SSSR, SSSR_TNF, SSSR_TNF, in dai_ssp_empty_tx_fifo()
945 ret |= dai_ssp_poll_for_register_delay(dai_base(dp) + SSCR3, SSCR3_TFL_MASK, 0, in dai_ssp_empty_tx_fifo()
954 sssr = sys_read32(dai_base(dp) + SSSR); in dai_ssp_empty_tx_fifo()
958 sys_write32(sssr, dai_base(dp) + SSSR); in dai_ssp_empty_tx_fifo()
968 sssr = sys_read32(dai_base(dp) + SSSR); in ssp_empty_rx_fifo_on_start()
974 sys_read32(dai_base(dp) + SSMIDyD(idx)); in ssp_empty_rx_fifo_on_start()
981 sssr = sys_read32(dai_base(dp) + SSSR); in ssp_empty_rx_fifo_on_start()
985 while ((sys_read32(dai_base(dp) + SSMIDyCS(idx)) & SSMIDyCS_RNE) && retry--) { in ssp_empty_rx_fifo_on_start()
986 uint32_t entries = SSMIDyCS_RFL_VAL(sys_read32(dai_base(dp) + in ssp_empty_rx_fifo_on_start()
991 sys_read32(dai_base(dp) + SSMIDyD(idx)); in ssp_empty_rx_fifo_on_start()
994 sssr = sys_read32(dai_base(dp) + SSSR); in ssp_empty_rx_fifo_on_start()
1008 sssr = sys_read32(dai_base(dp) + SSSR); in ssp_empty_rx_fifo_on_stop()
1010 entries[0] = SSMIDyCS_RFL_VAL(sys_read32(dai_base(dp) + SSMIDyCS(dp->tdm_slot_group))); in ssp_empty_rx_fifo_on_stop()
1012 while ((sys_read32(dai_base(dp) + SSMIDyCS(dp->tdm_slot_group)) & in ssp_empty_rx_fifo_on_stop()
1017 entries[1] = SSMIDyCS_RFL_VAL(sys_read32(dai_base(dp) + in ssp_empty_rx_fifo_on_stop()
1019 sssr = sys_read32(dai_base(dp) + SSSR); in ssp_empty_rx_fifo_on_stop()
1020 ssmidycs = sys_read32(dai_base(dp) + SSMIDyCS(dp->tdm_slot_group)); in ssp_empty_rx_fifo_on_stop()
1035 sys_read32(dai_base(dp) + SSMIDyD(dp->tdm_slot_group)); in ssp_empty_rx_fifo_on_stop()
1038 sssr = sys_read32(dai_base(dp) + SSSR); in ssp_empty_rx_fifo_on_stop()
1051 sssr = sys_read32(dai_base(dp) + SSSR); in ssp_empty_rx_fifo_on_start()
1056 sys_read32(dai_base(dp) + SSDR); in ssp_empty_rx_fifo_on_start()
1062 sssr = sys_read32(dai_base(dp) + SSSR); in ssp_empty_rx_fifo_on_start()
1066 uint32_t entries = SSCR3_RFL_VAL(sys_read32(dai_base(dp) + SSCR3)); in ssp_empty_rx_fifo_on_start()
1070 sys_read32(dai_base(dp) + SSDR); in ssp_empty_rx_fifo_on_start()
1073 sssr = sys_read32(dai_base(dp) + SSSR); in ssp_empty_rx_fifo_on_start()
1086 sssr = sys_read32(dai_base(dp) + SSSR); in ssp_empty_rx_fifo_on_stop()
1087 entries[0] = SSCR3_RFL_VAL(sys_read32(dai_base(dp) + SSCR3)); in ssp_empty_rx_fifo_on_stop()
1093 entries[1] = SSCR3_RFL_VAL(sys_read32(dai_base(dp) + SSCR3)); in ssp_empty_rx_fifo_on_stop()
1094 sssr = sys_read32(dai_base(dp) + SSSR); in ssp_empty_rx_fifo_on_stop()
1109 sys_read32(dai_base(dp) + SSDR); in ssp_empty_rx_fifo_on_stop()
1113 sssr = sys_read32(dai_base(dp) + SSSR); in ssp_empty_rx_fifo_on_stop()
1171 sscr0 = sys_read32(dai_base(dp) + SSCR0); in dai_ssp_bclk_prepare_enable()
1214 sys_write32(sscr0, dai_base(dp) + SSCR0); in dai_ssp_bclk_prepare_enable()
1719 sys_write32(sscr0, dai_base(dp) + SSCR0); in dai_ssp_set_config_tplg()
1720 sys_write32(sscr1, dai_base(dp) + SSCR1); in dai_ssp_set_config_tplg()
1721 sys_write32(sscr2, dai_base(dp) + SSCR2); in dai_ssp_set_config_tplg()
1722 sys_write32(sscr3, dai_base(dp) + SSCR3); in dai_ssp_set_config_tplg()
1723 sys_write32(sspsp, dai_base(dp) + SSPSP); in dai_ssp_set_config_tplg()
1724 sys_write32(sspsp2, dai_base(dp) + SSPSP2); in dai_ssp_set_config_tplg()
1725 sys_write32(ssioc, dai_base(dp) + SSIOC); in dai_ssp_set_config_tplg()
1726 sys_write32(ssto, dai_base(dp) + SSTO); in dai_ssp_set_config_tplg()
1730 sys_write64(sstsa, dai_base(dp) + SSMODyTSA(idx)); in dai_ssp_set_config_tplg()
1734 sys_write64(ssrsa, dai_base(dp) + SSMIDyTSA(idx)); in dai_ssp_set_config_tplg()
1737 sys_write32(sstsa, dai_base(dp) + SSTSA); in dai_ssp_set_config_tplg()
1738 sys_write32(ssrsa, dai_base(dp) + SSRSA); in dai_ssp_set_config_tplg()
2087 sys_write32(ssc0, dai_base(dp) + SSCR0); in dai_ssp_set_reg_config()
2088 sys_write32(regs->ssc2 & ~SSCR2_SFRMEN, dai_base(dp) + SSCR2); /* hardware specific flow */ in dai_ssp_set_reg_config()
2089 sys_write32(sscr1, dai_base(dp) + SSCR1); in dai_ssp_set_reg_config()
2090 sys_write32(regs->ssc2 | SSCR2_SFRMEN, dai_base(dp) + SSCR2); /* hardware specific flow */ in dai_ssp_set_reg_config()
2091 sys_write32(regs->ssc2, dai_base(dp) + SSCR2); in dai_ssp_set_reg_config()
2092 sys_write32(regs->sspsp, dai_base(dp) + SSPSP); in dai_ssp_set_reg_config()
2093 sys_write32(regs->sspsp2, dai_base(dp) + SSPSP2); in dai_ssp_set_reg_config()
2094 sys_write32(regs->ssioc, dai_base(dp) + SSIOC); in dai_ssp_set_reg_config()
2095 sys_write32(regs->sscto, dai_base(dp) + SSTO); in dai_ssp_set_reg_config()
2098 sys_write64(regs->ssmidytsa[idx], dai_base(dp) + SSMIDyTSA(idx)); in dai_ssp_set_reg_config()
2102 sys_write64(regs->ssmodytsa[idx], dai_base(dp) + SSMODyTSA(idx)); in dai_ssp_set_reg_config()
2149 sys_write32(ssc0, dai_base(dp) + SSCR0); in dai_ssp_set_reg_config()
2150 sys_write32(regs->ssc2 & ~SSCR2_SFRMEN, dai_base(dp) + SSCR2); /* hardware specific flow */ in dai_ssp_set_reg_config()
2151 sys_write32(sscr1, dai_base(dp) + SSCR1); in dai_ssp_set_reg_config()
2152 sys_write32(regs->ssc2 | SSCR2_SFRMEN, dai_base(dp) + SSCR2); /* hardware specific flow */ in dai_ssp_set_reg_config()
2153 sys_write32(regs->ssc2, dai_base(dp) + SSCR2); in dai_ssp_set_reg_config()
2154 sys_write32(regs->ssc3, dai_base(dp) + SSCR3); in dai_ssp_set_reg_config()
2155 sys_write32(regs->sspsp, dai_base(dp) + SSPSP); in dai_ssp_set_reg_config()
2156 sys_write32(regs->sspsp2, dai_base(dp) + SSPSP2); in dai_ssp_set_reg_config()
2157 sys_write32(regs->ssioc, dai_base(dp) + SSIOC); in dai_ssp_set_reg_config()
2158 sys_write32(regs->sscto, dai_base(dp) + SSTO); in dai_ssp_set_reg_config()
2159 sys_write32(sstsa, dai_base(dp) + SSTSA); in dai_ssp_set_reg_config()
2160 sys_write32(ssrsa, dai_base(dp) + SSRSA); in dai_ssp_set_reg_config()