SPI NOR Flash Memory Technology Device (MTD) Driver
i.MX51 EVK Linux Reference Manual
19-2
Freescale Semiconductor
devices can be mounted by JFFS, JFFS2 and CRAMFS file systems. The SPI NOR MTD driver is based
on the MTD data Flash driver in the kernel by adding SPI access. In the initialization phase, the SPI NOR
MTD driver detects a data Flash by reading the JEDEC ID. Then the driver adds the MTD device. The SPI
NOR MTD driver also provides the interfaces to read, write, erase NOR Flash.
19.3
Driver Features
This NOR MTD implementation supports the following features:
•
Provides necessary information for the upper layer MTD driver
19.4
Source Code Structure
The SPI NOR MTD driver is implemented in the following directory:
<ltib_dir>/rpm/BUILD/linux/drivers/mtd/devices/
19.5
Menu Configuration Options
To get to the SPI NOR MTD driver, use the command
./ltib -c
when located in the <
ltib dir
>. On the
screen displayed, select
Configure the kernel
and exit. When the next screen appears select the following
options to enable the SPI NOR MTD driver:
•
CONFIG_MTD_MXC_DATAFLASH: This config enables the access to AT DataFlash chips,
using FSL SPI. In menuconfig, this option is available under
Device Drivers
>
Memory Technology Device (MTD) support
>
Self-contained MTD device
drivers
>
Support for AT DataFlash via FSL SPI interface
Table 19-1. SPI NOR MTD Driver Files
File
Description
mxc_dataflash.c
Source file
Summary of Contents for i.MX51 EVK
Page 1: ...Part Number 924 76374 Rev 10 11 01 11 2010 i MX51 EVK Linux Reference Manual...
Page 14: ...i MX51 EVK Linux Reference Manual xiv Freescale Semiconductor...
Page 18: ...i MX51 EVK Linux Reference Manual xviii Freescale Semiconductor...
Page 24: ...i MX51 EVK Linux Reference Manual xxiv Freescale Semiconductor...
Page 38: ...Machine Specific Layer MSL i MX51 EVK Linux Reference Manual 2 8 Freescale Semiconductor...
Page 52: ...MC13892 Digitizer Driver i MX51 EVK Linux Reference Manual 5 4 Freescale Semiconductor...
Page 64: ...TV Encoder TVE Driver i MX51 EVK Linux Reference Manual 10 4 Freescale Semiconductor...
Page 82: ...Video for Linux Two V4L2 Driver i MX51 EVK Linux Reference Manual 12 8 Freescale Semiconductor...
Page 86: ...i MX5 Dual Display i MX51 EVK Linux Reference Manual 13 4 Freescale Semiconductor...
Page 100: ...X Windows Acceleration i MX51 EVK Linux Reference Manual 16 6 Freescale Semiconductor...
Page 118: ...Low Level Keypad Driver i MX51 EVK Linux Reference Manual 20 6 Freescale Semiconductor...
Page 134: ...Security Drivers i MX51 EVK Linux Reference Manual 22 10 Freescale Semiconductor...
Page 148: ...Inter IC I2C Driver i MX51 EVK Linux Reference Manual 24 4 Freescale Semiconductor...
Page 178: ...ARC USB Driver i MX51 EVK Linux Reference Manual 29 10 Freescale Semiconductor...
Page 194: ...OProfile i MX51 EVK Linux Reference Manual 33 6 Freescale Semiconductor...