User`s guide

i.MX53 System Development User’s Guide, Rev. 1
Freescale Semiconductor 16-1
Chapter 16
Configuring the SPI NOR Flash Memory Technology Device
(MTD) Driver
This chapter explains how to set up the SPI NOR Flash memory technology device (MTD) driver. This
driver uses the SPI interface to support Atmel data Flash. By default, the SPI NOR Flash MTD driver
creates static MTD partitions to support Atmel data Flash.
The NOR MTD implementation provides necessary information for the upper layer MTD driver.
16.1 Source Code Structure
The SPI NOR MTD driver is implemented in the following directory:
<ltib_dir>/rpm/BUILD/linux/drivers/mtd/devices/mxc_dataflash.c
16.2 Configuration Options
BSP freescale supports the following ATMEL SPI NOR Flash models:
"AT45DB011B" "at45db011d"
"AT45DB021B" "at45db021d"
"AT45DB041x" "at45db041d"
"AT45DB081B" "at45db081d"
"AT45DB161x" "at45db161d"
"AT45DB321x" "at45db321d"
"AT45DB642x" "at45db642d"
Those models are defined in the structure static struct flash_info __devinitdata dataflash_data[],
located at
<ltib_dir>/rpm/BUILD/linux/drivers/mtd/devices/mxc_dataflash.c.
The parameters are as follows:
"at45db011d", 0x1f2200, 512, 256, 8, SUP_POW2PS | IS_POW2PS
Table 16-1 defines the variables.
Table 16-1. Parameter Variables
Variable Definition
"at45db011d" Flash Name model
0x1F_2200 [5:4]Manufacter ID, [3:2]Device ID
512 Number of pages