[coreboot-gerrit] New patch to review for coreboot: 961a47c rk3288: remove unused structs and declarations
Aaron Durbin (adurbin@chromium.org)
gerrit at coreboot.org
Fri May 15 20:57:40 CEST 2015
Aaron Durbin (adurbin at chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10214
-gerrit
commit 961a47c6049a4d6c19ab7bb092c38043f61f2889
Author: Aaron Durbin <adurbin at chromium.org>
Date: Thu May 14 16:38:38 2015 -0500
rk3288: remove unused structs and declarations
The struct rockchip_spi_media type is no longer used;
nor is initialize_rockchip_spi_cbfs_media(). Remove them.
Change-Id: I2c24be249e0cd89e2dd328e05cdd24a178fe37e8
Signed-off-by: Aaron Durbin <adurbin at chromium.org>
---
src/soc/rockchip/rk3288/include/soc/spi.h | 5 -----
src/soc/rockchip/rk3288/spi.c | 5 -----
2 files changed, 10 deletions(-)
diff --git a/src/soc/rockchip/rk3288/include/soc/spi.h b/src/soc/rockchip/rk3288/include/soc/spi.h
index bba38ef..a1be581 100644
--- a/src/soc/rockchip/rk3288/include/soc/spi.h
+++ b/src/soc/rockchip/rk3288/include/soc/spi.h
@@ -21,7 +21,6 @@
#define __SOC_ROCKCHIP_RK3288_SPI_H__
/* This driver serves as a CBFS media source. */
-#include <cbfs.h>
#include <spi-generic.h>
#include <stdint.h>
@@ -195,10 +194,6 @@ check_member(rockchip_spi, rxdr, 0x800);
#define SPI_CLEAR_INT_RXOI (1 << 2)
#define SPI_CLEAR_INT_TXOI (1 << 3)
-/* Serve as CBFS media source */
-int initialize_rockchip_spi_cbfs_media(struct cbfs_media *media,
- void *buffer_address,
- size_t buffer_size);
void rockchip_spi_init(unsigned int bus, unsigned int speed_hz);
#endif
diff --git a/src/soc/rockchip/rk3288/spi.c b/src/soc/rockchip/rk3288/spi.c
index a8d2be3..9952f11 100644
--- a/src/soc/rockchip/rk3288/spi.c
+++ b/src/soc/rockchip/rk3288/spi.c
@@ -288,8 +288,3 @@ int spi_xfer(struct spi_slave *slave, const void *dout,
rockchip_spi_enable_chip(regs, 0);
return ret < 0 ? ret : 0;
}
-
-struct rockchip_spi_media {
- struct spi_slave *slave;
- struct cbfs_simple_buffer buffer;
-};
More information about the coreboot-gerrit
mailing list