Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
8fa7a41f
Commit
8fa7a41f
authored
Jan 11, 2007
by
David Woodhouse
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.infradead.org/~kmpark/onenand-mtd-2.6
parents
abb536e7
0fc2ccea
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
124 additions
and
74 deletions
+124
-74
drivers/mtd/onenand/onenand_base.c
drivers/mtd/onenand/onenand_base.c
+119
-73
drivers/mtd/onenand/onenand_bbt.c
drivers/mtd/onenand/onenand_bbt.c
+2
-1
include/linux/mtd/onenand.h
include/linux/mtd/onenand.h
+3
-0
No files found.
drivers/mtd/onenand/onenand_base.c
View file @
8fa7a41f
This diff is collapsed.
Click to expand it.
drivers/mtd/onenand/onenand_bbt.c
View file @
8fa7a41f
...
@@ -93,7 +93,8 @@ static int create_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr
...
@@ -93,7 +93,8 @@ static int create_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr
ret
=
onenand_do_read_oob
(
mtd
,
from
+
j
*
mtd
->
writesize
+
bd
->
offs
,
ret
=
onenand_do_read_oob
(
mtd
,
from
+
j
*
mtd
->
writesize
+
bd
->
offs
,
readlen
,
&
retlen
,
&
buf
[
0
]);
readlen
,
&
retlen
,
&
buf
[
0
]);
if
(
ret
)
/* If it is a initial bad block, just ignore it */
if
(
ret
&&
!
(
ret
&
ONENAND_CTRL_LOAD
))
return
ret
;
return
ret
;
if
(
check_short_pattern
(
&
buf
[
j
*
scanlen
],
scanlen
,
mtd
->
writesize
,
bd
))
{
if
(
check_short_pattern
(
&
buf
[
j
*
scanlen
],
scanlen
,
mtd
->
writesize
,
bd
))
{
...
...
include/linux/mtd/onenand.h
View file @
8fa7a41f
...
@@ -88,6 +88,7 @@ struct onenand_bufferram {
...
@@ -88,6 +88,7 @@ struct onenand_bufferram {
* operation is in progress
* operation is in progress
* @state: [INTERN] the current state of the OneNAND device
* @state: [INTERN] the current state of the OneNAND device
* @page_buf: data buffer
* @page_buf: data buffer
* @subpagesize: [INTERN] holds the subpagesize
* @ecclayout: [REPLACEABLE] the default ecc placement scheme
* @ecclayout: [REPLACEABLE] the default ecc placement scheme
* @bbm: [REPLACEABLE] pointer to Bad Block Management
* @bbm: [REPLACEABLE] pointer to Bad Block Management
* @priv: [OPTIONAL] pointer to private chip date
* @priv: [OPTIONAL] pointer to private chip date
...
@@ -128,6 +129,7 @@ struct onenand_chip {
...
@@ -128,6 +129,7 @@ struct onenand_chip {
onenand_state_t
state
;
onenand_state_t
state
;
unsigned
char
*
page_buf
;
unsigned
char
*
page_buf
;
int
subpagesize
;
struct
nand_ecclayout
*
ecclayout
;
struct
nand_ecclayout
*
ecclayout
;
void
*
bbm
;
void
*
bbm
;
...
@@ -141,6 +143,7 @@ struct onenand_chip {
...
@@ -141,6 +143,7 @@ struct onenand_chip {
#define ONENAND_CURRENT_BUFFERRAM(this) (this->bufferram_index)
#define ONENAND_CURRENT_BUFFERRAM(this) (this->bufferram_index)
#define ONENAND_NEXT_BUFFERRAM(this) (this->bufferram_index ^ 1)
#define ONENAND_NEXT_BUFFERRAM(this) (this->bufferram_index ^ 1)
#define ONENAND_SET_NEXT_BUFFERRAM(this) (this->bufferram_index ^= 1)
#define ONENAND_SET_NEXT_BUFFERRAM(this) (this->bufferram_index ^= 1)
#define ONENAND_SET_PREV_BUFFERRAM(this) (this->bufferram_index ^= 1)
#define ONENAND_GET_SYS_CFG1(this) \
#define ONENAND_GET_SYS_CFG1(this) \
(this->read_word(this->base + ONENAND_REG_SYS_CFG1))
(this->read_word(this->base + ONENAND_REG_SYS_CFG1))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment