13#ifndef ZEPHYR_INCLUDE_DRIVERS_FLASH_IT51XXX_FLASH_API_EX_H_
14#define ZEPHYR_INCLUDE_DRIVERS_FLASH_IT51XXX_FLASH_API_EX_H_
30#define IT51XXX_PROTECT_PATH_COUNT 3
32#define PROTECT_PATH_EC BIT(0)
34#define PROTECT_PATH_HOST BIT(1)
36#define PROTECT_PATH_DBGR BIT(2)
38#define PROTECT_PATH_ALL (PROTECT_PATH_EC | PROTECT_PATH_HOST | PROTECT_PATH_DBGR)
Main header file for Flash driver API.
flash_it51xxx_ex_op
Enumeration for IT51XXX flash extended operations.
Definition it51xxx_flash_api_ex.h:47
@ FLASH_IT51XXX_ADDR_4B
4-byte (32-bit) addressing mode.
Definition it51xxx_flash_api_ex.h:82
@ FLASH_IT51XXX_EXTERNAL_FSPI_CS0
Access the external SPI flash connected to FSPI CS0#.
Definition it51xxx_flash_api_ex.h:61
@ FLASH_IT51XXX_WRITE_PROTECT
Write protection.
Definition it51xxx_flash_api_ex.h:86
@ FLASH_IT51XXX_READ_PROTECT
Read protection.
Definition it51xxx_flash_api_ex.h:90
@ FLASH_IT51XXX_ADDR_3B
3-byte (24-bit) addressing mode.
Definition it51xxx_flash_api_ex.h:75
@ FLASH_IT51XXX_EXTERNAL_FSPI_CS1
Access the external SPI flash connected to FSPI CS1#.
Definition it51xxx_flash_api_ex.h:68
@ FLASH_IT51XXX_INTERNAL
Access the internal SPI e-flash.
Definition it51xxx_flash_api_ex.h:54
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
flash address protection request/result
Definition it51xxx_flash_api_ex.h:96
uint32_t addr
start address of the protection region
Definition it51xxx_flash_api_ex.h:98
uint8_t path
protection path bitmap (see PROTECT_PATH_*)
Definition it51xxx_flash_api_ex.h:102
size_t size
size of the protection region in bytes
Definition it51xxx_flash_api_ex.h:100
bool is_protected
protection status of the specified region
Definition it51xxx_flash_api_ex.h:104