Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153799
b: refs/heads/master
c: f4fa697
h: refs/heads/master
i:
  153797: 40b9ab7
  153795: 7e6c680
  153791: 5694723
v: v3
  • Loading branch information
Simon Polette authored and David Woodhouse committed Jun 5, 2009
1 parent c02298c commit e90a5d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd3fd62ecc99c709739cb969be76f44903a4043b
refs/heads/master: f4fa697c26bcd9e942de26bad970f4de1da5a49b
11 changes: 10 additions & 1 deletion trunk/drivers/mtd/nand/atmel_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <linux/slab.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h>
Expand All @@ -47,6 +48,9 @@
#define no_ecc 0
#endif

static int on_flash_bbt = 0;
module_param(on_flash_bbt, int, 0);

/* Register access macros */
#define ecc_readl(add, reg) \
__raw_readl(add + ATMEL_ECC_##reg)
Expand Down Expand Up @@ -459,12 +463,17 @@ static int __init atmel_nand_probe(struct platform_device *pdev)

if (host->board->det_pin) {
if (gpio_get_value(host->board->det_pin)) {
printk("No SmartMedia card inserted.\n");
printk(KERN_INFO "No SmartMedia card inserted.\n");
res = ENXIO;
goto err_no_card;
}
}

if (on_flash_bbt) {
printk(KERN_INFO "atmel_nand: Use On Flash BBT\n");
nand_chip->options |= NAND_USE_FLASH_BBT;
}

/* first scan to find the device and get the page size */
if (nand_scan_ident(mtd, 1)) {
res = -ENXIO;
Expand Down

0 comments on commit e90a5d4

Please sign in to comment.