]> git.baikalelectronics.ru Git - uboot.git/commit
DW SPI: add option to use external gpio for chip select
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Thu, 22 Mar 2018 10:50:46 +0000 (13:50 +0300)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 22 Mar 2018 17:31:35 +0000 (23:01 +0530)
commite7864f85c6aa0e09585f120b68c591559536e87f
tree282b2100df88487e155416e3f3e5e351108c0dd4
parenta93cebbecdbc949a656cc49d3c94ebc03f07c111
DW SPI: add option to use external gpio for chip select

DW SPI internal chip select management has limitation:
it hold CS line in active state only when the FIFO is not
empty. If the FIFO freed before we add new data the SPI transaction will
be broken.

So add option to use external gpio for chip select. Gpio can be added
via device tree using standard gpio bindings.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/spi/designware_spi.c