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

Extended operations for IT51XXX flash controllers. More...

Files

file  it51xxx_flash_api_ex.h
 Header file for IT51XXX extended operations.

Data Structures

struct  flash_it51xxx_ex_op_addr_protection
 flash address protection request/result More...

Macros

#define IT51XXX_PROTECT_PATH_COUNT   3
 number of supported protection paths
#define PROTECT_PATH_EC   BIT(0)
 EC protection path.
#define PROTECT_PATH_HOST   BIT(1)
 Host protection path.
#define PROTECT_PATH_DBGR   BIT(2)
 DBGR protection path.
#define PROTECT_PATH_ALL   (PROTECT_PATH_EC | PROTECT_PATH_HOST | PROTECT_PATH_DBGR)
 All protection paths.

Enumerations

enum  flash_it51xxx_ex_op {
  FLASH_IT51XXX_INTERNAL , FLASH_IT51XXX_EXTERNAL_FSPI_CS0 , FLASH_IT51XXX_EXTERNAL_FSPI_CS1 , FLASH_IT51XXX_ADDR_3B ,
  FLASH_IT51XXX_ADDR_4B , FLASH_IT51XXX_WRITE_PROTECT , FLASH_IT51XXX_READ_PROTECT
}
 Enumeration for IT51XXX flash extended operations. More...

Detailed Description

Extended operations for IT51XXX flash controllers.

Macro Definition Documentation

◆ IT51XXX_PROTECT_PATH_COUNT

#define IT51XXX_PROTECT_PATH_COUNT   3

#include <it51xxx_flash_api_ex.h>

number of supported protection paths

◆ PROTECT_PATH_ALL

#define PROTECT_PATH_ALL   (PROTECT_PATH_EC | PROTECT_PATH_HOST | PROTECT_PATH_DBGR)

#include <it51xxx_flash_api_ex.h>

All protection paths.

◆ PROTECT_PATH_DBGR

#define PROTECT_PATH_DBGR   BIT(2)

#include <it51xxx_flash_api_ex.h>

DBGR protection path.

◆ PROTECT_PATH_EC

#define PROTECT_PATH_EC   BIT(0)

#include <it51xxx_flash_api_ex.h>

EC protection path.

◆ PROTECT_PATH_HOST

#define PROTECT_PATH_HOST   BIT(1)

#include <it51xxx_flash_api_ex.h>

Host protection path.

Enumeration Type Documentation

◆ flash_it51xxx_ex_op

#include <it51xxx_flash_api_ex.h>

Enumeration for IT51XXX flash extended operations.

Defines which flash device is accessed by IT51XXX flash controller, and the addressing mode for IT51XXX flash operations.

Enumerator
FLASH_IT51XXX_INTERNAL 

Access the internal SPI e-flash.

This operation targets the on-chip embedded SPI flash integrated inside the IT51XXX SoC.

FLASH_IT51XXX_EXTERNAL_FSPI_CS0 

Access the external SPI flash connected to FSPI CS0#.

This operation targets an external flash device connected to the IT51XXX FSPI controller chip select 0.

FLASH_IT51XXX_EXTERNAL_FSPI_CS1 

Access the external SPI flash connected to FSPI CS1#.

This operation targets an external flash device connected to the IT51XXX FSPI controller chip select 1.

FLASH_IT51XXX_ADDR_3B 

3-byte (24-bit) addressing mode.

This mode supports flash devices up to 16MB capacity, using 24-bit address cycles.

FLASH_IT51XXX_ADDR_4B 

4-byte (32-bit) addressing mode.

This mode supports larger flash devices (>16MB capacity), requiring 32-bit address cycles.

FLASH_IT51XXX_WRITE_PROTECT 

Write protection.

FLASH_IT51XXX_READ_PROTECT 

Read protection.