User`s guide
Configuring the SPI NOR Flash Memory Technology Device (MTD) Driver
i.MX53 System Development User’s Guide, Rev. 1
Freescale Semiconductor 16-3
Bootloader starts from address 0 and has a size of 1 Mbyte. Kernel starts from address 1 Mbyte and
has a size of 3 Mbytes.
NOTE
You may create more partitions or modify the size and names of these ones.
To add more partitions, define another structure on the
mxc_dataflash_partitions variable.
4. To get to the SPI NOR MTD driver, use the command ./ltib -c when located in the <ltib dir>.
5. On the screen displayed, select Configure the kernel and exit.
6. When the next screen appears, select the following option to enable the SPI NOR MTD driver:
CONFIG_MTD_MXC_DATAFLASH
This config enables access to the Atmel 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
16.4 Changing the SPI Interface Configuration
The i.MX53 chip has three CSPI interfaces: one CSPI and two ECSPI. By default, the i.MX53 BSP
configures ECSPI-1 interface in the master mode to connect to the SPI NOR Flash. It also uses
chip select 1 from this ECSPI interface (SS1).
The main difference between CSPI and ECSPI is the supported baud rate. CSPI supports up to 26 Mbps
in master mode and ECSPI supports up to 52 Mbps.
16.4.1 Connecting SPI NOR Flash to Another CSPI Interface
Before connecting SPI NOR Flash to another CSPI, define the three things listed below:
• CSPI interface (between CSPI, ECSPI-1 or ECSPI-2).
• Chip select (between SS[3:0]).
• External signals
16.4.2 Changing the CSPI Interface
To change the CSPI interface used, use the following procedure:
1. Locate the file at arch/arm/mach-mx5/mx53_<board name>.c
2. Look for the line mxc_register_device(&mxcspi1_device, &mxcspi1_data);
3. Use the function static void __init mxc_board_init(void) to register the CSPI-1 interface. To
enable the other CSPI interface, replace the first parameter as shown in Table 16-3:
Table 16-3. CSPI Parameters
CSPI Parameter Name
ECSPI-1 &mxcspi1_device