Lines Matching refs:sscr0

169 	u32 sscr0 = pxa_ssp_read_reg(ssp, SSCR0);  in pxa_ssp_set_scr()  local
172 sscr0 &= ~0x0000ff00; in pxa_ssp_set_scr()
173 sscr0 |= ((div - 2)/2) << 8; /* 2..512 */ in pxa_ssp_set_scr()
175 sscr0 &= ~0x000fff00; in pxa_ssp_set_scr()
176 sscr0 |= (div - 1) << 8; /* 1..4096 */ in pxa_ssp_set_scr()
178 pxa_ssp_write_reg(ssp, SSCR0, sscr0); in pxa_ssp_set_scr()
190 u32 sscr0 = pxa_ssp_read_reg(ssp, SSCR0) & in pxa_ssp_set_dai_sysclk() local
214 sscr0 |= SSCR0_MOD; in pxa_ssp_set_dai_sysclk()
225 sscr0 |= SSCR0_ECS; in pxa_ssp_set_dai_sysclk()
229 sscr0 |= SSCR0_NCS | SSCR0_MOD; in pxa_ssp_set_dai_sysclk()
234 sscr0 |= SSCR0_ACS; in pxa_ssp_set_dai_sysclk()
244 pxa_ssp_write_reg(ssp, SSCR0, sscr0); in pxa_ssp_set_dai_sysclk()
323 u32 sscr0; in pxa_ssp_set_dai_tdm_slot() local
325 sscr0 = pxa_ssp_read_reg(ssp, SSCR0); in pxa_ssp_set_dai_tdm_slot()
326 sscr0 &= ~(SSCR0_MOD | SSCR0_SlotsPerFrm(8) | SSCR0_EDSS | SSCR0_DSS); in pxa_ssp_set_dai_tdm_slot()
330 sscr0 |= SSCR0_EDSS | SSCR0_DataSize(slot_width - 16); in pxa_ssp_set_dai_tdm_slot()
332 sscr0 |= SSCR0_DataSize(slot_width); in pxa_ssp_set_dai_tdm_slot()
336 sscr0 |= SSCR0_MOD; in pxa_ssp_set_dai_tdm_slot()
339 sscr0 |= SSCR0_SlotsPerFrm(slots); in pxa_ssp_set_dai_tdm_slot()
345 pxa_ssp_write_reg(ssp, SSCR0, sscr0); in pxa_ssp_set_dai_tdm_slot()
418 u32 sscr0, sscr1, sspsp, scfr; in pxa_ssp_configure_dai_fmt() local
425 sscr0 = pxa_ssp_read_reg(ssp, SSCR0) & in pxa_ssp_configure_dai_fmt()
466 sscr0 |= SSCR0_PSP; in pxa_ssp_configure_dai_fmt()
475 sscr0 |= SSCR0_MOD | SSCR0_PSP; in pxa_ssp_configure_dai_fmt()
483 pxa_ssp_write_reg(ssp, SSCR0, sscr0); in pxa_ssp_configure_dai_fmt()
538 u32 sscr0, sspsp; in pxa_ssp_hw_params() local
565 sscr0 = pxa_ssp_read_reg(ssp, SSCR0) & ~(SSCR0_DSS | SSCR0_EDSS); in pxa_ssp_hw_params()
571 sscr0 |= SSCR0_FPCKE; in pxa_ssp_hw_params()
572 sscr0 |= SSCR0_DataSize(16); in pxa_ssp_hw_params()
575 sscr0 |= (SSCR0_EDSS | SSCR0_DataSize(8)); in pxa_ssp_hw_params()
578 sscr0 |= (SSCR0_EDSS | SSCR0_DataSize(16)); in pxa_ssp_hw_params()
581 pxa_ssp_write_reg(ssp, SSCR0, sscr0); in pxa_ssp_hw_params()
583 if (sscr0 & SSCR0_ACS) { in pxa_ssp_hw_params()
614 } else if (sscr0 & SSCR0_ECS) { in pxa_ssp_hw_params()
665 if ((sscr0 & SSCR0_MOD) && !ttsa) { in pxa_ssp_hw_params()
678 uint32_t sscr0 = pxa_ssp_read_reg(ssp, SSCR0); in pxa_ssp_set_running_bit() local
683 if (value && (sscr0 & SSCR0_SSE)) in pxa_ssp_set_running_bit()
684 pxa_ssp_write_reg(ssp, SSCR0, sscr0 & ~SSCR0_SSE); in pxa_ssp_set_running_bit()
703 pxa_ssp_write_reg(ssp, SSCR0, sscr0 | SSCR0_SSE); in pxa_ssp_set_running_bit()