Visible to Intel only — GUID: dqj1481129895627
Ixiasoft
Visible to Intel only — GUID: dqj1481129895627
Ixiasoft
15.4.1. Discovery and Initialization
- ONFI 1.0-compliant devices
- Legacy (non-ONFI) NAND devices
The NAND flash controller identifies ONFI-compliant connected devices using ONFI discovery protocol, by sending the Read ID command. For devices that do not recognize this command (especially for 512‑byte page size devices), software must write to the system manager to assert the bootstrap_512B_device signal to identify the device type before releasing the NAND controller from reset.
Signal | Default Value | Description |
---|---|---|
bootstrap_inhibit_init | 0 | Inhibit the NAND controller from any initialization. The controller does not perform a query of the device and does not issue a Page Load command for block0, page0 for SLC devices. When this signal is asserted, it is expected that the software programs all registers pertaining to device parameters like: page size and width. |
bootstrap_512B_device | 0 | Inform the NAND controller that 512-byte devices are connected. |
bootstrap_512B_x16_device | 0 | Inform the NAND controller that 512-byte page size devices are connected and the device I/O width is 16 bits. This signal should be asserted in case of 512-byte devices only. |
bootstrap_two_row_addr_cycles | 0 | The connected device requires only two address cycles instead of the normal three row address cycles. |
bootstrap_inhibit_b0p0_load | 1 | Bootstrap pin to inform the NAND controller not to issue a Page Load command for block0, page0, of the device as a part of the initialization procedure. |
To support initialization, the rdy_busy_in pin must be connected.
The NAND flash controller performs the following initialization steps:
- If the system manager is asserting bootstrap_inhibit_init, the flash controller goes directly to 7.
- When the device is ready, the flash controller sends the "Read ID" command to read the ONFI signature from the memory device, to determine whether an ONFI or a legacy device is connected.
- If the data returned by the memory device has an ONFI signature, the flash controller then reads the device parameter page. The flash controller stores the relevant device feature information in internal memory control registers, enabling it to correctly program other registers in the flash device, and goes to 5.
- If the data does not have a valid ONFI signature, the flash controller assumes that it is a legacy (non‑ONFI) device. The flash controller then performs the following steps:
- Sends the reset command to the device
- Reads the device signature information
- Stores the relevant values into internal memory controller registers
- The flash controller resets the memory device. At the same time, it verifies the width of the memory interface. The HPS supports one 8‑bit or 16-bit NAND flash device. The flash controller detects the memory interface width.
- The flash controller sends the Page Load command to block 0, page 0 of the device, configuring direct read access, so the processor can read from that page. The processor can start reading from the first page of the flash memory.
Note: The system manager can bypass this step by asserting bootstrap_inhibit_b0p0_load before reset is de-asserted.
- The flash controller sends the reset command to the flash.
- The flash controller clears the rst_comp bit in the intr_status0 register in the status group to indicate to software that the flash reset is complete.