From 125a328b4d8445f41c9fdde9e51c1b2bb40ad72e Mon Sep 17 00:00:00 2001 From: Sergii Dmytruk Date: Sun, 24 Jul 2022 17:11:05 +0300 Subject: spi25_statusreg: support reading/writing configuration register One more variation of registers. This one is read via a separate RDCR command, but written as if it's SR2 using WRSR_EXT2. Change-Id: I45f9afcc31f1928ef6263a749596380082963de4 Signed-off-by: Sergii Dmytruk Reviewed-on: https://review.coreboot.org/c/flashrom/+/66211 Reviewed-by: Edward O'Callaghan Reviewed-by: Nikolai Artemiev Tested-by: build bot (Jenkins) --- include/spi.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/spi.h') diff --git a/include/spi.h b/include/spi.h index c77866c4..505aecd0 100644 --- a/include/spi.h +++ b/include/spi.h @@ -177,6 +177,11 @@ #define JEDEC_WRSCUR_OUTSIZE 0x01 #define JEDEC_WRSCUR_INSIZE 0x00 +/* Read Configuration Register */ +#define JEDEC_RDCR 0x15 +#define JEDEC_RDCR_OUTSIZE 0x01 +#define JEDEC_RDCR_INSIZE 0x01 + /* Enter 4-byte Address Mode */ #define JEDEC_ENTER_4_BYTE_ADDR_MODE 0xB7 -- cgit v1.2.3