Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27760
b: refs/heads/master
c: 3cecf69
h: refs/heads/master
v: v3
  • Loading branch information
Kyungmin Park authored and Jarkko Lavinen committed May 12, 2006
1 parent c6e3acd commit 65ec0d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 34c1060959b61a5bb2e97a88411446028cebfa7c
refs/heads/master: 3cecf69ecde22199699c4f0e609dfed2a487b674
6 changes: 6 additions & 0 deletions trunk/drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@ static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t le
/* Write 'DFS, FBA' of Flash */
value = onenand_block_address(this, block);
this->write_word(value, this->base + ONENAND_REG_START_ADDRESS1);

if (cmd == ONENAND_CMD_ERASE) {
/* Select DataRAM for DDP */
value = onenand_bufferram_address(this, block);
this->write_word(value, this->base + ONENAND_REG_START_ADDRESS2);
}
}

if (page != -1) {
Expand Down

0 comments on commit 65ec0d9

Please sign in to comment.