Lines Matching refs:gecko_config
120 const struct spi_gecko_config *gecko_config = dev->config; in spi_config() local
122 mem_addr_t ctrl_reg = (mem_addr_t)&gecko_config->base->CTRL; in spi_config()
128 err = clock_control_get_rate(gecko_config->clock_dev, in spi_config()
129 (clock_control_subsys_t)&gecko_config->clock_cfg, in spi_config()
137 spi_frequency = CMU_ClockFreqGet(gecko_config->clock) / 2; in spi_config()
177 if (gecko_config->clock_frequency > spi_frequency) { in spi_config()
181 spi_frequency = MIN(gecko_config->clock_frequency, spi_frequency); in spi_config()
185 USART_BaudrateSyncSet(gecko_config->base, 0, spi_frequency); in spi_config()
189 gecko_config->base->CTRL |= USART_CTRL_LOOPBK; in spi_config()
191 gecko_config->base->CTRL &= ~USART_CTRL_LOOPBK; in spi_config()
196 gecko_config->base->CTRL |= USART_CTRL_CLKPOL; in spi_config()
198 gecko_config->base->CTRL &= ~USART_CTRL_CLKPOL; in spi_config()
203 gecko_config->base->CTRL |= USART_CTRL_CLKPHA; in spi_config()
205 gecko_config->base->CTRL &= ~USART_CTRL_CLKPHA; in spi_config()
209 gecko_config->base->FRAME = usartDatabits8 in spi_config()
277 const struct spi_gecko_config *gecko_config = dev->config; in spi_gecko_xfer() local
282 ret = spi_gecko_shift_frames(gecko_config->base, data); in spi_gecko_xfer()