drivers: spi: esp32c3: add master init call

ESP32C3 requires master init call to enable its clock
gate. Without this, SPI interface may not initialize
properly.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
This commit is contained in:
Sylvio Alves 2022-03-25 21:40:02 -03:00 committed by Maureen Helm
parent 5b9db5a251
commit e04172fcef

View file

@ -233,6 +233,8 @@ static int IRAM_ATTR spi_esp32_configure(const struct device *dev,
return -EIO;
}
spi_ll_master_init(hal->hw);
ctx->config = spi_cfg;
if (spi_cfg->operation & SPI_HALF_DUPLEX) {