aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/atmel_nand.c2
-rw-r--r--drivers/mtd/nand/autcpu12.c4
-rw-r--r--drivers/mtd/nand/bcm_umi_nand.c2
-rw-r--r--drivers/mtd/nand/cafe_nand.c2
-rw-r--r--drivers/mtd/nand/cs553x_nand.c2
-rw-r--r--drivers/mtd/nand/davinci_nand.c2
-rw-r--r--drivers/mtd/nand/denali.c2
-rw-r--r--drivers/mtd/nand/diskonchip.c2
-rw-r--r--drivers/mtd/nand/fsl_elbc_nand.c2
-rw-r--r--drivers/mtd/nand/mpc5121_nfc.c2
-rw-r--r--drivers/mtd/nand/mxc_nand.c2
-rw-r--r--drivers/mtd/nand/nand_base.c2
-rw-r--r--drivers/mtd/nand/nand_bbt.c12
-rw-r--r--drivers/mtd/nand/nandsim.c2
-rw-r--r--drivers/mtd/nand/pasemi_nand.c2
-rw-r--r--drivers/mtd/nand/s3c2410.c2
16 files changed, 22 insertions, 22 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 78d551622e11..79a7ef276616 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -583,7 +583,7 @@ static int __init atmel_nand_probe(struct platform_device *pdev)
583 583
584 if (on_flash_bbt) { 584 if (on_flash_bbt) {
585 printk(KERN_INFO "atmel_nand: Use On Flash BBT\n"); 585 printk(KERN_INFO "atmel_nand: Use On Flash BBT\n");
586 nand_chip->bbt_options |= NAND_USE_FLASH_BBT; 586 nand_chip->bbt_options |= NAND_BBT_USE_FLASH;
587 } 587 }
588 588
589 if (!cpu_has_dma()) 589 if (!cpu_has_dma())
diff --git a/drivers/mtd/nand/autcpu12.c b/drivers/mtd/nand/autcpu12.c
index adf934df8958..2e42ec2e8ff4 100644
--- a/drivers/mtd/nand/autcpu12.c
+++ b/drivers/mtd/nand/autcpu12.c
@@ -172,9 +172,9 @@ static int __init autcpu12_init(void)
172 172
173 /* Enable the following for a flash based bad block table */ 173 /* Enable the following for a flash based bad block table */
174 /* 174 /*
175 this->bbt_options = NAND_USE_FLASH_BBT; 175 this->bbt_options = NAND_BBT_USE_FLASH;
176 */ 176 */
177 this->bbt_options = NAND_USE_FLASH_BBT; 177 this->bbt_options = NAND_BBT_USE_FLASH;
178 178
179 /* Scan to find existence of the device */ 179 /* Scan to find existence of the device */
180 if (nand_scan(autcpu12_mtd, 1)) { 180 if (nand_scan(autcpu12_mtd, 1)) {
diff --git a/drivers/mtd/nand/bcm_umi_nand.c b/drivers/mtd/nand/bcm_umi_nand.c
index 974d9bc8e48e..e3ffc4c908e4 100644
--- a/drivers/mtd/nand/bcm_umi_nand.c
+++ b/drivers/mtd/nand/bcm_umi_nand.c
@@ -474,7 +474,7 @@ static int __devinit bcm_umi_nand_probe(struct platform_device *pdev)
474 474
475#if NAND_ECC_BCH 475#if NAND_ECC_BCH
476 if (board_mtd->writesize > 512) { 476 if (board_mtd->writesize > 512) {
477 if (this->bbt_options & NAND_USE_FLASH_BBT) 477 if (this->bbt_options & NAND_BBT_USE_FLASH)
478 largepage_bbt.options = NAND_BBT_SCAN2NDPAGE; 478 largepage_bbt.options = NAND_BBT_SCAN2NDPAGE;
479 this->badblock_pattern = &largepage_bbt; 479 this->badblock_pattern = &largepage_bbt;
480 } 480 }
diff --git a/drivers/mtd/nand/cafe_nand.c b/drivers/mtd/nand/cafe_nand.c
index 7dd7d844d2cf..d0eed498ed2b 100644
--- a/drivers/mtd/nand/cafe_nand.c
+++ b/drivers/mtd/nand/cafe_nand.c
@@ -686,7 +686,7 @@ static int __devinit cafe_nand_probe(struct pci_dev *pdev,
686 cafe->nand.chip_delay = 0; 686 cafe->nand.chip_delay = 0;
687 687
688 /* Enable the following for a flash based bad block table */ 688 /* Enable the following for a flash based bad block table */
689 cafe->nand.bbt_options = NAND_USE_FLASH_BBT; 689 cafe->nand.bbt_options = NAND_BBT_USE_FLASH;
690 cafe->nand.options = NAND_NO_AUTOINCR | NAND_OWN_BUFFERS; 690 cafe->nand.options = NAND_NO_AUTOINCR | NAND_OWN_BUFFERS;
691 691
692 if (skipbbt) { 692 if (skipbbt) {
diff --git a/drivers/mtd/nand/cs553x_nand.c b/drivers/mtd/nand/cs553x_nand.c
index 05adedd8c20c..b35496143e74 100644
--- a/drivers/mtd/nand/cs553x_nand.c
+++ b/drivers/mtd/nand/cs553x_nand.c
@@ -239,7 +239,7 @@ static int __init cs553x_init_one(int cs, int mmio, unsigned long adr)
239 this->ecc.correct = nand_correct_data; 239 this->ecc.correct = nand_correct_data;
240 240
241 /* Enable the following for a flash based bad block table */ 241 /* Enable the following for a flash based bad block table */
242 this->bbt_options = NAND_USE_FLASH_BBT; 242 this->bbt_options = NAND_BBT_USE_FLASH;
243 this->options = NAND_NO_AUTOINCR; 243 this->options = NAND_NO_AUTOINCR;
244 244
245 /* Scan to find existence of the device */ 245 /* Scan to find existence of the device */
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c
index 69f70195ff35..a4c82b4344ba 100644
--- a/drivers/mtd/nand/davinci_nand.c
+++ b/drivers/mtd/nand/davinci_nand.c
@@ -581,7 +581,7 @@ static int __init nand_davinci_probe(struct platform_device *pdev)
581 info->chip.chip_delay = 0; 581 info->chip.chip_delay = 0;
582 info->chip.select_chip = nand_davinci_select_chip; 582 info->chip.select_chip = nand_davinci_select_chip;
583 583
584 /* options such as NAND_USE_FLASH_BBT */ 584 /* options such as NAND_BBT_USE_FLASH */
585 info->chip.bbt_options = pdata->bbt_options; 585 info->chip.bbt_options = pdata->bbt_options;
586 /* options such as 16-bit widths */ 586 /* options such as 16-bit widths */
587 info->chip.options = pdata->options; 587 info->chip.options = pdata->options;
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index dbb6fbae7d25..ee3014505af2 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -1577,7 +1577,7 @@ static int denali_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
1577 denali->nand.bbt_md = &bbt_mirror_descr; 1577 denali->nand.bbt_md = &bbt_mirror_descr;
1578 1578
1579 /* skip the scan for now until we have OOB read and write support */ 1579 /* skip the scan for now until we have OOB read and write support */
1580 denali->nand.bbt_options |= NAND_USE_FLASH_BBT; 1580 denali->nand.bbt_options |= NAND_BBT_USE_FLASH;
1581 denali->nand.options |= NAND_SKIP_BBTSCAN; 1581 denali->nand.options |= NAND_SKIP_BBTSCAN;
1582 denali->nand.ecc.mode = NAND_ECC_HW_SYNDROME; 1582 denali->nand.ecc.mode = NAND_ECC_HW_SYNDROME;
1583 1583
diff --git a/drivers/mtd/nand/diskonchip.c b/drivers/mtd/nand/diskonchip.c
index f70bc73e7948..b657d7f9b05c 100644
--- a/drivers/mtd/nand/diskonchip.c
+++ b/drivers/mtd/nand/diskonchip.c
@@ -1652,7 +1652,7 @@ static int __init doc_probe(unsigned long physadr)
1652 nand->ecc.mode = NAND_ECC_HW_SYNDROME; 1652 nand->ecc.mode = NAND_ECC_HW_SYNDROME;
1653 nand->ecc.size = 512; 1653 nand->ecc.size = 512;
1654 nand->ecc.bytes = 6; 1654 nand->ecc.bytes = 6;
1655 nand->bbt_options = NAND_USE_FLASH_BBT; 1655 nand->bbt_options = NAND_BBT_USE_FLASH;
1656 1656
1657 doc->physadr = physadr; 1657 doc->physadr = physadr;
1658 doc->virtadr = virtadr; 1658 doc->virtadr = virtadr;
diff --git a/drivers/mtd/nand/fsl_elbc_nand.c b/drivers/mtd/nand/fsl_elbc_nand.c
index bff4791d73c3..d4ea5fe013b7 100644
--- a/drivers/mtd/nand/fsl_elbc_nand.c
+++ b/drivers/mtd/nand/fsl_elbc_nand.c
@@ -792,7 +792,7 @@ static int fsl_elbc_chip_init(struct fsl_elbc_mtd *priv)
792 792
793 /* set up nand options */ 793 /* set up nand options */
794 chip->options = NAND_NO_READRDY | NAND_NO_AUTOINCR; 794 chip->options = NAND_NO_READRDY | NAND_NO_AUTOINCR;
795 chip->bbt_options = NAND_USE_FLASH_BBT; 795 chip->bbt_options = NAND_BBT_USE_FLASH;
796 796
797 chip->controller = &elbc_fcm_ctrl->controller; 797 chip->controller = &elbc_fcm_ctrl->controller;
798 chip->priv = priv; 798 chip->priv = priv;
diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c
index 0ac64b54bd67..2f2c35a7771e 100644
--- a/drivers/mtd/nand/mpc5121_nfc.c
+++ b/drivers/mtd/nand/mpc5121_nfc.c
@@ -736,7 +736,7 @@ static int __devinit mpc5121_nfc_probe(struct platform_device *op)
736 chip->verify_buf = mpc5121_nfc_verify_buf; 736 chip->verify_buf = mpc5121_nfc_verify_buf;
737 chip->select_chip = mpc5121_nfc_select_chip; 737 chip->select_chip = mpc5121_nfc_select_chip;
738 chip->options = NAND_NO_AUTOINCR; 738 chip->options = NAND_NO_AUTOINCR;
739 chip->bbt_options = NAND_USE_FLASH_BBT; 739 chip->bbt_options = NAND_BBT_USE_FLASH;
740 chip->ecc.mode = NAND_ECC_SOFT; 740 chip->ecc.mode = NAND_ECC_SOFT;
741 741
742 /* Support external chip-select logic on ADS5121 board */ 742 /* Support external chip-select logic on ADS5121 board */
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index ed68fde3d1be..ca42c8f335b3 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -1179,7 +1179,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
1179 this->bbt_td = &bbt_main_descr; 1179 this->bbt_td = &bbt_main_descr;
1180 this->bbt_md = &bbt_mirror_descr; 1180 this->bbt_md = &bbt_mirror_descr;
1181 /* update flash based bbt */ 1181 /* update flash based bbt */
1182 this->bbt_options |= NAND_USE_FLASH_BBT; 1182 this->bbt_options |= NAND_BBT_USE_FLASH;
1183 } 1183 }
1184 1184
1185 init_completion(&host->op_completion); 1185 init_completion(&host->op_completion);
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index d39dffe71de4..422e7872d6db 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -405,7 +405,7 @@ static int nand_default_block_markbad(struct mtd_info *mtd, loff_t ofs)
405 chip->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1); 405 chip->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1);
406 406
407 /* Do we have a flash based bad block table ? */ 407 /* Do we have a flash based bad block table ? */
408 if (chip->bbt_options & NAND_USE_FLASH_BBT) 408 if (chip->bbt_options & NAND_BBT_USE_FLASH)
409 ret = nand_update_bbt(mtd, ofs); 409 ret = nand_update_bbt(mtd, ofs);
410 else { 410 else {
411 nand_get_device(chip, mtd, FL_WRITING); 411 nand_get_device(chip, mtd, FL_WRITING);
diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c
index 66f93e2ac16b..dfea9fd1d61c 100644
--- a/drivers/mtd/nand/nand_bbt.c
+++ b/drivers/mtd/nand/nand_bbt.c
@@ -14,7 +14,7 @@
14 * 14 *
15 * When nand_scan_bbt is called, then it tries to find the bad block table 15 * When nand_scan_bbt is called, then it tries to find the bad block table
16 * depending on the options in the BBT descriptor(s). If no flash based BBT 16 * depending on the options in the BBT descriptor(s). If no flash based BBT
17 * (NAND_USE_FLASH_BBT) is specified then the device is scanned for factory 17 * (NAND_BBT_USE_FLASH) is specified then the device is scanned for factory
18 * marked good / bad blocks. This information is used to create a memory BBT. 18 * marked good / bad blocks. This information is used to create a memory BBT.
19 * Once a new bad block is discovered then the "factory" information is updated 19 * Once a new bad block is discovered then the "factory" information is updated
20 * on the device. 20 * on the device.
@@ -36,7 +36,7 @@
36 * The table is marked in the OOB area with an ident pattern and a version 36 * The table is marked in the OOB area with an ident pattern and a version
37 * number which indicates which of both tables is more up to date. If the NAND 37 * number which indicates which of both tables is more up to date. If the NAND
38 * controller needs the complete OOB area for the ECC information then the 38 * controller needs the complete OOB area for the ECC information then the
39 * option NAND_BBT_NO_OOB should be used (along with NAND_USE_FLASH_BBT, of 39 * option NAND_BBT_NO_OOB should be used (along with NAND_BBT_USE_FLASH, of
40 * course): it moves the ident pattern and the version byte into the data area 40 * course): it moves the ident pattern and the version byte into the data area
41 * and the OOB area will remain untouched. 41 * and the OOB area will remain untouched.
42 * 42 *
@@ -1083,14 +1083,14 @@ static void verify_bbt_descr(struct mtd_info *mtd, struct nand_bbt_descr *bd)
1083 bits = bd->options & NAND_BBT_NRBITS_MSK; 1083 bits = bd->options & NAND_BBT_NRBITS_MSK;
1084 1084
1085 BUG_ON((this->bbt_options & NAND_BBT_NO_OOB) && 1085 BUG_ON((this->bbt_options & NAND_BBT_NO_OOB) &&
1086 !(this->bbt_options & NAND_USE_FLASH_BBT)); 1086 !(this->bbt_options & NAND_BBT_USE_FLASH));
1087 BUG_ON(!bits); 1087 BUG_ON(!bits);
1088 1088
1089 if (bd->options & NAND_BBT_VERSION) 1089 if (bd->options & NAND_BBT_VERSION)
1090 pattern_len++; 1090 pattern_len++;
1091 1091
1092 if (bd->options & NAND_BBT_NO_OOB) { 1092 if (bd->options & NAND_BBT_NO_OOB) {
1093 BUG_ON(!(this->bbt_options & NAND_USE_FLASH_BBT)); 1093 BUG_ON(!(this->bbt_options & NAND_BBT_USE_FLASH));
1094 BUG_ON(!(this->bbt_options & NAND_BBT_NO_OOB)); 1094 BUG_ON(!(this->bbt_options & NAND_BBT_NO_OOB));
1095 BUG_ON(bd->offs); 1095 BUG_ON(bd->offs);
1096 if (bd->options & NAND_BBT_VERSION) 1096 if (bd->options & NAND_BBT_VERSION)
@@ -1357,12 +1357,12 @@ int nand_default_bbt(struct mtd_info *mtd)
1357 this->bbt_td = &bbt_main_descr; 1357 this->bbt_td = &bbt_main_descr;
1358 this->bbt_md = &bbt_mirror_descr; 1358 this->bbt_md = &bbt_mirror_descr;
1359 } 1359 }
1360 this->bbt_options |= NAND_USE_FLASH_BBT; 1360 this->bbt_options |= NAND_BBT_USE_FLASH;
1361 return nand_scan_bbt(mtd, &agand_flashbased); 1361 return nand_scan_bbt(mtd, &agand_flashbased);
1362 } 1362 }
1363 1363
1364 /* Is a flash based bad block table requested ? */ 1364 /* Is a flash based bad block table requested ? */
1365 if (this->bbt_options & NAND_USE_FLASH_BBT) { 1365 if (this->bbt_options & NAND_BBT_USE_FLASH) {
1366 /* Use the default pattern descriptors */ 1366 /* Use the default pattern descriptors */
1367 if (!this->bbt_td) { 1367 if (!this->bbt_td) {
1368 if (this->bbt_options & NAND_BBT_NO_OOB) { 1368 if (this->bbt_options & NAND_BBT_NO_OOB) {
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c
index 1856c42c62c4..34c03be77301 100644
--- a/drivers/mtd/nand/nandsim.c
+++ b/drivers/mtd/nand/nandsim.c
@@ -2275,7 +2275,7 @@ static int __init ns_init_module(void)
2275 case 2: 2275 case 2:
2276 chip->bbt_options |= NAND_BBT_NO_OOB; 2276 chip->bbt_options |= NAND_BBT_NO_OOB;
2277 case 1: 2277 case 1:
2278 chip->bbt_options |= NAND_USE_FLASH_BBT; 2278 chip->bbt_options |= NAND_BBT_USE_FLASH;
2279 case 0: 2279 case 0:
2280 break; 2280 break;
2281 default: 2281 default:
diff --git a/drivers/mtd/nand/pasemi_nand.c b/drivers/mtd/nand/pasemi_nand.c
index 1c17f091e16b..a97264ececdb 100644
--- a/drivers/mtd/nand/pasemi_nand.c
+++ b/drivers/mtd/nand/pasemi_nand.c
@@ -156,7 +156,7 @@ static int __devinit pasemi_nand_probe(struct platform_device *ofdev)
156 156
157 /* Enable the following for a flash based bad block table */ 157 /* Enable the following for a flash based bad block table */
158 chip->options = NAND_NO_AUTOINCR; 158 chip->options = NAND_NO_AUTOINCR;
159 chip->bbt_options = NAND_USE_FLASH_BBT; 159 chip->bbt_options = NAND_BBT_USE_FLASH;
160 160
161 /* Scan to find existence of the device */ 161 /* Scan to find existence of the device */
162 if (nand_scan(pasemi_nand_mtd, 1)) { 162 if (nand_scan(pasemi_nand_mtd, 1)) {
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index 370516c3f7c7..ec280798e221 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -881,7 +881,7 @@ static void s3c2410_nand_init_chip(struct s3c2410_nand_info *info,
881 * let the kernel fish out the BBT from the NAND, and also skip the 881 * let the kernel fish out the BBT from the NAND, and also skip the
882 * full NAND scan that can take 1/2s or so. Little things... */ 882 * full NAND scan that can take 1/2s or so. Little things... */
883 if (set->flash_bbt) { 883 if (set->flash_bbt) {
884 chip->bbt_options |= NAND_USE_FLASH_BBT; 884 chip->bbt_options |= NAND_BBT_USE_FLASH;
885 chip->options |= NAND_SKIP_BBTSCAN; 885 chip->options |= NAND_SKIP_BBTSCAN;
886 } 886 }
887} 887}