User`s manual

Getting Started With Linux on the LPC3250 OEM Board Page 40
Copyright 2009 © Embedded Artists AB Rev A
The LPC3250 microcontroller has two NAND Flash controllers, one multi-level controller (MLC) and
one single level controller (SLC).
5.8.2 Device Driver and Configuration
The driver for the LPC3250 SLC NAND driver is located here in the source tree:
/drivers/mtd/nand/lpc32xx_nand.c
.
The NAND MTD partitions are setup in the board specific file (
/arch/arm/mach-
lpc32xx/board-ea3250.c
) and have the following layout. The kickstart, S1L and u-boot are all
setup as one MTD partition in Linux.
Block
Offset
Size
0
0x00000000
128 K
Kickstart Bootloader
1-2
0x00020000
256 K
S1L Bootloader
3-6
0x00060000
512 K
u-boot
7
0x000E0000
128 K
u-boot environment
8-39
0x00100000
4 M
Linux kernel
40-80
0x00500000
5 M
Root File system
81-
0x00A00000
The following configuration options are related to the NAND flash functionality.
Configuration
CONFIG_MTD
Enable Memory Technology Device (MTD)
support
CONFIG_MTD_NAND Enable NAND device support
CONFIG_MTD_NAND_SLC_LPC32XX
Enable support for the LPC3250 SLC NAND
driver
5.8.3 Usage
One way of using the NAND flash is to store the root file system and kernel image in an MTD partition,
see section 4.3.3 and section 4.3.5 for more information.