summaryrefslogtreecommitdiff
path: root/common/spi/flash_reg/Kconfig.module
diff options
context:
space:
mode:
Diffstat (limited to 'common/spi/flash_reg/Kconfig.module')
-rw-r--r--common/spi/flash_reg/Kconfig.module12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/spi/flash_reg/Kconfig.module b/common/spi/flash_reg/Kconfig.module
new file mode 100644
index 0000000000..04a306c8d0
--- /dev/null
+++ b/common/spi/flash_reg/Kconfig.module
@@ -0,0 +1,12 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+config PLATFORM_EC_SPI_FLASH_REGS
+ bool
+ help
+ Enables flash registers for SPI flash (both internal and external).
+ When enabled, two new functions will become available: (1) a function
+ to compute the block write protection range from a set of status
+ registers, and (2) the inverse function to set the status registers
+ based on the desired protection offset/length.