Xiang Wang has uploaded this change for review.
programmer.h: remove unused interfaces of bitbang_spi_master
Change-Id: I68e5fc39cf831e3b7d98a6e4797b36584c6082e8
Signed-off-by: Xiang Wang <merle@hardenedlinux.org>
---
M developerbox_spi.c
M programmer.h
2 files changed, 0 insertions(+), 10 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/56/49256/1
diff --git a/developerbox_spi.c b/developerbox_spi.c
index 4ff2fb6..bc398d5 100644
--- a/developerbox_spi.c
+++ b/developerbox_spi.c
@@ -114,18 +114,11 @@
return !!(cp210x_gpio_get() & (1 << DEVELOPERBOX_SPI_MISO));
}
-static void cp210x_bitbang_set_sck_set_mosi(int sck, int mosi)
-{
- cp210x_gpio_set(sck << DEVELOPERBOX_SPI_SCK | mosi << DEVELOPERBOX_SPI_MOSI,
- 1 << DEVELOPERBOX_SPI_SCK | 1 << DEVELOPERBOX_SPI_MOSI);
-}
-
static const struct bitbang_spi_master bitbang_spi_master_cp210x = {
.set_cs = cp210x_bitbang_set_cs,
.set_sck = cp210x_bitbang_set_sck,
.set_mosi = cp210x_bitbang_set_mosi,
.get_miso = cp210x_bitbang_get_miso,
- .set_sck_set_mosi = cp210x_bitbang_set_sck_set_mosi,
};
static int developerbox_spi_shutdown(void *data)
diff --git a/programmer.h b/programmer.h
index 5dbbaf9..e501d7f 100644
--- a/programmer.h
+++ b/programmer.h
@@ -191,9 +191,6 @@
int (*get_miso) (void);
void (*request_bus) (void);
void (*release_bus) (void);
- /* optional functions to optimize xfers */
- void (*set_sck_set_mosi) (int sck, int mosi);
- int (*set_sck_get_miso) (int sck);
/* Length of half a clock period in usecs. */
unsigned int half_period;
};
To view, visit change 49256. To unsubscribe, or for help writing mail filters, visit settings.