Update on 18 Jan 2023. Expand to see details.

22299de Remove internal deprecated files.
2b9332f Fix ECC issues by new NAND logic
6a5eda1 Add a notice for not released file.
b756fb0 Upgrade to the latest Container Images.
This commit is contained in:
Xiuwen Cai
2023-01-18 08:37:32 +00:00
parent dbf4f90598
commit 27e3f5d915
43 changed files with 4075 additions and 4735 deletions
@@ -86,48 +86,11 @@ UINT _lx_nand_flash_driver_block_status_get(LX_NAND_FLASH *nand_flash, ULONG bl
UINT status;
/* Determine if the block status cache is disabled. */
if (nand_flash -> lx_nand_flash_block_status_cache == LX_NULL)
{
/* Increment the block status get count. */
nand_flash -> lx_nand_flash_diagnostic_block_status_gets++;
/* Increment the block status get count. */
nand_flash -> lx_nand_flash_diagnostic_block_status_gets++;
/* Call driver block status get function. */
status = (nand_flash -> lx_nand_flash_driver_block_status_get)(block, bad_block_flag);
}
else
{
/* Determine if the block status cache entry is valid. */
if (nand_flash -> lx_nand_flash_block_status_cache[block] != 0)
{
/* Simply return this value. */
*bad_block_flag = nand_flash -> lx_nand_flash_block_status_cache[block];
/* Increment the number of status byte cache hits. */
nand_flash -> lx_nand_flash_diagnostic_block_status_cache_hits++;
/* Return successful status. */
status = LX_SUCCESS;
}
else
{
/* Increment the block status get count. */
nand_flash -> lx_nand_flash_diagnostic_block_status_gets++;
/* Call driver block status get function. */
status = (nand_flash -> lx_nand_flash_driver_block_status_get)(block, bad_block_flag);
/* Increment the number of status byte cache misses. */
nand_flash -> lx_nand_flash_diagnostic_block_status_cache_misses++;
/* Save the block status value in the cache. */
nand_flash -> lx_nand_flash_block_status_cache[block] = *bad_block_flag;
}
}
/* Call driver block status get function. */
status = (nand_flash -> lx_nand_flash_driver_block_status_get)(block, bad_block_flag);
/* Return status. */
return(status);