Lines Matching refs:cfg

174 	u32 cfg, stat;  in au1550_spi_chipsel()  local
186 cfg = hw->regs->psc_spicfg; in au1550_spi_chipsel()
188 hw->regs->psc_spicfg = cfg & ~PSC_SPICFG_DE_ENABLE; in au1550_spi_chipsel()
192 cfg |= PSC_SPICFG_BI; in au1550_spi_chipsel()
194 cfg &= ~PSC_SPICFG_BI; in au1550_spi_chipsel()
196 cfg &= ~PSC_SPICFG_CDE; in au1550_spi_chipsel()
198 cfg |= PSC_SPICFG_CDE; in au1550_spi_chipsel()
201 cfg |= PSC_SPICFG_MLF; in au1550_spi_chipsel()
203 cfg &= ~PSC_SPICFG_MLF; in au1550_spi_chipsel()
206 cfg &= ~PSC_SPICFG_DD_DISABLE; in au1550_spi_chipsel()
208 cfg |= PSC_SPICFG_DD_DISABLE; in au1550_spi_chipsel()
209 cfg = PSC_SPICFG_CLR_LEN(cfg); in au1550_spi_chipsel()
210 cfg |= PSC_SPICFG_SET_LEN(spi->bits_per_word); in au1550_spi_chipsel()
212 cfg = PSC_SPICFG_CLR_BAUD(cfg); in au1550_spi_chipsel()
213 cfg &= ~PSC_SPICFG_SET_DIV(3); in au1550_spi_chipsel()
214 cfg |= au1550_spi_baudcfg(hw, spi->max_speed_hz); in au1550_spi_chipsel()
216 hw->regs->psc_spicfg = cfg | PSC_SPICFG_DE_ENABLE; in au1550_spi_chipsel()
234 u32 cfg, stat; in au1550_spi_setupxfer() local
250 cfg = hw->regs->psc_spicfg; in au1550_spi_setupxfer()
252 hw->regs->psc_spicfg = cfg & ~PSC_SPICFG_DE_ENABLE; in au1550_spi_setupxfer()
256 cfg &= ~PSC_SPICFG_DD_DISABLE; in au1550_spi_setupxfer()
258 cfg |= PSC_SPICFG_DD_DISABLE; in au1550_spi_setupxfer()
259 cfg = PSC_SPICFG_CLR_LEN(cfg); in au1550_spi_setupxfer()
260 cfg |= PSC_SPICFG_SET_LEN(bpw); in au1550_spi_setupxfer()
262 cfg = PSC_SPICFG_CLR_BAUD(cfg); in au1550_spi_setupxfer()
263 cfg &= ~PSC_SPICFG_SET_DIV(3); in au1550_spi_setupxfer()
264 cfg |= au1550_spi_baudcfg(hw, hz); in au1550_spi_setupxfer()
266 hw->regs->psc_spicfg = cfg; in au1550_spi_setupxfer()
269 if (cfg & PSC_SPICFG_DE_ENABLE) { in au1550_spi_setupxfer()
685 u32 stat, cfg; in au1550_spi_setup_psc_as_spi() local
705 cfg = hw->usedma ? 0 : PSC_SPICFG_DD_DISABLE; in au1550_spi_setup_psc_as_spi()
706 cfg |= PSC_SPICFG_SET_LEN(8); in au1550_spi_setup_psc_as_spi()
707 cfg |= PSC_SPICFG_RT_FIFO8 | PSC_SPICFG_TT_FIFO8; in au1550_spi_setup_psc_as_spi()
709 cfg |= PSC_SPICFG_SET_BAUD(4) | PSC_SPICFG_SET_DIV(0); in au1550_spi_setup_psc_as_spi()
712 cfg |= PSC_SPICFG_LB; in au1550_spi_setup_psc_as_spi()
715 hw->regs->psc_spicfg = cfg; in au1550_spi_setup_psc_as_spi()