• Home
  • Raw
  • Download

Lines Matching refs:value

256 	u32 value, fci_id;  in audio_ssp_init_portregs()  local
261 value = readl(aio->cygaud->audio + aio->regs.i2s_stream_cfg); in audio_ssp_init_portregs()
262 value &= ~I2S_STREAM_CFG_MASK; in audio_ssp_init_portregs()
269 value |= aio->portnum << I2S_OUT_STREAM_CFG_GROUP_ID; in audio_ssp_init_portregs()
270 value |= aio->portnum; /* FCI ID is the port num */ in audio_ssp_init_portregs()
271 value |= CH_GRP_STEREO << I2S_OUT_STREAM_CFG_CHANNEL_GROUPING; in audio_ssp_init_portregs()
272 writel(value, aio->cygaud->audio + aio->regs.i2s_stream_cfg); in audio_ssp_init_portregs()
275 value = readl(aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_init_portregs()
276 value &= ~BIT(BF_SRC_CFGX_NOT_PAUSE_WHEN_EMPTY); in audio_ssp_init_portregs()
277 value |= BIT(BF_SRC_CFGX_SFIFO_SZ_DOUBLE); in audio_ssp_init_portregs()
278 value |= BIT(BF_SRC_CFGX_PROCESS_SEQ_ID_VALID); in audio_ssp_init_portregs()
279 writel(value, aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_init_portregs()
282 value = readl(aio->cygaud->i2s_in + in audio_ssp_init_portregs()
284 value &= ~I2S_CAP_STREAM_CFG_MASK; in audio_ssp_init_portregs()
285 value |= aio->portnum << I2S_IN_STREAM_CFG_0_GROUP_ID; in audio_ssp_init_portregs()
286 writel(value, aio->cygaud->i2s_in + in audio_ssp_init_portregs()
292 value = readl(aio->cygaud->audio + aio->regs.bf_destch_cfg); in audio_ssp_init_portregs()
293 value |= BIT(BF_DST_CFGX_DFIFO_SZ_DOUBLE); in audio_ssp_init_portregs()
294 value &= ~BIT(BF_DST_CFGX_NOT_PAUSE_WHEN_FULL); in audio_ssp_init_portregs()
295 value |= (fci_id << BF_DST_CFGX_FCI_ID); in audio_ssp_init_portregs()
296 value |= BIT(BF_DST_CFGX_PROC_SEQ_ID_VALID); in audio_ssp_init_portregs()
297 writel(value, aio->cygaud->audio + aio->regs.bf_destch_cfg); in audio_ssp_init_portregs()
300 value = readl(aio->cygaud->audio + AUD_MISC_SEROUT_OE_REG_BASE); in audio_ssp_init_portregs()
301 value &= ~BIT((aio->portnum * 4) + AUD_MISC_SEROUT_SDAT_OE); in audio_ssp_init_portregs()
302 writel(value, aio->cygaud->audio + AUD_MISC_SEROUT_OE_REG_BASE); in audio_ssp_init_portregs()
307 value = readl(aio->cygaud->audio + SPDIF_CTRL_OFFSET); in audio_ssp_init_portregs()
308 value |= BIT(SPDIF_0_OUT_DITHER_ENA); in audio_ssp_init_portregs()
309 writel(value, aio->cygaud->audio + SPDIF_CTRL_OFFSET); in audio_ssp_init_portregs()
312 value = readl(aio->cygaud->audio + SPDIF_STREAM_CFG_OFFSET); in audio_ssp_init_portregs()
313 value &= ~SPDIF_STREAM_CFG_MASK; in audio_ssp_init_portregs()
314 value |= aio->portnum; /* FCI ID is the port num */ in audio_ssp_init_portregs()
315 value |= BIT(SPDIF_0_OUT_STREAM_ENA); in audio_ssp_init_portregs()
316 writel(value, aio->cygaud->audio + SPDIF_STREAM_CFG_OFFSET); in audio_ssp_init_portregs()
318 value = readl(aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_init_portregs()
319 value &= ~BIT(BF_SRC_CFGX_NOT_PAUSE_WHEN_EMPTY); in audio_ssp_init_portregs()
320 value |= BIT(BF_SRC_CFGX_SFIFO_SZ_DOUBLE); in audio_ssp_init_portregs()
321 value |= BIT(BF_SRC_CFGX_PROCESS_SEQ_ID_VALID); in audio_ssp_init_portregs()
322 writel(value, aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_init_portregs()
325 value = readl(aio->cygaud->audio + AUD_MISC_SEROUT_OE_REG_BASE); in audio_ssp_init_portregs()
326 value &= ~BIT(AUD_MISC_SEROUT_SPDIF_OE); in audio_ssp_init_portregs()
327 writel(value, aio->cygaud->audio + AUD_MISC_SEROUT_OE_REG_BASE); in audio_ssp_init_portregs()
339 u32 value; in audio_ssp_in_enable() local
341 value = readl(aio->cygaud->audio + aio->regs.bf_destch_cfg); in audio_ssp_in_enable()
342 value |= BIT(BF_DST_CFGX_CAP_ENA); in audio_ssp_in_enable()
343 writel(value, aio->cygaud->audio + aio->regs.bf_destch_cfg); in audio_ssp_in_enable()
347 value = readl(aio->cygaud->audio + aio->regs.i2s_cfg); in audio_ssp_in_enable()
348 value |= BIT(I2S_OUT_CFGX_CLK_ENA); in audio_ssp_in_enable()
349 value |= BIT(I2S_OUT_CFGX_DATA_ENABLE); in audio_ssp_in_enable()
350 writel(value, aio->cygaud->audio + aio->regs.i2s_cfg); in audio_ssp_in_enable()
352 value = readl(aio->cygaud->i2s_in + aio->regs.i2s_cap_stream_cfg); in audio_ssp_in_enable()
353 value |= BIT(I2S_IN_STREAM_CFG_CAP_ENA); in audio_ssp_in_enable()
354 writel(value, aio->cygaud->i2s_in + aio->regs.i2s_cap_stream_cfg); in audio_ssp_in_enable()
361 u32 value; in audio_ssp_in_disable() local
363 value = readl(aio->cygaud->i2s_in + aio->regs.i2s_cap_stream_cfg); in audio_ssp_in_disable()
364 value &= ~BIT(I2S_IN_STREAM_CFG_CAP_ENA); in audio_ssp_in_disable()
365 writel(value, aio->cygaud->i2s_in + aio->regs.i2s_cap_stream_cfg); in audio_ssp_in_disable()
371 value = readl(aio->cygaud->audio + aio->regs.i2s_cfg); in audio_ssp_in_disable()
372 value &= ~BIT(I2S_OUT_CFGX_CLK_ENA); in audio_ssp_in_disable()
373 value &= ~BIT(I2S_OUT_CFGX_DATA_ENABLE); in audio_ssp_in_disable()
374 writel(value, aio->cygaud->audio + aio->regs.i2s_cfg); in audio_ssp_in_disable()
379 value = readl(aio->cygaud->audio + aio->regs.bf_destch_cfg); in audio_ssp_in_disable()
380 value &= ~BIT(BF_DST_CFGX_CAP_ENA); in audio_ssp_in_disable()
381 writel(value, aio->cygaud->audio + aio->regs.bf_destch_cfg); in audio_ssp_in_disable()
386 u32 value; in audio_ssp_out_enable() local
391 value = readl(aio->cygaud->audio + aio->regs.i2s_stream_cfg); in audio_ssp_out_enable()
392 value |= BIT(I2S_OUT_STREAM_ENA); in audio_ssp_out_enable()
393 writel(value, aio->cygaud->audio + aio->regs.i2s_stream_cfg); in audio_ssp_out_enable()
397 value = readl(aio->cygaud->audio + aio->regs.i2s_cfg); in audio_ssp_out_enable()
398 value |= BIT(I2S_OUT_CFGX_CLK_ENA); in audio_ssp_out_enable()
399 value |= BIT(I2S_OUT_CFGX_DATA_ENABLE); in audio_ssp_out_enable()
400 writel(value, aio->cygaud->audio + aio->regs.i2s_cfg); in audio_ssp_out_enable()
402 value = readl(aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_out_enable()
403 value |= BIT(BF_SRC_CFGX_SFIFO_ENA); in audio_ssp_out_enable()
404 writel(value, aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_out_enable()
409 value = readl(aio->cygaud->audio + SPDIF_FORMAT_CFG_OFFSET); in audio_ssp_out_enable()
410 value |= 0x3; in audio_ssp_out_enable()
411 writel(value, aio->cygaud->audio + SPDIF_FORMAT_CFG_OFFSET); in audio_ssp_out_enable()
415 value = readl(aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_out_enable()
416 value |= BIT(BF_SRC_CFGX_SFIFO_ENA); in audio_ssp_out_enable()
417 writel(value, aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_out_enable()
430 u32 value; in audio_ssp_out_disable() local
439 value = readl(aio->cygaud->audio + aio->regs.i2s_cfg); in audio_ssp_out_disable()
440 value &= ~BIT(I2S_OUT_CFGX_CLK_ENA); in audio_ssp_out_disable()
441 value &= ~BIT(I2S_OUT_CFGX_DATA_ENABLE); in audio_ssp_out_disable()
442 writel(value, aio->cygaud->audio + aio->regs.i2s_cfg); in audio_ssp_out_disable()
446 value = readl(aio->cygaud->audio + BF_SRC_GRP_SYNC_DIS_OFFSET); in audio_ssp_out_disable()
447 value |= BIT(aio->portnum); in audio_ssp_out_disable()
448 writel(value, aio->cygaud->audio + BF_SRC_GRP_SYNC_DIS_OFFSET); in audio_ssp_out_disable()
452 value = readl(aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_out_disable()
453 value &= ~BIT(BF_SRC_CFGX_SFIFO_ENA); in audio_ssp_out_disable()
454 writel(value, aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_out_disable()
457 value = readl(aio->cygaud->audio + BF_SRC_GRP_SYNC_DIS_OFFSET); in audio_ssp_out_disable()
458 value &= ~BIT(aio->portnum); in audio_ssp_out_disable()
459 writel(value, aio->cygaud->audio + BF_SRC_GRP_SYNC_DIS_OFFSET); in audio_ssp_out_disable()
461 value = readl(aio->cygaud->audio + aio->regs.i2s_stream_cfg); in audio_ssp_out_disable()
462 value &= ~BIT(I2S_OUT_STREAM_ENA); in audio_ssp_out_disable()
463 writel(value, aio->cygaud->audio + aio->regs.i2s_stream_cfg); in audio_ssp_out_disable()
466 value = readl(aio->cygaud->i2s_in + IOP_SW_INIT_LOGIC); in audio_ssp_out_disable()
467 value |= BIT(aio->portnum); in audio_ssp_out_disable()
468 writel(value, aio->cygaud->i2s_in + IOP_SW_INIT_LOGIC); in audio_ssp_out_disable()
469 value &= ~BIT(aio->portnum); in audio_ssp_out_disable()
470 writel(value, aio->cygaud->i2s_in + IOP_SW_INIT_LOGIC); in audio_ssp_out_disable()
473 value = readl(aio->cygaud->audio + SPDIF_FORMAT_CFG_OFFSET); in audio_ssp_out_disable()
474 value &= ~0x3; in audio_ssp_out_disable()
475 writel(value, aio->cygaud->audio + SPDIF_FORMAT_CFG_OFFSET); in audio_ssp_out_disable()
478 value = readl(aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_out_disable()
479 value &= ~BIT(BF_SRC_CFGX_SFIFO_ENA); in audio_ssp_out_disable()
480 writel(value, aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_out_disable()
546 u32 value; in cygnus_ssp_set_clocks() local
594 value = readl(aio->cygaud->audio + aio->regs.i2s_cfg); in cygnus_ssp_set_clocks()
595 value &= ~(mask << I2S_OUT_CFGX_SCLKS_PER_1FS_DIV32); in cygnus_ssp_set_clocks()
596 value |= sclk << I2S_OUT_CFGX_SCLKS_PER_1FS_DIV32; in cygnus_ssp_set_clocks()
597 writel(value, aio->cygaud->audio + aio->regs.i2s_cfg); in cygnus_ssp_set_clocks()
599 "SCLKS_PER_1FS_DIV32 = 0x%x\n", value); in cygnus_ssp_set_clocks()
609 value = readl(aio->cygaud->audio + aio->regs.i2s_mclk_cfg); in cygnus_ssp_set_clocks()
610 value &= ~(0xf << I2S_OUT_MCLKRATE_SHIFT); in cygnus_ssp_set_clocks()
611 value |= (mclk_rate << I2S_OUT_MCLKRATE_SHIFT); in cygnus_ssp_set_clocks()
612 writel(value, aio->cygaud->audio + aio->regs.i2s_mclk_cfg); in cygnus_ssp_set_clocks()
614 dev_dbg(aio->cygaud->dev, "mclk cfg reg = 0x%x\n", value); in cygnus_ssp_set_clocks()
626 u32 value; in cygnus_ssp_hw_params() local
656 value = readl(aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in cygnus_ssp_hw_params()
657 value &= ~BIT(BF_SRC_CFGX_BUFFER_PAIR_ENABLE); in cygnus_ssp_hw_params()
658 value &= ~BIT(BF_SRC_CFGX_SAMPLE_CH_MODE); in cygnus_ssp_hw_params()
659 writel(value, aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in cygnus_ssp_hw_params()
675 value = readl(aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in cygnus_ssp_hw_params()
676 value &= ~(mask << BF_SRC_CFGX_BIT_RES); in cygnus_ssp_hw_params()
677 value |= (bitres << BF_SRC_CFGX_BIT_RES); in cygnus_ssp_hw_params()
678 writel(value, aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in cygnus_ssp_hw_params()
684 value = readl(aio->cygaud->audio + in cygnus_ssp_hw_params()
686 value |= BIT(BF_DST_CFGX_CAP_MODE); in cygnus_ssp_hw_params()
687 writel(value, aio->cygaud->audio + in cygnus_ssp_hw_params()
692 value = readl(aio->cygaud->audio + in cygnus_ssp_hw_params()
694 value &= ~BIT(BF_DST_CFGX_CAP_MODE); in cygnus_ssp_hw_params()
695 writel(value, aio->cygaud->audio + in cygnus_ssp_hw_params()
719 u32 value; in cygnus_ssp_set_sysclk() local
735 value = readl(aio->cygaud->audio + aio->regs.i2s_mclk_cfg); in cygnus_ssp_set_sysclk()
736 value &= ~(0xf << I2S_OUT_PLLCLKSEL_SHIFT); in cygnus_ssp_set_sysclk()
737 value |= (sel << I2S_OUT_PLLCLKSEL_SHIFT); in cygnus_ssp_set_sysclk()
738 writel(value, aio->cygaud->audio + aio->regs.i2s_mclk_cfg); in cygnus_ssp_set_sysclk()
974 u32 value; in cygnus_set_dai_tdm_slot() local
1036 value = readl(aio->cygaud->i2s_in + aio->regs.i2s_cap_cfg); in cygnus_set_dai_tdm_slot()
1037 value &= ~(0xf << I2S_OUT_CFGX_VALID_SLOT); in cygnus_set_dai_tdm_slot()
1038 value |= (active_slots << I2S_OUT_CFGX_VALID_SLOT); in cygnus_set_dai_tdm_slot()
1039 value &= ~BIT(I2S_OUT_CFGX_BITS_PER_SLOT); in cygnus_set_dai_tdm_slot()
1040 value |= (bits_per_slot << I2S_OUT_CFGX_BITS_PER_SLOT); in cygnus_set_dai_tdm_slot()
1041 writel(value, aio->cygaud->i2s_in + aio->regs.i2s_cap_cfg); in cygnus_set_dai_tdm_slot()
1044 value = readl(aio->cygaud->audio + aio->regs.i2s_cfg); in cygnus_set_dai_tdm_slot()
1045 value &= ~(0xf << I2S_OUT_CFGX_VALID_SLOT); in cygnus_set_dai_tdm_slot()
1046 value |= (active_slots << I2S_OUT_CFGX_VALID_SLOT); in cygnus_set_dai_tdm_slot()
1047 value &= ~BIT(I2S_OUT_CFGX_BITS_PER_SLOT); in cygnus_set_dai_tdm_slot()
1048 value |= (bits_per_slot << I2S_OUT_CFGX_BITS_PER_SLOT); in cygnus_set_dai_tdm_slot()
1049 writel(value, aio->cygaud->audio + aio->regs.i2s_cfg); in cygnus_set_dai_tdm_slot()