Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

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...
 

Detailed Description

Extended operations for Andes QSPI-NOR XIP flash.

Enumeration Type Documentation

◆ flash_andes_xip_ex_ops

#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.

Parameters
outPointer to a andes_xip_ex_ops_get_out structure to store the register values.
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.

Parameters
inPointer to a andes_xip_ex_ops_set_in structure containing the values and masks to write.
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.

Parameters
inPointer to a andes_xip_ex_ops_lock_in structure specifying whether to enable or disable the lock.
FLASH_ANDES_XIP_EX_OP_LOCK_STATE 

Get the current state of the software status register lock.

Parameters
outPointer to a andes_xip_ex_ops_lock_state_out structure to store the current lock state.
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.

Parameters
inPointer to a andes_xip_ex_ops_mem_read_cmd_in structure specifying the read command to use.

◆ flash_andes_xip_mem_rd_cmd

#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.

Enumerator
FLASH_ANDES_XIP_MEM_RD_CMD_03 

Normal Read (0x03)

FLASH_ANDES_XIP_MEM_RD_CMD_0B 

Fast Read (0x0B)

FLASH_ANDES_XIP_MEM_RD_CMD_3B 

Dual I/O Fast Read (0x3B)

FLASH_ANDES_XIP_MEM_RD_CMD_6B 

Quad I/O Fast Read (0x6B)

FLASH_ANDES_XIP_MEM_RD_CMD_BB 

Dual Output Fast Read (0xBB)

FLASH_ANDES_XIP_MEM_RD_CMD_EB 

Quad Output Fast Read (0xEB)

FLASH_ANDES_XIP_MEM_RD_CMD_13 

Normal Read with 4-byte address (0x13)

FLASH_ANDES_XIP_MEM_RD_CMD_0C 

Fast Read with 4-byte address (0x0C)

FLASH_ANDES_XIP_MEM_RD_CMD_3C 

Dual I/O Fast Read with 4-byte address (0x3C)

FLASH_ANDES_XIP_MEM_RD_CMD_6C 

Quad I/O Fast Read with 4-byte address (0x6C)

FLASH_ANDES_XIP_MEM_RD_CMD_BC 

Dual Output Fast Read with 4-byte address (0xBC)

FLASH_ANDES_XIP_MEM_RD_CMD_EC 

Quad Output Fast Read with 4-byte address (0xEC)