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

/linux-4.1.27/drivers/spi/
H A Dspi-mpc52xx.c147 int spr, sppr; mpc52xx_spi_fsmstate_idle() local
176 sppr = ((ms->ipb_freq / ms->message->spi->max_speed_hz) + 1) >> 1; mpc52xx_spi_fsmstate_idle()
178 if (sppr < 1) mpc52xx_spi_fsmstate_idle()
179 sppr = 1; mpc52xx_spi_fsmstate_idle()
180 while (((sppr - 1) & ~0x7) != 0) { mpc52xx_spi_fsmstate_idle()
181 sppr = (sppr + 1) >> 1; /* add '1' to force rounding up */ mpc52xx_spi_fsmstate_idle()
184 sppr--; /* sppr quantity in register is offset by 1 */ mpc52xx_spi_fsmstate_idle()
188 sppr = 7; mpc52xx_spi_fsmstate_idle()
190 out_8(ms->regs + SPI_BRR, sppr << 4 | spr); /* Set speed */ mpc52xx_spi_fsmstate_idle()
H A Dspi-orion.c124 unsigned int clk, spr, sppr, sppr2, err; orion_spi_baudrate_set() local
132 for (sppr = 0; sppr < 8; sppr++) { orion_spi_baudrate_set()
133 sppr2 = 0x1 << sppr; orion_spi_baudrate_set()
145 best_sppr = sppr; orion_spi_baudrate_set()

Completed in 47 milliseconds