This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
发帖
问:DM8168如何同时支持nand flash和nor falsh驱动?
环境 DM8168 + dvrrdk4.0.0.2
在现有内核支持nand flash驱动的基础上,移植spi nor flash,让内核支持spi nor flash驱动
进入系统后,把nor falsh当做一个设备文件去访问?把nor flash挂载到系统中,该如何实现?
已经按照文档把nor的驱动模块全部加载好了
insmod cfi_util.ko
insmod cfi_cmdset_0002.ko
insmod gen_probe.ko
insmod cfi_probe.ko
insmod jedec_probe.ko
insmod physmap.ko
以下是spi nor flash原理图:
DM8168芯片引脚 spi nor flash芯片引脚
SPI_D0
SPI_D1
SPI_SCLK
SPI_SCS0# 注意普通的spi控制器中cs引脚,不是GPMC_CS中的引脚,这样连接可以吗?
但是看TI81XX PSP NOR Driver User Guide.pdf文档
Linux NOR flash support
As the same GPMC chip select (CS0) is used for NAND and NOR flash in TI8168 and TI8148 EVM, their
support is mutually exclusive. Hence, disable NAND support in kernel configuration to get NOR working..
During 'make menuconfig' NAND could be disabled by deselecting "NAND Device Support" from the following
location
由于nand flash 和spi nor flash都公用cs0,所以只能选择其中一个,但是我原理图中spi nor flash引脚为普通spi控制器中的SPI_SCS0#不是GPMC_CS0
你好,
spi flash有专门的驱动的,请参考:http://processors.wiki.ti.com/index.php/TI81XX_PSP_McSPI_Driver_User_Guide。