Searched refs:pic32s (Results 1 – 1 of 1) sorted by relevance
123 static inline void pic32_spi_enable(struct pic32_spi *pic32s) in pic32_spi_enable() argument125 writel(CTRL_ON | CTRL_SIDL, &pic32s->regs->ctrl_set); in pic32_spi_enable()128 static inline void pic32_spi_disable(struct pic32_spi *pic32s) in pic32_spi_disable() argument130 writel(CTRL_ON | CTRL_SIDL, &pic32s->regs->ctrl_clr); in pic32_spi_disable()136 static void pic32_spi_set_clk_rate(struct pic32_spi *pic32s, u32 spi_ck) in pic32_spi_set_clk_rate() argument141 div = DIV_ROUND_CLOSEST(clk_get_rate(pic32s->clk), 2 * spi_ck) - 1; in pic32_spi_set_clk_rate()143 writel(div & BAUD_MASK, &pic32s->regs->baud); in pic32_spi_set_clk_rate()146 static inline u32 pic32_rx_fifo_level(struct pic32_spi *pic32s) in pic32_rx_fifo_level() argument148 u32 sr = readl(&pic32s->regs->status); in pic32_rx_fifo_level()153 static inline u32 pic32_tx_fifo_level(struct pic32_spi *pic32s) in pic32_tx_fifo_level() argument[all …]