diff --git a/drivers/spi/imx_spi.c b/drivers/spi/imx_spi.c index 6675729..45461bd 100644 --- a/drivers/spi/imx_spi.c +++ b/drivers/spi/imx_spi.c @@ -167,7 +167,7 @@ if (!is_active) { if (gpio >= 0) - gpio_set_value(gpio, !cs); + gpio_direction_output(gpio, !cs); return; } @@ -253,7 +253,7 @@ if (!is_active) { if (gpio >= 0) - gpio_set_value(gpio, !cs); + gpio_direction_output(gpio, !cs); return; }