how to add spi flash driver?

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

how to add spi flash driver?

3,769 Views
youyong
Contributor I

the cpu is imx6dl,and we need add a driver of AT45DB021E spi flash.but it is not succeed.because it is also nor flash,so i add it like m25p80.c.but the result is as follows images.I can not see it in the "/dev".why?

Labels (2)
0 Kudos
3 Replies

3,176 Views
igorpadykov
NXP Employee
NXP Employee

Hi youyong

please check struct spi_device_id spi_nor_ids in linux/drivers/mtd/devices/spi-nor/spi-nor.c

and add necessary model parameters. More details can be found in Chapter 31
SPI NOR Flash Memory Technology Device (MTD) Driver attached Linux Manual.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

3,176 Views
youyong
Contributor I

How do I know if this drive is successful? For example, there are specific flags in the “/dev” directory.

0 Kudos

3,176 Views
igorpadykov
NXP Employee
NXP Employee

having sources, one can debug it using AN4553 Using Open Source Debugging

Tools for Linux on i.MX Processors
https://www.nxp.com/docs/en/application-note/AN4553.pdf

~igor

0 Kudos