![]() |
PDK API Guide for J721E
|
Go to the source code of this file.
Data Structures | |
struct | Board_FlashInfo |
This structure contains information about the flash device on the board. More... | |
Typedefs | |
typedef uintptr_t | Board_flashHandle |
This type defines the opaque handle returned to a flash device that is opened. The handle must be used in all subsequent operations. More... | |
typedef int32_t | Board_flash_STATUS |
Enumerations | |
enum | Board_flashNorPeriType { BOARD_FLASH_NOR_SPI = 0, BOARD_FLASH_NOR_QSPI, BOARD_FLASH_NOR_GPMC, BOARD_FLASH_NOR_OSPI, BOARD_FLASH_NOR_HPF, BOARD_FLASH_NOR_INTF_MAX } |
Board specific Flash Device Identifiers. More... | |
enum | Board_flashNandPeriType { BOARD_FLASH_NAND_GPMC = 0, BOARD_FLASH_NAND_EMIF16, BOARD_FLASH_NAND_OSPI, BOARD_FLASH_NAND_INTF_MAX } |
Indicates the type of NAND flash peripheral. More... | |
enum | Board_flashType { BOARD_FLASH_NAND, BOARD_FLASH_NOR, BOARD_FLASH_EEPROM, BOARD_FLASH_SD, BOARD_FLASH_EMMC, BOARD_FLASH_QSPI_FLASH, BOARD_FLASH_MAX } |
Indicates the type of device. More... | |
enum | Board_flashQspiIoMode { BOARD_FLASH_QSPI_IO_MODE_SINGLE, BOARD_FLASH_QSPI_IO_MODE_DUAL, BOARD_FLASH_QSPI_IO_MODE_QUAD } |
Options to set qspi flash read/write access mode. More... | |
Functions | |
Board_flashHandle | Board_flashOpen (uint32_t deviceId, uint32_t portNum, void *params) |
Opens a flash device for use. More... | |
Board_flash_STATUS | Board_flashClose (Board_flashHandle handle) |
Closes the device. More... | |
Board_flash_STATUS | Board_flashRead (Board_flashHandle handle, uint32_t offset, uint8_t *buf, uint32_t len, void *params) |
Reads a page from the device. More... | |
Board_flash_STATUS | Board_flashWrite (Board_flashHandle handle, uint32_t offset, uint8_t *buf, uint32_t len, void *params) |
Write the data to the device. More... | |
Board_flash_STATUS | Board_flashBlkPageToOffset (Board_flashHandle handle, uint32_t *offset, uint32_t block, uint32_t page) |
Convert the block and page number to offset. More... | |
Board_flash_STATUS | Board_flashOffsetToBlkPage (Board_flashHandle handle, uint32_t offset, uint32_t *block, uint32_t *page) |
Convert the offset to block and page number. More... | |
Board_flash_STATUS | Board_flashOffsetToSectorPage (Board_flashHandle handle, uint32_t offset, uint32_t *sector, uint32_t *page, bool hybridSector_flag) |
Convert the offset to sector and page number. More... | |
Board_flash_STATUS | Board_flashEraseBlk (Board_flashHandle handle, uint32_t block_number) |
erase a block on the flash block More... | |