Home
last modified time | relevance | path

Searched refs:sppr (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/spi/
H A Dspi-mpc52xx.c152 int spr, sppr; in mpc52xx_spi_fsmstate_idle() local
181 sppr = ((ms->ipb_freq / ms->message->spi->max_speed_hz) + 1) >> 1; in mpc52xx_spi_fsmstate_idle()
183 if (sppr < 1) in mpc52xx_spi_fsmstate_idle()
184 sppr = 1; in mpc52xx_spi_fsmstate_idle()
185 while (((sppr - 1) & ~0x7) != 0) { in mpc52xx_spi_fsmstate_idle()
186 sppr = (sppr + 1) >> 1; /* add '1' to force rounding up */ in mpc52xx_spi_fsmstate_idle()
189 sppr--; /* sppr quantity in register is offset by 1 */ in mpc52xx_spi_fsmstate_idle()
193 sppr = 7; in mpc52xx_spi_fsmstate_idle()
195 out_8(ms->regs + SPI_BRR, sppr << 4 | spr); /* Set speed */ in mpc52xx_spi_fsmstate_idle()