Tegra124: SPI: Set and unset CS in spi_claim_bus and spi_release_bus.
These functions are intended to start and end a transaction on the bus and so need to manage the CS line. BUG=None TEST=Used a Logic16 to watch the SPI bus as coreboot attempted to use it to talk to the EC. With this change, CS was set (low) during the transaction when before it wasn't. BRANCH=None Change-Id: I37992dc2e51dec878d565ebea1da586bdcac6400 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://chromium-review.googlesource.com/173953 Reviewed-by: Gabe Black <gabeblack@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org>
This commit is contained in:
parent
08626ffac4
commit
a2df8f3a9c
1 changed files with 2 additions and 0 deletions
|
|
@ -806,9 +806,11 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
|
|||
int spi_claim_bus(struct spi_slave *slave)
|
||||
{
|
||||
tegra_spi_init(slave->bus);
|
||||
spi_cs_activate(slave);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void spi_release_bus(struct spi_slave *slave)
|
||||
{
|
||||
spi_cs_deactivate(slave);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue