summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/spi_flash.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/spi_flash.h b/src/include/spi_flash.h
index fe77e3ef79..d5471a4406 100644
--- a/src/include/spi_flash.h
+++ b/src/include/spi_flash.h
@@ -49,6 +49,17 @@ struct spi_flash_ops {
int (*status)(const struct spi_flash *flash, u8 *reg);
};
+struct spi_flash_bpbits {
+ unsigned int bp; /*< block protection select bits */
+ bool cmp; /*< complement protect */
+ bool tb; /*< top=0 / bottom=1 select */
+ union {
+ struct {
+ bool srp1, srp0;
+ } winbond;
+ };
+};
+
/* Current code assumes all callbacks are supplied in this object. */
struct spi_flash_protection_ops {
/*