Electronic Components Datasheet Search
  English  ▼

X  

UM0851 Datasheet(PDF) 125 Page - STMicroelectronics

Part # UM0851
Description  SPEAr is a family of highly customizable ARM-based embedded
PDF  245 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0851 Datasheet(HTML) 125 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 121Page - STMicroelectronics UM0851 Datasheet HTML 122Page - STMicroelectronics UM0851 Datasheet HTML 123Page - STMicroelectronics UM0851 Datasheet HTML 124Page - STMicroelectronics UM0851 Datasheet HTML 125Page - STMicroelectronics UM0851 Datasheet HTML 126Page - STMicroelectronics UM0851 Datasheet HTML 127Page - STMicroelectronics UM0851 Datasheet HTML 128Page - STMicroelectronics UM0851 Datasheet HTML 129Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 125 / 245 page
background image
UM0851
Non-volatile memory device drivers
Doc ID 16604 Rev 2
125/245
The NAND device driver supports various NAND Flash chips. All NAND devices are enlisted
in drivers/mtd/nand/nand_ids.c. If a new NAND device is added in the system, then its
details must be entered here. Here is a code-snippet of 'nand_ids.c'.
/*
*
Chip ID list
*
------------
*
Name, ID code, pagesize, chipsize in MegaByte, eraseblock size, options
*/
struct nand_flash_dev nand_flash_ids[] = {
{"NAND 1MiB 5V 8-bit",
0x6e, 256, 1, 0x1000, 0},
{"NAND 2MiB 5V 8-bit",
0x64, 256, 2, 0x1000, 0},
{"NAND 64MiB 1,8V 16-bit",
0x46, 512, 64, 0x4000, NAND_BUSWIDTH_16},
{"NAND 64MiB 1,8V 8-bit",
0xA2, 0,
64, 0, LP_OPTIONS},
{"NAND 64MiB 3,3V 8-bit",
0xF2, 0,
64, 0, LP_OPTIONS},
{"NAND 64MiB 1,8V 16-bit",
0xB2, 0,
64, 0, LP_OPTIONS16},
{"NAND 64MiB 3,3V 16-bit",
0xC2, 0,
64, 0, LP_OPTIONS16},
{NULL,}
}
5.1.3
NAND device driver overview
This section decribes the Linux MTD framework.
MTD overview
MTD is a generic subsystem for handling memory technology devices under Linux. MTD
provides a generic interface between the device drivers and the upper layers of the system.
Device drivers do not need to know about the storage formats used, such as FTL, FFS2,
etc. They only need to provide simple routines for read, write and erase. The presentation of
the device's contents to the user in an appropriate form will be handled by the upper layers
of the system.
The MTD system is divided into two types of module: "users" and "drivers". Drivers are the
modules which provide raw read/write/erase access to physical memory devices. Users are
like YAFFS or JFFS (as shown in figure above), they are the modules which use MTD
drivers and provide a higher-level interface to the user space.
JFFS is a file system which runs directly on the Flash, and MTDBLOCK performs no
translation - just provides a block device interface directly to the underlying MTD driver.
NAND device driver interface to MTD
The NAND device driver allocates a struct mtd_info with information about the NAND Flash
device and pointers to access routines at the time of initialization. Some important fields of
the struct mtd_info are described below.
struct mtd_info {
char name[32];
Name of the device. Rarely used, but presented to
the user via the /proc/mtd interface.
u_char type;
Type of memory technology used in this device. Choose
from:
u_long flags;
Device capabilities. Bitmask. Choose from:
Such as Direct IO is possible, eXecute-In-Place
possible, Out-of-band data (NAND flash) and Device
capable of automatic ECC
loff_t size;
Total size in bytes.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com