Lines Matching full:scr

80 	u32 scr;  in mxs_saif_set_clk()  local
101 scr = __raw_readl(master_saif->base + SAIF_CTRL); in mxs_saif_set_clk()
102 scr &= ~BM_SAIF_CTRL_BITCLK_MULT_RATE; in mxs_saif_set_clk()
103 scr &= ~BM_SAIF_CTRL_BITCLK_BASE_RATE; in mxs_saif_set_clk()
126 scr &= ~BM_SAIF_CTRL_BITCLK_BASE_RATE; in mxs_saif_set_clk()
133 scr |= BM_SAIF_CTRL_BITCLK_BASE_RATE; in mxs_saif_set_clk()
143 scr &= ~BM_SAIF_CTRL_BITCLK_BASE_RATE; in mxs_saif_set_clk()
154 __raw_writel(scr, master_saif->base + SAIF_CTRL); in mxs_saif_set_clk()
166 scr |= BF_SAIF_CTRL_BITCLK_MULT_RATE(4); in mxs_saif_set_clk()
169 scr |= BF_SAIF_CTRL_BITCLK_MULT_RATE(3); in mxs_saif_set_clk()
172 scr |= BF_SAIF_CTRL_BITCLK_MULT_RATE(2); in mxs_saif_set_clk()
175 scr |= BF_SAIF_CTRL_BITCLK_MULT_RATE(1); in mxs_saif_set_clk()
178 scr |= BF_SAIF_CTRL_BITCLK_MULT_RATE(0); in mxs_saif_set_clk()
181 scr |= BF_SAIF_CTRL_BITCLK_MULT_RATE(3); in mxs_saif_set_clk()
184 scr |= BF_SAIF_CTRL_BITCLK_MULT_RATE(2); in mxs_saif_set_clk()
187 scr |= BF_SAIF_CTRL_BITCLK_MULT_RATE(1); in mxs_saif_set_clk()
190 scr |= BF_SAIF_CTRL_BITCLK_MULT_RATE(0); in mxs_saif_set_clk()
196 __raw_writel(scr, master_saif->base + SAIF_CTRL); in mxs_saif_set_clk()
291 u32 scr, stat; in mxs_saif_set_dai_fmt() local
314 scr = 0; in mxs_saif_set_dai_fmt()
320 scr |= BM_SAIF_CTRL_DELAY; in mxs_saif_set_dai_fmt()
321 scr &= ~BM_SAIF_CTRL_LRCLK_POLARITY; in mxs_saif_set_dai_fmt()
325 scr &= ~BM_SAIF_CTRL_DELAY; in mxs_saif_set_dai_fmt()
326 scr &= ~BM_SAIF_CTRL_LRCLK_POLARITY; in mxs_saif_set_dai_fmt()
327 scr &= ~BM_SAIF_CTRL_JUSTIFY; in mxs_saif_set_dai_fmt()
336 scr |= BM_SAIF_CTRL_BITCLK_EDGE; in mxs_saif_set_dai_fmt()
337 scr |= BM_SAIF_CTRL_LRCLK_POLARITY; in mxs_saif_set_dai_fmt()
340 scr |= BM_SAIF_CTRL_BITCLK_EDGE; in mxs_saif_set_dai_fmt()
341 scr &= ~BM_SAIF_CTRL_LRCLK_POLARITY; in mxs_saif_set_dai_fmt()
344 scr &= ~BM_SAIF_CTRL_BITCLK_EDGE; in mxs_saif_set_dai_fmt()
345 scr |= BM_SAIF_CTRL_LRCLK_POLARITY; in mxs_saif_set_dai_fmt()
348 scr &= ~BM_SAIF_CTRL_BITCLK_EDGE; in mxs_saif_set_dai_fmt()
349 scr &= ~BM_SAIF_CTRL_LRCLK_POLARITY; in mxs_saif_set_dai_fmt()
363 scr &= ~BM_SAIF_CTRL_SLAVE_MODE; in mxs_saif_set_dai_fmt()
365 scr |= BM_SAIF_CTRL_SLAVE_MODE; in mxs_saif_set_dai_fmt()
367 __raw_writel(scr | scr0, saif->base + SAIF_CTRL); in mxs_saif_set_dai_fmt()
419 u32 scr, stat; in mxs_saif_hw_params() local
471 scr = __raw_readl(saif->base + SAIF_CTRL); in mxs_saif_hw_params()
473 scr &= ~BM_SAIF_CTRL_WORD_LENGTH; in mxs_saif_hw_params()
474 scr &= ~BM_SAIF_CTRL_BITCLK_48XFS_ENABLE; in mxs_saif_hw_params()
477 scr |= BF_SAIF_CTRL_WORD_LENGTH(0); in mxs_saif_hw_params()
480 scr |= BF_SAIF_CTRL_WORD_LENGTH(4); in mxs_saif_hw_params()
481 scr |= BM_SAIF_CTRL_BITCLK_48XFS_ENABLE; in mxs_saif_hw_params()
484 scr |= BF_SAIF_CTRL_WORD_LENGTH(8); in mxs_saif_hw_params()
485 scr |= BM_SAIF_CTRL_BITCLK_48XFS_ENABLE; in mxs_saif_hw_params()
494 scr &= ~BM_SAIF_CTRL_READ_MODE; in mxs_saif_hw_params()
497 scr |= BM_SAIF_CTRL_READ_MODE; in mxs_saif_hw_params()
500 __raw_writel(scr, saif->base + SAIF_CTRL); in mxs_saif_hw_params()