Sapphire SoC DS Sapphire SoC UG Sapphire HP SoC DS Sapphire HP SoC UG RISC-V Embedded IDE UG Board Support Package
Loading...
Searching...
No Matches
spiFlash_list.h
Go to the documentation of this file.
1
2// Copyright (C) 2013-2026 Efinix Inc. All rights reserved.
3// Full license header bsp/efinix/EfxSapphireSocRV64/include/LICENSE.MD
5
6#ifndef SPI_FLASH_DEVICE_H
7#define SPI_FLASH_DEVICE_H
8
20
21#include <stdint.h>
22#include <stddef.h>
23#include "type.h"
24#include "soc.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
36
37/* ========================================================================== */
38/* SUB-GROUP : FLASH CAPABILITY FLAGS */
39/* ========================================================================== */
66
75 #define FLAG_4BYTE_SUPPORT (1 << 0)
76
81 #define FLAG_4BYTE_EXIT_ISSI (1 << 1)
82
88 #define FLAG_UNLOCK_ON_PROBE (1 << 2)
90
100 #define FLAG_QE_SR2_BIT1 (1 << 3)
101
105 #define FLAG_QE_SR1_BIT6 (1 << 4)
106
111 #define FLAG_QE_CMD_38 (1 << 5)
113
121 #define FLAG_DREAD_SUPPORT (1 << 6)
122
126 #define FLAG_QREAD_SUPPORT (1 << 7)
128
137 #define FLAG_QE_ENABLE_VIA_SR (FLAG_QE_SR2_BIT1 | FLAG_QE_SR1_BIT6)
139 // End of SPI_FLASH_DRV_F
141
142/* ========================================================================== */
143/* SUB-GROUP : VENDOR PROFILES */
144/* ========================================================================== */
200 #define PROFILE_WINBOND_64 (FLAG_DREAD_SUPPORT | FLAG_QREAD_SUPPORT | FLAG_QE_SR2_BIT1)
201
202 #define PROFILE_WINBOND_128 (FLAG_DREAD_SUPPORT | FLAG_QE_SR2_BIT1)
203
204 #define PROFILE_MACRONIX_LARGE (FLAG_DREAD_SUPPORT | FLAG_QREAD_SUPPORT| FLAG_4BYTE_SUPPORT | \
205 FLAG_QE_SR1_BIT6 | FLAG_UNLOCK_ON_PROBE)
206
207 #define PROFILE_ISSI_LARGE (FLAG_DREAD_SUPPORT | FLAG_QREAD_SUPPORT | FLAG_4BYTE_SUPPORT | \
208 FLAG_QE_SR1_BIT6 | FLAG_4BYTE_EXIT_ISSI)
209
210 #define PROFILE_GIGA_LARGE (FLAG_QREAD_SUPPORT | FLAG_4BYTE_SUPPORT | FLAG_QE_CMD_38 )
213
214/* ========================================================================== */
215/* SUB-GROUP : JEDEC IDENTIFIERS */
216/* ========================================================================== */
217
241 #define JEDEC_ID_GD25LB512MEYIGR 0xC8671A00
243
252 #define JEDEC_ID_W25Q128JVSIQ 0xEF401800
253
259 #define JEDEC_ID_W25Q64JWSSIQ 0xEF601700
261
270 #define JEDEC_ID_MX25U25645GZ4I00 0xC2253900
272
281 #define JEDEC_ID_IS25WP512M 0x9D701A00
283
288 #define JEDEC_ID_UNSupported 0xFFFFFFFF
290 // End of SPI_FLASH_JEDECS
293
294/* ========================================================================== */
295/* SUB-GROUP : DATA STRUCTURES */
296/* ========================================================================== */
346 typedef int (*flash_hook)(void *flash_instance);
347
374 // End of SPI_FLASH_Types
376
377
378/* ========================================================================== */
379/* SUB-GROUP : Supported Flash Device Info */
380/* ========================================================================== */
381
418 extern const spiFlash_info_t known_flash[];
419 // End of FLASH_INFO group
421
422#ifdef __cplusplus
423}
424#endif
425 // End of SPI_FLASH_LIST group
427
428#endif // SPI_FLASH_DEVICE_H
const spiFlash_info_t known_flash[]
Supported Flash Info.
int(* flash_hook)(void *flash_instance)
Post-Initialization Hook Function Pointer.
SPI Flash Device Descriptor.
const char * part_no
flash_hook post_init_hook
uint32_t u32
Definition type.h:22