Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153828
b: refs/heads/master
c: c90173f
h: refs/heads/master
v: v3
  • Loading branch information
Amul Saha authored and David Woodhouse committed Jun 16, 2009
1 parent fa313b6 commit 79f460d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 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: a2ab0ce09edf20b5228208405dd14bc8790fbdbd
refs/heads/master: c90173f0907486fe4010c2a8cef534e2473db43f
28 changes: 9 additions & 19 deletions trunk/drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/delay.h>
Expand All @@ -34,6 +35,14 @@
/* Default Flex-OneNAND boundary and lock respectively */
static int flex_bdry[MAX_DIES * 2] = { -1, 0, -1, 0 };

module_param_array(flex_bdry, int, NULL, 0400);
MODULE_PARM_DESC(flex_bdry, "SLC Boundary information for Flex-OneNAND"
"Syntax:flex_bdry=DIE_BDRY,LOCK,..."
"DIE_BDRY: SLC boundary of the die"
"LOCK: Locking information for SLC boundary"
" : 0->Set boundary in unlocked status"
" : 1->Set boundary in locked status");

/**
* onenand_oob_128 - oob info for Flex-Onenand with 4KB page
* For now, we expose only 64 out of 80 ecc bytes
Expand Down Expand Up @@ -3258,25 +3267,6 @@ int flexonenand_set_boundary(struct mtd_info *mtd, int die,
return ret;
}

/**
* flexonenand_setup - capture Flex-OneNAND boundary and lock
* values passed as kernel parameters
* @param s kernel parameter string
*/
static int flexonenand_setup(char *s)
{
int ints[5], i;

s = get_options(s, 5, ints);

for (i = 0; i < ints[0]; i++)
flex_bdry[i] = ints[i + 1];

return 1;
}

__setup("onenand.bdry=", flexonenand_setup);

/**
* onenand_probe - [OneNAND Interface] Probe the OneNAND device
* @param mtd MTD device structure
Expand Down

0 comments on commit 79f460d

Please sign in to comment.