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.
"
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....
one can refer to the document as below, this is use nor flash on ESCPI-5 CS-0