![]() |
PDK API Guide for J721E
|
This structure contains information about the flash device on the board.
The bblist points to an array of bytes where each position represents a block on the device. If the block is good it is marked as 0xFF. If the block is bad, it is marked as 0x00. For devices that do not support a bad block list this value will be NULL. The number of blocks in the bblist is determined by the block_count field.
Data Fields | |
uint32_t | flashHandle |
int32_t | manufacturer_id |
int32_t | device_id |
Board_flashType | type |
int32_t | width |
int32_t | block_count |
int32_t | page_count |
int32_t | page_size |
int32_t | spare_size |
int32_t | bboffset |
uint32_t | column |
uint8_t * | bblist |
uint32_t | sector_size |
bool | blkErase_flag |
uint32_t Board_FlashInfo::flashHandle |
Handle to the flash interface as returned by flash init function
int32_t Board_FlashInfo::manufacturer_id |
manufacturer ID
int32_t Board_FlashInfo::device_id |
Manufacturers device ID
Board_flashType Board_FlashInfo::type |
Type of device
int32_t Board_FlashInfo::width |
Width in bits
int32_t Board_FlashInfo::block_count |
Total blocks. First block starts at 0.
int32_t Board_FlashInfo::page_count |
Page count per block
int32_t Board_FlashInfo::page_size |
Number of bytes in a page
int32_t Board_FlashInfo::spare_size |
Spare area size in bytes
int32_t Board_FlashInfo::bboffset |
Offset into spare area to check for a bad block
uint32_t Board_FlashInfo::column |
Column for a NAND device
uint8_t* Board_FlashInfo::bblist |
uint32_t Board_FlashInfo::sector_size |
<Bad Block list or NULL if device does not support one Number of bytes in a sector
bool Board_FlashInfo::blkErase_flag |
Flag to be set false for Sector Erase and true for Block Erase