summaryrefslogtreecommitdiff
path: root/common/spi_flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/spi_flash.c')
-rw-r--r--common/spi_flash.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/common/spi_flash.c b/common/spi_flash.c
index 20e4ce37cb..b68936ef91 100644
--- a/common/spi_flash.c
+++ b/common/spi_flash.c
@@ -425,22 +425,6 @@ int spi_flash_write(unsigned int offset, unsigned int bytes,
}
/**
- * Returns the SPI flash manufacturer ID and device ID [8:0]
- *
- * @return flash manufacturer + device ID or -1 on error
- */
-uint16_t spi_flash_get_id(void)
-{
- uint8_t cmd[4] = {SPI_FLASH_MFR_DEV_ID, 0, 0, 0};
- uint8_t resp[2];
-
- if (spi_transaction(cmd, 4, resp, 2) != EC_SUCCESS)
- return -1;
-
- return (resp[4] << 8) | resp[5];
-}
-
-/**
* Returns the SPI flash JEDEC ID (manufacturer ID, memory type, and capacity)
*
* @return flash JEDEC ID or -1 on error