Lines Matching refs:b91_config
75 const struct spi_b91_cfg *b91_config = SPI_CFG(dev); in spi_b91_config_cs() local
80 spi_b91_hw_cs_disable(b91_config); in spi_b91_config_cs()
95 cs_pin = b91_config->cs_pin[cs_id]; in spi_b91_config_cs()
105 if (b91_config->peripheral_id == PSPI_MODULE) { in spi_b91_config_cs()
114 if (b91_config->peripheral_id == PSPI_MODULE) { in spi_b91_config_cs()
242 struct spi_b91_cfg *b91_config) in spi_b91_is_config_supported() argument
280 (b91_config->peripheral_id == PSPI_MODULE)) { in spi_b91_is_config_supported()
301 struct spi_b91_cfg *b91_config = SPI_CFG(dev); in spi_b91_config() local
303 uint8_t clk_src = b91_config->peripheral_id == PSPI_MODULE ? sys_clk.pclk : sys_clk.hclk; in spi_b91_config()
306 if (!spi_b91_is_config_supported(config, b91_config)) { in spi_b91_config()
331 spi_master_init(b91_config->peripheral_id, in spi_b91_config()
333 spi_master_config(b91_config->peripheral_id, SPI_NOMAL); in spi_b91_config()
340 spi_set_io_mode(b91_config->peripheral_id, in spi_b91_config()
343 spi_set_io_mode(b91_config->peripheral_id, in spi_b91_config()
346 spi_set_io_mode(b91_config->peripheral_id, in spi_b91_config()
352 status = pinctrl_apply_state(b91_config->pcfg, PINCTRL_STATE_DEFAULT); in spi_b91_config()