Home
last modified time | relevance | path

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

/openbmc/linux/drivers/spi/
H A Dspi-rspi.c165 #define SPCMD_BRDV(brdv) ((brdv) << 2) argument
257 int brdv = 0, spbr; in rspi_set_rate() local
261 while (spbr > 255 && brdv < 3) { in rspi_set_rate()
262 brdv++; in rspi_set_rate()
267 rspi->spcmd |= SPCMD_BRDV(brdv); in rspi_set_rate()
268 rspi->speed_hz = DIV_ROUND_UP(clksrc, (2U << brdv) * (spbr + 1)); in rspi_set_rate()
342 int brdv = 0, spbr; in qspi_set_config_register() local
354 while (spbr > 255 && brdv < 3) { in qspi_set_config_register()
355 brdv++; in qspi_set_config_register()
359 rspi->speed_hz = DIV_ROUND_UP(clksrc, (2U << brdv) * spbr); in qspi_set_config_register()
[all …]
/openbmc/linux/drivers/tty/serial/
H A Dmvebu-uart.c148 unsigned int brdv; member
459 u32 brdv, osamp; in mvebu_uart_baud_rate_set() local
520 brdv = readl(port->membase + UART_BRDV); in mvebu_uart_baud_rate_set()
521 brdv &= ~BRDV_BAUD_MASK; in mvebu_uart_baud_rate_set()
522 brdv |= d_divisor; in mvebu_uart_baud_rate_set()
523 writel(brdv, port->membase + UART_BRDV); in mvebu_uart_baud_rate_set()
836 mvuart->pm_regs.brdv = readl(port->membase + UART_BRDV); in mvebu_uart_suspend()
857 writel(mvuart->pm_regs.brdv, port->membase + UART_BRDV); in mvebu_uart_resume()