tegra124: Add some stub functions to the Tegra SPI driver.
These functions support even more facets of the SPI API which are used by the EC communication layer. BUG=None TEST=Built and booted into depthcharge on nyan. BRANCH=None Change-Id: If9ea65388ba8df0e1f6beac014adf625b7be4c01 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://chromium-review.googlesource.com/173789 Reviewed-by: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org>
This commit is contained in:
parent
ff172bfe30
commit
8bc527aa4a
1 changed files with 20 additions and 0 deletions
|
|
@ -792,3 +792,23 @@ int initialize_tegra_spi_cbfs_media(struct cbfs_media *media,
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
|
||||
unsigned int max_hz, unsigned int mode)
|
||||
{
|
||||
struct tegra_spi_channel *channel = to_tegra_spi(bus);
|
||||
if (!channel)
|
||||
return NULL;
|
||||
|
||||
return &channel->slave;
|
||||
}
|
||||
|
||||
int spi_claim_bus(struct spi_slave *slave)
|
||||
{
|
||||
tegra_spi_init(slave->bus);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void spi_release_bus(struct spi_slave *slave)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue