spi: dw: introduce spi_shutdown_chip()
This helper disables SPI controller and sets clock to 0. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:

committed by
Mark Brown

parent
d53c0ef319
commit
1cc3f141f0
@@ -225,6 +225,12 @@ static inline void spi_reset_chip(struct dw_spi *dws)
|
||||
spi_enable_chip(dws, 1);
|
||||
}
|
||||
|
||||
static inline void spi_shutdown_chip(struct dw_spi *dws)
|
||||
{
|
||||
spi_enable_chip(dws, 0);
|
||||
spi_set_clk(dws, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Each SPI slave device to work with dw_api controller should
|
||||
* has such a structure claiming its working mode (poll or PIO/DMA),
|
||||
|
Reference in New Issue
Block a user