How to add spi nor flash in uboot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to add spi nor flash in uboot

5,257 Views
赵振业
Contributor I

Hi there: 

            Our board is desiged a qspi nor flash  to hold uboot, is there any porting guide or introduces about how to add spi nor flash on imx6q sabre auto board? 

Labels (3)
0 Kudos
3 Replies

3,005 Views
joanxie
NXP TechSupport
NXP TechSupport

I got reply as below:

"

The linux kernel uses the following software layers when interacting with a spi-nor memory device: mtd / spi-nor framework, spi bus driver / qspi, spi-nor chip. This set of drivers is used when interacting with a m25p32.

 

To find other spi-nor memories that should have the same interface, you can look at the id table used by the spi-nor framework (implemented in drivers/mtd/spi-nor/spi-nor.c, the table contains the name, vendor id and device id). You can also look at the id table defined in drivers/mtd/devices/m25p80.c (many flash devices are bound to this driver since many of them are compatible).

 

The fact that the linux kernel uses the same drivers with two devices is a good indication that the two devices may have the same interface. This can be used as a starting point.

"

0 Kudos

3,005 Views
赵振业
Contributor I

Dear Joan:

      Thanks for your reply,

In U-Boot 2015.04-14526, I want to use GIGADEVICE GD25Q16B SPI NORFLASH.

What I had done is:

         1,add chip config in uboot/drviers/mtd/spi/sf_params.c 

         2, set SYS_BOOT_SPINOR  in uboot/configs/mx6sabreautoandroid_defconfig

         3,choose spi chip 、cspi0 and cs0 in config files

         4,setup spi iomux in mx6qsabreauto.c 

    But it still does't  work, I also do boot from sd card,By got 000 with command "sf probe" 

  Any other steps should I do?   

  Does ECSPI0 clock requires configured in setup_spinor?

   I don't know the process to develop spinor....

0 Kudos

3,005 Views
joanxie
NXP TechSupport
NXP TechSupport

one can refer to the document as below, this is use nor flash on  ESCPI-5 CS-0

https://community.nxp.com/thread/383701 

0 Kudos