Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved.
Description: Provides sfc port template
History:
2022-11-30, Create file.
◆ EFLASH_CMD_LEN_MAX
| #define EFLASH_CMD_LEN_MAX 4 |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2023. All rights reserved.
Description: Provides flash config info header file.
History: 2022-11-30, Create file.
◆ FLASH_CHIP_PROTECT_END
| #define FLASH_CHIP_PROTECT_END 0x400000 |
◆ FLASH_INFO_TABLE_SIZE
| #define FLASH_INFO_TABLE_SIZE g_flash_spi_info_num |
◆ SFC_SAFE_OFFSET
| #define SFC_SAFE_OFFSET 0x10000 |
◆ SPI_CMD_SUPPORT
| #define SPI_CMD_SUPPORT 0x1 |
◆ flash_cmd_execute_t
◆ flash_spi_ctrl_t
◆ flash_spi_info_t
◆ spi_opreation_t
◆ flash_cmd_type_t
表驱动执行Flash指令的指令格式
| 枚举值 |
|---|
| FLASH_CMD_TYPE_CMD | 设置flash属性类型的指令
|
| FLASH_CMD_TYPE_PROCESSING | 读取Flash信息并比对某一位的值
|
| FLASH_CMD_TYPE_END | 指令结束标志
|
| FLASH_CMD_BUFF | |
◆ hal_sfc_get_flash_id()
| errcode_t hal_sfc_get_flash_id |
( |
uint32_t * |
flash_id | ) |
|
◆ sfc_port_get_delay_once_time()
| uint32_t sfc_port_get_delay_once_time |
( |
void |
| ) |
|
◆ sfc_port_get_delay_times()
| uint32_t sfc_port_get_delay_times |
( |
void |
| ) |
|
◆ sfc_port_get_flash_num()
| uint32_t sfc_port_get_flash_num |
( |
void |
| ) |
|
◆ sfc_port_get_flash_spi_infos()
◆ sfc_port_get_sfc_bus_dma_regs_base_addr()
| uintptr_t sfc_port_get_sfc_bus_dma_regs_base_addr |
( |
void |
| ) |
|
◆ sfc_port_get_sfc_bus_regs_base_addr()
| uintptr_t sfc_port_get_sfc_bus_regs_base_addr |
( |
void |
| ) |
|
◆ sfc_port_get_sfc_cmd_databuf_base_addr()
| uintptr_t sfc_port_get_sfc_cmd_databuf_base_addr |
( |
void |
| ) |
|
◆ sfc_port_get_sfc_cmd_regs_base_addr()
| uintptr_t sfc_port_get_sfc_cmd_regs_base_addr |
( |
void |
| ) |
|
◆ sfc_port_get_sfc_end_addr()
◆ sfc_port_get_sfc_global_conf_base_addr()
| uintptr_t sfc_port_get_sfc_global_conf_base_addr |
( |
void |
| ) |
|
◆ sfc_port_get_sfc_start_addr()
| uintptr_t sfc_port_get_sfc_start_addr |
( |
void |
| ) |
|
◆ sfc_port_get_unknown_flash_info()
◆ sfc_port_lock()
| uint32_t sfc_port_lock |
( |
void |
| ) |
|
◆ sfc_port_lock_init()
| void sfc_port_lock_init |
( |
void |
| ) |
|
◆ sfc_port_register_hal_funcs()
| void sfc_port_register_hal_funcs |
( |
void |
| ) |
|
将hal funcs对象注册到hal_sfc模块中。
◆ sfc_port_set_delay_once_time()
| void sfc_port_set_delay_once_time |
( |
uint32_t |
delay_us | ) |
|
◆ sfc_port_set_delay_times()
| void sfc_port_set_delay_times |
( |
uint32_t |
delay_times | ) |
|
◆ sfc_port_unlock()
| void sfc_port_unlock |
( |
uint32_t |
lock_sts | ) |
|
◆ sfc_port_unregister_hal_funcs()
| void sfc_port_unregister_hal_funcs |
( |
void |
| ) |
|