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

Extended operations for NPCX flash controllers. More...

Files

file  npcx_flash_api_ex.h
 Header file for NPCX flash extended operations.
 

Data Structures

struct  npcx_ex_ops_uma_in
 Input parameters for FLASH_NPCX_EX_OP_EXEC_UMA operation. More...
 
struct  npcx_ex_ops_uma_out
 Output parameters for FLASH_NPCX_EX_OP_EXEC_UMA operation. More...
 
struct  npcx_ex_ops_qspi_oper_in
 Input parameters for FLASH_NPCX_EX_OP_SET_QSPI_OPER operation. More...
 
struct  npcx_ex_ops_qspi_oper_out
 Output parameters for FLASH_NPCX_EX_OP_GET_QSPI_OPER operation. More...
 

Enumerations

enum  flash_npcx_ex_ops { FLASH_NPCX_EX_OP_EXEC_UMA = FLASH_EX_OP_VENDOR_BASE , FLASH_NPCX_EX_OP_SET_QSPI_OPER , FLASH_NPCX_EX_OP_GET_QSPI_OPER }
 Enumeration for NPCX flash extended operations. More...
 

NPCX QSPI operation control bits

#define NPCX_EX_OP_LOCK_UMA   BIT(0)
 Lock/Unlock UMA mode.
 
#define NPCX_EX_OP_INT_FLASH_WP   BIT(1)
 Issue write protection of internal flash.
 

Detailed Description

Extended operations for NPCX flash controllers.

Macro Definition Documentation

◆ NPCX_EX_OP_INT_FLASH_WP

#define NPCX_EX_OP_INT_FLASH_WP   BIT(1)

#include <include/zephyr/drivers/flash/npcx_flash_api_ex.h>

Issue write protection of internal flash.

◆ NPCX_EX_OP_LOCK_UMA

#define NPCX_EX_OP_LOCK_UMA   BIT(0)

#include <include/zephyr/drivers/flash/npcx_flash_api_ex.h>

Lock/Unlock UMA mode.

Enumeration Type Documentation

◆ flash_npcx_ex_ops

#include <include/zephyr/drivers/flash/npcx_flash_api_ex.h>

Enumeration for NPCX flash extended operations.

Enumerator
FLASH_NPCX_EX_OP_EXEC_UMA 

User Mode Access (UMA) mode execution.

Execute a SPI transaction via User Mode Access (UMA) mode. Users can perform a customized SPI transaction to read or write the device's configuration such as status registers of nor flash, power on/off, and so on.

Parameters
inPointer to a npcx_ex_ops_uma_in structure specifying the UMA transaction.
outPointer to a npcx_ex_ops_uma_out structure to store the result of the UMA transaction.
FLASH_NPCX_EX_OP_SET_QSPI_OPER 

Configure specific operation for Quad-SPI nor flash.

It configures specific operation for Quad-SPI nor flash such as lock or unlock UMA mode, set write protection pin of internal flash, and so on.

Parameters
inPointer to a npcx_ex_ops_qspi_oper_in structure specifying the operation to set.
FLASH_NPCX_EX_OP_GET_QSPI_OPER 

Get specific operation for Quad-SPI nor flash.

It returns current specific operation for Quad-SPI nor flash.

Parameters
outPointer to a npcx_ex_ops_qspi_oper_out structure to store the result of the operation.