Micron MT29F NAND driver
|
MT_uint8 NAND_Read_ID_ONFI | ( | flash_width * | buffer | ) |
The READ ID (90h) command is used to read ONFI signature programmed into the target. This command is accepted by the target only when all die (LUNs) on the target are idle.
[out] | flash_width | *buffer: buffer contains device id |
NAND_SUCCESS |
Definition at line 205 of file nand_MT29F_lld.c.
References ADDR_READ_ID_ONFI, CMD_READID, NAND_SUCCESS, NUM_OF_READIDONFI_BYTES, PLATFORM_Close(), PLATFORM_Open(), PLATFORM_ReadData(), PLATFORM_SendAddr(), PLATFORM_SendCmd(), PLATFORM_Wait(), and TIME_WHR.
{ MT_uint32 i; /* init board transfer */ PLATFORM_Open(); /* send command and/or address */ PLATFORM_SendCmd(CMD_READID); PLATFORM_SendAddr(ADDR_READ_ID_ONFI); /* wait (see datasheet for details) */ PLATFORM_Wait(TIME_WHR); /* read output */ for(i=0; i<NUM_OF_READIDONFI_BYTES; i++) buffer[i] = PLATFORM_ReadData(); /* close board transfer */ PLATFORM_Close(); return NAND_SUCCESS; }