Searched refs:sppr (Results 1 – 2 of 2) sorted by relevance
151 int spr, sppr; in mpc52xx_spi_fsmstate_idle() local180 sppr = ((ms->ipb_freq / ms->message->spi->max_speed_hz) + 1) >> 1; in mpc52xx_spi_fsmstate_idle()182 if (sppr < 1) in mpc52xx_spi_fsmstate_idle()183 sppr = 1; in mpc52xx_spi_fsmstate_idle()184 while (((sppr - 1) & ~0x7) != 0) { in mpc52xx_spi_fsmstate_idle()185 sppr = (sppr + 1) >> 1; /* add '1' to force rounding up */ in mpc52xx_spi_fsmstate_idle()188 sppr--; /* sppr quantity in register is offset by 1 */ in mpc52xx_spi_fsmstate_idle()192 sppr = 7; in mpc52xx_spi_fsmstate_idle()194 out_8(ms->regs + SPI_BRR, sppr << 4 | spr); /* Set speed */ in mpc52xx_spi_fsmstate_idle()
162 unsigned spr, sppr; in orion_spi_baudrate_set() local167 sppr = 0; in orion_spi_baudrate_set()177 sppr = fls(divider) - 4; in orion_spi_baudrate_set()183 two_pow_sppr = 1 << sppr; in orion_spi_baudrate_set()193 sppr = fls(divider) - 4; in orion_spi_baudrate_set()194 spr = divider >> sppr; in orion_spi_baudrate_set()201 if (sppr > 7) in orion_spi_baudrate_set()205 prescale = ((sppr & 0x6) << 5) | ((sppr & 0x1) << 4) | spr; in orion_spi_baudrate_set()