summaryrefslogtreecommitdiff
path: root/common/cbi_eeprom.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cbi_eeprom.c')
-rw-r--r--common/cbi_eeprom.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/cbi_eeprom.c b/common/cbi_eeprom.c
index fe52bcd9f3..2761f0b977 100644
--- a/common/cbi_eeprom.c
+++ b/common/cbi_eeprom.c
@@ -9,6 +9,7 @@
#include "cros_board_info.h"
#include "gpio.h"
#include "i2c.h"
+#include "system.h"
#include "timer.h"
#include "util.h"
@@ -63,6 +64,14 @@ static int eeprom_write(uint8_t *cbi)
return EC_SUCCESS;
}
+#ifdef CONFIG_EEPROM_CBI_WP
+void cbi_latch_eeprom_wp(void)
+{
+ CPRINTS("WP latched");
+ gpio_set_level(GPIO_EC_CBI_WP, 1);
+}
+#endif /* CONFIG_EEPROM_CBI_WP */
+
const struct cbi_storage_driver eeprom_drv = {
.store = eeprom_write,
.load = eeprom_read,