i.MX SPI: Setup SPI chipselect to inactive state while initializing device
To avoid unnecessary preset initial state chipselect lines for SPI, set it to inactive state when adding devices to the system. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
3c4a23c950
commit
385c54648b
|
@ -145,6 +145,10 @@ struct spi_imx_devtype_data {
|
|||
|
||||
static int imx_spi_setup(struct spi_device *spi)
|
||||
{
|
||||
struct imx_spi *imx = container_of(spi->master, struct imx_spi, master);
|
||||
|
||||
imx->chipselect(spi, 0);
|
||||
|
||||
debug("%s mode 0x%08x bits_per_word: %d speed: %d\n",
|
||||
__FUNCTION__, spi->mode, spi->bits_per_word,
|
||||
spi->max_speed_hz);
|
||||
|
|
Loading…
Reference in New Issue