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_info_t Struct Reference

#include <spiFlash_list.h>

Data Fields

const char * part_no
u32 jedec_id
u32 flags
flash_hook post_init_hook

Detailed Description

SPI Flash Device Descriptor.

Note
This structure defines the properties of a specific Flash such as
  • Part Number
  • JEDEC ID
  • Capability Flash Flag
  • Custom Function
  • The driver uses this to look up capabilities based on the detected JEDEC ID.
    // Example: Creating user's custom Flash with supported vendor profile
    const spiFlash_info_t user_flash[] = {
    {
    .part_no = "CUSTOM_X", // The name of the flash
    .jedec_id = 0x9D701A00, // Expected ID, make sure it is aligned
    .flags = PROFILE_WINBOND_64, // Vendor profile
    .post_init_hook = NULL, // Custom function
    },
    };
    #define PROFILE_WINBOND_64
    SPI Flash Device Descriptor.

Definition at line 368 of file spiFlash_list.h.

Field Documentation

◆ flags

u32 spiFlash_info_t::flags

Capability Flags (Flash Capability Flags)

Definition at line 371 of file spiFlash_list.h.

◆ jedec_id

u32 spiFlash_info_t::jedec_id

Expected JEDEC ID (Manuf + Type + Cap)

Definition at line 370 of file spiFlash_list.h.

◆ part_no

const char* spiFlash_info_t::part_no

String representation of Part Number (e.g., "W25Q128")

Definition at line 369 of file spiFlash_list.h.

◆ post_init_hook

flash_hook spiFlash_info_t::post_init_hook

Optional callback (NULL if unused)

Definition at line 372 of file spiFlash_list.h.


The documentation for this struct was generated from the following file:
  • C:/Users/JasonLau/Downloads/workspace_local/GitLab/efx_IP/efx_soc_rv64/embedded_sw/software/standalone/driver/spiFlash/spiFlash_list.h