UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 51209

14.1 - U-Boot Does not Properly Identify the QSPI N25Q128(3V)

Description

When trying to program Micron QSPI device N25Q128A13 (3.3V) , it is noted that the ID Codes are slightly off and the flash devices is not properly programmed.

Solution

This issue occurs because  N25Q128A13(3.3V) has a different ID Code than  N25Q128A11(1.8V) ( the one used on the ZC702 ).

N25Q128A13 -> 0x20BA1810
N25Q128A11 -> 0x20BB1810

In order to use N25Q128A13 in a design, the U-Boot code must be modified to consider the different ID Codes.

Patch

Modify u-boot-xarm.git/drivers/mtd/spi/stmicro.c to:

1. Include the define for the 3V3 model

#define STM_ID_N25Q128        0x20BB1810
#define STM_ID_N25Q128_3V    0x20BA1810

2. Add the entry for the 3V3 model

* This entry detects N25Q128 at 3V
*/    
{
    .idcode1 = STM_ID_M25P128,
    .idcode = STM_ID_N25Q128_3V,
    .page_size = 256,
    .pages_per_sector = 256,
#ifdef CONFIG_XILINX_PSS_QSPI_USE_DUAL_FLASH
    .nr_sectors = 512,
    .name = "N25Q128x2",
#else
    .nr_sectors = 256,
    .name = "N25Q128",
#endif
},
AR# 51209
Date Created 08/08/2012
Last Updated 09/16/2013
Status Active
Type Known Issues
Devices
  • Zynq-7000
Tools
  • EDK