Zephyr Project API 4.2.99
A Scalable Open Source RTOS
|
Extended operations for Andes QSPI-NOR XIP flash. More...
Files | |
file | andes_flash_xip_api_ex.h |
Header file for Andes QSPI-NOR XIP flash extended operations. | |
Data Structures | |
struct | andes_xip_ex_ops_get_out |
Output parameters for FLASH_ANDES_XIP_EX_OP_GET_STATUS_REGS operation. More... | |
struct | andes_xip_ex_ops_set_in |
Input parameters for FLASH_ANDES_XIP_EX_OP_SET_STATUS_REGS operation. More... | |
struct | andes_xip_ex_ops_lock_in |
Input parameters for FLASH_ANDES_XIP_EX_OP_LOCK operation. More... | |
struct | andes_xip_ex_ops_lock_state_out |
Output parameters for FLASH_ANDES_XIP_EX_OP_LOCK_STATE operation. More... | |
struct | andes_xip_ex_ops_mem_read_cmd_in |
Input parameters for FLASH_ANDES_XIP_EX_OP_MEM_READ_CMD operation. More... | |
Enumerations | |
enum | flash_andes_xip_ex_ops { FLASH_ANDES_XIP_EX_OP_GET_STATUS_REGS = FLASH_EX_OP_VENDOR_BASE , FLASH_ANDES_XIP_EX_OP_SET_STATUS_REGS , FLASH_ANDES_XIP_EX_OP_LOCK , FLASH_ANDES_XIP_EX_OP_LOCK_STATE , FLASH_ANDES_XIP_EX_OP_MEM_READ_CMD } |
Enumeration for Andes flash extended operations. More... | |
enum | flash_andes_xip_mem_rd_cmd { FLASH_ANDES_XIP_MEM_RD_CMD_03 = 0 , FLASH_ANDES_XIP_MEM_RD_CMD_0B = 1 , FLASH_ANDES_XIP_MEM_RD_CMD_3B = 2 , FLASH_ANDES_XIP_MEM_RD_CMD_6B = 3 , FLASH_ANDES_XIP_MEM_RD_CMD_BB = 4 , FLASH_ANDES_XIP_MEM_RD_CMD_EB = 5 , FLASH_ANDES_XIP_MEM_RD_CMD_13 = 8 , FLASH_ANDES_XIP_MEM_RD_CMD_0C = 9 , FLASH_ANDES_XIP_MEM_RD_CMD_3C = 10 , FLASH_ANDES_XIP_MEM_RD_CMD_6C = 11 , FLASH_ANDES_XIP_MEM_RD_CMD_BC = 12 , FLASH_ANDES_XIP_MEM_RD_CMD_EC = 13 } |
SPI commands for memory-mapped read mode. More... | |
Extended operations for Andes QSPI-NOR XIP flash.
#include <include/zephyr/drivers/flash/andes_flash_xip_api_ex.h>
Enumeration for Andes flash extended operations.
Enumerator | |||
---|---|---|---|
FLASH_ANDES_XIP_EX_OP_GET_STATUS_REGS | Get the three status registers (SR1, SR2, SR3). This operation reads the contents of the three status registers from the flash device.
| ||
FLASH_ANDES_XIP_EX_OP_SET_STATUS_REGS | Set the three status registers (SR1, SR2, SR3). This operation writes new values to the status registers, applying a mask to modify only specific bits. This operation is protected by a software lock that can be controlled with FLASH_ANDES_XIP_EX_OP_LOCK.
| ||
FLASH_ANDES_XIP_EX_OP_LOCK | Set a software lock to prevent status register modification. This operation enables or disables a software lock that prevents the FLASH_ANDES_XIP_EX_OP_SET_STATUS_REGS operation from executing.
| ||
FLASH_ANDES_XIP_EX_OP_LOCK_STATE | Get the current state of the software status register lock.
| ||
FLASH_ANDES_XIP_EX_OP_MEM_READ_CMD | Set the SPI command for memory-mapped read mode. This operation configures the command used by the hardware for Execute-In-Place (XIP) or memory-mapped reads.
|
#include <include/zephyr/drivers/flash/andes_flash_xip_api_ex.h>
SPI commands for memory-mapped read mode.
These values represent the different SPI read commands that can be configured for memory-mapped access using the FLASH_ANDES_XIP_EX_OP_MEM_READ_CMD operation. The command codes correspond to standard SPI flash read command opcodes.