summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/mec1322/system.c2
-rw-r--r--common/spi_flash.c16
-rw-r--r--include/spi_flash.h7
3 files changed, 1 insertions, 24 deletions
diff --git a/chip/mec1322/system.c b/chip/mec1322/system.c
index 7031bac28f..e682852935 100644
--- a/chip/mec1322/system.c
+++ b/chip/mec1322/system.c
@@ -213,7 +213,7 @@ static void system_set_gpio_power(int enabled, uint32_t *backup_gpio_ctl)
void system_hibernate(uint32_t seconds, uint32_t microseconds)
{
int i;
- uint32_t int_status[15];
+ uint32_t int_status[16];
uint32_t int_block_status;
uint32_t nvic_status[3];
char *backup_gpio_ctl;
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
diff --git a/include/spi_flash.h b/include/spi_flash.h
index 50065b101f..9e83ea9e91 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -123,13 +123,6 @@ int spi_flash_write(unsigned int offset, unsigned int bytes,
const uint8_t const *data);
/**
- * Returns the SPI flash manufacturer ID and device ID [8:0]
- *
- * @return flash manufacturer + device ID
- */
-uint16_t spi_flash_get_id(void);
-
-/**
* Returns the SPI flash JEDEC ID (manufacturer ID, memory type, and capacity)
*
* @return flash JEDEC ID