spi: Remove the spi_set_speed and spi_cs_is_valid functions.
spi_set_speed was never implemented, and spi_cs_is_valid was only implemented
as a stub and never called.
BUG=None
TEST=Built for rambi, falco, and peach_pit.
BRANCH=None
Original-Change-Id: If30c2339f5e0360a5099eb540fab73fb23582905
Original-Signed-off-by: Gabe Black <gabeblack@google.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/192045
Original-Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Original-Tested-by: Gabe Black <gabeblack@chromium.org>
Original-Reviewed-by: David Hendricks <dhendrix@chromium.org>
Original-Commit-Queue: Gabe Black <gabeblack@chromium.org>
(cherry picked from commit 98c1f6014c)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>
Change-Id: Iebdb2704ee81aee432c83ab182246d31ef52a6b6
Reviewed-on: http://review.coreboot.org/7707
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins)
This commit is contained in:
parent
967058f807
commit
87f3b4ea01
6 changed files with 0 additions and 46 deletions
|
|
@ -116,15 +116,6 @@ void spi_release_bus(struct spi_slave *slave);
|
|||
int spi_xfer(struct spi_slave *slave, const void *dout, unsigned int bytesout,
|
||||
void *din, unsigned int bytesin);
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
* Determine if a SPI chipselect is valid.
|
||||
* This function is provided by the board if the low-level SPI driver
|
||||
* needs it to determine if a given chipselect is actually valid.
|
||||
*
|
||||
* Returns: 1 if bus:cs identifies a valid chip on this board, 0
|
||||
* otherwise.
|
||||
*/
|
||||
int spi_cs_is_valid(unsigned int bus, unsigned int cs);
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
* Activate a SPI chipselect.
|
||||
|
|
@ -144,14 +135,6 @@ void spi_cs_activate(struct spi_slave *slave);
|
|||
*/
|
||||
void spi_cs_deactivate(struct spi_slave *slave);
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
* Set transfer speed.
|
||||
* This sets a new speed to be applied for next spi_xfer().
|
||||
* slave: The SPI slave
|
||||
* hz: The transfer speed
|
||||
*/
|
||||
void spi_set_speed(struct spi_slave *slave, uint32_t hz);
|
||||
|
||||
unsigned int spi_crop_chunk(unsigned int cmd_len, unsigned int buf_len);
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue