Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 49135
b: refs/heads/master
c: 9bfbc9b
h: refs/heads/master
i:
  49133: 7320c32
  49131: 7f0f595
  49127: 4f239a1
  49119: 63cbc8a
v: v3
  • Loading branch information
Kyungmin Park committed Jan 31, 2007
1 parent e96b8c2 commit 050fce3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 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: 8b29c0b6eb3a4952e7eae03038bbf6c1695dfe80
refs/heads/master: 9bfbc9b24f663b15149874a94a69ba89b3b7e44c
5 changes: 2 additions & 3 deletions trunk/drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1966,13 +1966,12 @@ static int onenand_probe(struct mtd_info *mtd)
/* The data buffer size is equal to page size */
mtd->writesize = this->read_word(this->base + ONENAND_REG_DATA_BUFFER_SIZE);
mtd->oobsize = mtd->writesize >> 5;
/* Pagers per block is always 64 in OneNAND */
/* Pages per a block are always 64 in OneNAND */
mtd->erasesize = mtd->writesize << 6;

this->erase_shift = ffs(mtd->erasesize) - 1;
this->page_shift = ffs(mtd->writesize) - 1;
this->ppb_shift = (this->erase_shift - this->page_shift);
this->page_mask = (mtd->erasesize / mtd->writesize) - 1;
this->page_mask = (1 << (this->erase_shift - this->page_shift)) - 1;

/* REVIST: Multichip handling */

Expand Down
2 changes: 0 additions & 2 deletions trunk/include/linux/mtd/onenand.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ struct onenand_bufferram {
* partly be set to inform onenand_scan about
* @erase_shift: [INTERN] number of address bits in a block
* @page_shift: [INTERN] number of address bits in a page
* @ppb_shift: [INTERN] number of address bits in a pages per block
* @page_mask: [INTERN] a page per block mask
* @bufferram_index: [INTERN] BufferRAM index
* @bufferram: [INTERN] BufferRAM info
Expand Down Expand Up @@ -103,7 +102,6 @@ struct onenand_chip {

unsigned int erase_shift;
unsigned int page_shift;
unsigned int ppb_shift; /* Pages per block shift */
unsigned int page_mask;

unsigned int bufferram_index;
Expand Down

0 comments on commit 050fce3

Please sign in to comment.