⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nand_ids.h

📁 使用Linux ARM GCC编译器来编译
💻 H
字号:
/* * vivi/include/mtd/nand_ids.h:  *   Contains standard defines and IDs for NAND flash devices * * Based on linux/include/linux/mtd/nand_ids.h * * $Id: nand_ids.h,v 1.1 2002/08/08 11:48:42 nandy Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * */#ifndef __VIVI_MTD_NAND_IDS_H#define __VIVI_MTD_NAND_IDS_Hstatic struct nand_flash_dev nand_flash_ids[] = {	//   evice name,          manufacturer ID, device id,chipshift,pagesize,pageadrlen,erasesize/*	{"Toshiba TC5816BDC",     NAND_MFR_TOSHIBA,   0x64,      21,     0x56,      2,      0x1000},	// 2Mb 5V	{"Toshiba TC58V16BDC",    NAND_MFR_TOSHIBA,   0xea,      21,     0x56,      2,      0x1000},	// 2Mb 3.3V	{"Toshiba TC5832DC",      NAND_MFR_TOSHIBA,   0x6b,      22,     0x12,      2,      0x2000},	// 4Mb 5V	{"Toshiba TC58V32DC",     NAND_MFR_TOSHIBA,   0xe5,      22,     0x12,      2,      0x2000},	// 4Mb 3.3V	{"Toshiba TC58V64AFT/DC", NAND_MFR_TOSHIBA,   0xe6,      23,     0x12,      2,      0x2000},	// 8Mb 3.3V	{"Toshiba TH58V128DC",    NAND_MFR_TOSHIBA,   0x73,      24,     0x12,      2,      0x4000},	// 16Mb	{"Toshiba TC58256FT/DC",  NAND_MFR_TOSHIBA,   0x75,      25,     0x12,      2,      0x4000},	// 32Mb	{"Toshiba TH58512FT",     NAND_MFR_TOSHIBA,   0x76,      26,     0x12,      3,      0x4000},	// 64Mb	{"Toshiba TH58NS100/DC",  NAND_MFR_TOSHIBA,   0x79,      27,     0x12,      3,      0x4000},	// 128Mb	{"Samsung KM29N16000",    NAND_MFR_SAMSUNG,   0x64,      21,     0x56,      2,      0x1000},	// 2Mb 5V	{"Samsung KM29W16000",    NAND_MFR_SAMSUNG,   0xea,      21,     0x56,      2,      0x1000},	// 2Mb 3.3V	{"Samsung unknown 4Mb",   NAND_MFR_SAMSUNG,   0x6b,      22,     0x12,      2,      0x2000},	// 4Mb 5V	{"Samsung KM29W32000",    NAND_MFR_SAMSUNG,   0xe3,      22,     0x12,      2,      0x2000},	// 4Mb 3.3V	{"Samsung unknown 4Mb",   NAND_MFR_SAMSUNG,   0xe5,      22,     0x12,      2,      0x2000},	// 4Mb 3.3V	{"Samsung KM29U64000",    NAND_MFR_SAMSUNG,   0xe6,      23,     0x12,      2,      0x2000},	// 8Mb 3.3V	{"Samsung KM29U128T",     NAND_MFR_SAMSUNG,   0x73,      24,     0x12,      2,      0x4000},	// 16Mb	{"Samsung KM29U256T",     NAND_MFR_SAMSUNG,   0x75,      25,     0x12,      2,      0x4000},	// 32Mb*/	{"Samsung K9F1208U0B",    NAND_MFR_SAMSUNG,   0x76,      26,     0x12,      3,      0x4000},	// 64Mb	{"Samsung K9D1G08V0M",    NAND_MFR_SAMSUNG,   0x79,      27,     0x12,      3,      0x4000},	// 128Mb	// >>> Add new device	{"Samsung K9F2G08U0M",    NAND_MFR_SAMSUNG,   0xDA,      28,        0,      0,       0 }, // 256Mb	{"Samsung K9F4G08U0M",    NAND_MFR_SAMSUNG,   0xDC,      29,        0,      0,       0 }, // 512Mb	// <<< Add new device	{NULL,}};#if defined(CONFIG_MTD_SMC) || defined(CONFIG_MTD_SMC_MODULE)static struct nand_smc_dev nand_smc_info[8] = {/*  CpV, HpC, SpH,   allS, szS, PBpV, LBpV, SpB, PpB, szP */  { 125,   4,   4,   2000, 512,  256,  250,   8,  16, 256},    /* DI_1M */  { 125,   4,   8,   4000, 512,  512,  500,   8,  16, 256},    /* DI_2M */  { 250,   4,   8,   8000, 512,  512,  500,  16,  16, 512},    /* DI_4M */  { 250,   4,  16,  16000, 512, 1024, 1000,  16,  16, 512},    /* DI_8M */  { 500,   4,  16,  32000, 512, 1024, 1000,  32,  32, 512},    /* DI_16M */  { 500,   8,  16,  64000, 512, 2048, 2000,  32,  32, 512},    /* DI_32M */  { 500,   8,  32, 128000, 512, 4096, 4000,  32,  32, 512},    /* DI_64M */  { 500,  16,  32, 256000, 512, 8192, 8000,  32,  32, 512}     /* DI_128M */};#define DI_1M                  0#define DI_2M                  1#define DI_4M                  2#define DI_8M                  3#define DI_16M                 4#define DI_32M                 5#define DI_64M                 6#define DI_128M                7#define MAX_DI_NUM             8#define GET_DI_NUM(x)          ((x) - 20)#endif#endif /* __VIVI_MTD_NAND_IDS_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -