summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2017-10-14 18:00:20 +0200
committerNico Huber <nico.h@gmx.de>2017-12-28 10:45:46 +0000
commita1672f829328e877d9b8dea7777f25e2eba52d0e (patch)
tree8f90cab7e18bc875241ff66eef153b80e7c4a71b /flash.h
parentf43c654ad0dcb11b2738bbfac9246d09bb1949e5 (diff)
downloadflashrom-a1672f829328e877d9b8dea7777f25e2eba52d0e.tar.gz
flashrom-a1672f829328e877d9b8dea7777f25e2eba52d0e.tar.bz2
flashrom-a1672f829328e877d9b8dea7777f25e2eba52d0e.zip
spi25: Enable native 4BA read and write using feature bits
Prefer the native 4BA instruction when they are supported. In this case, override our logic to decide to use a 4BA address. Change-Id: I2f6817ca198bf923671a7aa67e956e5477d71848 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/22385 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index 5cb7040e9..ad7c91bf7 100644
--- a/flash.h
+++ b/flash.h
@@ -122,6 +122,8 @@ enum write_granularity {
#define FEATURE_4BA_SUPPORT (1 << 10)
#define FEATURE_4BA_EXT_ADDR (1 << 11) /**< Regular 3-byte operations can be used by writing the most
significant address byte into an extended address register. */
+#define FEATURE_4BA_READ (1 << 12) /**< Native 4BA read instruction (0x13) is supported. */
+#define FEATURE_4BA_WRITE (1 << 13) /**< Native 4BA byte program (0x12) is supported. */
enum test_state {
OK = 0,