目前使用的nand flash是JSFCCA5QHAFGA-405A 4G 1.8V 8-bit
一、XBL阶段
boot_images/boot/QcomPkg/Library/NandCommonLib/flash_nand_config.c
static struct flash_nand_params supported_nand_devices[] =
{
/* JSC JSFCCA5QHAFGA-405A flash ( x8 part)
* This device support onfi but non-compliance.
* page size: 4096 + 256 = 4352 bytes
* block size: 64 pages
* total size = 2048 blocks = 4Gbit
* The name of a memory particle is H27S4G8F2EKPB4
*/
{
FLASH_HAL_8_BIT_WIDTH,