summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/spi_flash.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/spi_flash.h b/src/include/spi_flash.h
index 7736a940f5..76c33be5ea 100644
--- a/src/include/spi_flash.h
+++ b/src/include/spi_flash.h
@@ -95,6 +95,14 @@ struct spi_flash_protection_ops {
struct spi_flash_part_id;
+struct spi_flash_rpmc_cap {
+ bool rpmc_available;
+ bool poll_op2_ext_stat;
+ unsigned int number_of_counters;
+ uint8_t op1_write_cmd;
+ uint8_t op2_read_cmd;
+};
+
struct spi_flash {
struct spi_slave spi;
u8 vendor;
@@ -118,6 +126,7 @@ struct spi_flash {
/* If !NULL all protection callbacks exist. */
const struct spi_flash_protection_ops *prot_ops;
const struct spi_flash_part_id *part;
+ struct spi_flash_rpmc_cap rpmc_caps;
};
void lb_spi_flash(struct lb_header *header);