This is an automated email from Gerrit.

"Tomas Vanek <van...@fbl.cz>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/8438

-- gerrit

commit 62eb69cac246d7f28a5c664c4692c63bd816835c
Author: Tomas Vanek <van...@fbl.cz>
Date:   Wed Aug 14 09:15:46 2024 +0200

    flash/nor/sfdp: expose SFDP_MAGIC in sfdp.h
    
    Could be handy for dummy transfer size detection.
    
    Signed-off-by: Tomas Vanek <van...@fbl.cz>
    Change-Id: Ibb485218f6c2ff9066910bb58be0fc614b77add3

diff --git a/src/flash/nor/sfdp.c b/src/flash/nor/sfdp.c
index 5bfb541946..b411a3b639 100644
--- a/src/flash/nor/sfdp.c
+++ b/src/flash/nor/sfdp.c
@@ -12,7 +12,6 @@
 #include "spi.h"
 #include "sfdp.h"
 
-#define SFDP_MAGIC                     0x50444653
 #define SFDP_ACCESS_PROT       0xFF
 #define SFDP_BASIC_FLASH       0xFF00
 #define SFDP_4BYTE_ADDR                0xFF84
diff --git a/src/flash/nor/sfdp.h b/src/flash/nor/sfdp.h
index 1c9af326b3..7a7af9931f 100644
--- a/src/flash/nor/sfdp.h
+++ b/src/flash/nor/sfdp.h
@@ -7,6 +7,8 @@
 #ifndef OPENOCD_FLASH_NOR_SFDP_H
 #define OPENOCD_FLASH_NOR_SFDP_H
 
+#define SFDP_MAGIC          0x50444653
+
 /* per JESD216D 'addr' is *byte* based but must be word aligned,
  * 'buffer' is word based, word aligned and always little-endian encoded,
  * in the flash, 'addr_len' is 3 or 4, 'dummy' ***usually*** 8

-- 

Reply via email to