how to add spi flash driver?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to add spi flash driver?

7,055 次查看
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?

标签 (2)
0 项奖励
回复
3 回复数

6,462 次查看
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 项奖励
回复

6,462 次查看
youyong
Contributor I

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

0 项奖励
回复

6,462 次查看
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 项奖励
回复