From 6559c46ce957e1192bf5d4f8b77eb55724ae13ec Mon Sep 17 00:00:00 2001 From: dragonmux Date: Fri, 5 Aug 2022 17:46:20 +0100 Subject: [PATCH] sfdp: Implemented a structure for the JEDEC ID data --- src/target/sfdp.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/target/sfdp.h b/src/target/sfdp.h index 4ad0caa..8575e18 100644 --- a/src/target/sfdp.h +++ b/src/target/sfdp.h @@ -40,6 +40,12 @@ #include "target.h" +typedef struct spi_flash_id { + uint8_t manufacturer; + uint8_t type; + uint8_t capacity; +} spi_flash_id_s; + typedef struct spi_parameters { uint32_t page_size; uint32_t sector_size;