From: openocd-gerrit <ope...@us...> - 2024-09-15 09:14:19
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 1dc3d7e8febb8bdd74bdcbefeb0e0f7b54817f10 (commit) from 930ec2f439f2f7d81894a292f0df5a56f9ff0ce8 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 1dc3d7e8febb8bdd74bdcbefeb0e0f7b54817f10 Author: Tomas Vanek <va...@fb...> 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 <va...@fb...> Change-Id: Ibb485218f6c2ff9066910bb58be0fc614b77add3 Reviewed-on: https://review.openocd.org/c/openocd/+/8438 Reviewed-by: Antonio Borneo <bor...@gm...> Tested-by: jenkins Reviewed-by: Andreas Bolsch <hyp...@gm...> diff --git a/src/flash/nor/sfdp.c b/src/flash/nor/sfdp.c index 5bfb54194..b411a3b63 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 1c9af326b..7a7af9931 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 ----------------------------------------------------------------------- Summary of changes: src/flash/nor/sfdp.c | 1 - src/flash/nor/sfdp.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) hooks/post-receive -- Main OpenOCD repository |