Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153787
b: refs/heads/master
c: ee8f376
h: refs/heads/master
i:
  153785: 5e51d51
  153783: 946a3ec
v: v3
  • Loading branch information
Adrian Hunter authored and David Woodhouse committed Jun 5, 2009
1 parent fdca9b5 commit 3dc2692
Show file tree
Hide file tree
Showing 3 changed files with 4 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: 1e42d142e65ebdef38fb399b421d04e092ad1c6e
refs/heads/master: ee8f37688966ab1438d0cf42e0cb7c6595d9592c
3 changes: 2 additions & 1 deletion trunk/drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2576,6 +2576,7 @@ static void onenand_print_device_info(int device, int version)

static const struct onenand_manufacturers onenand_manuf_ids[] = {
{ONENAND_MFR_SAMSUNG, "Samsung"},
{ONENAND_MFR_NUMONYX, "Numonyx"},
};

/**
Expand Down Expand Up @@ -2621,7 +2622,7 @@ static int onenand_probe(struct mtd_info *mtd)
/* Save system configuration 1 */
syscfg = this->read_word(this->base + ONENAND_REG_SYS_CFG1);
/* Clear Sync. Burst Read mode to read BootRAM */
this->write_word((syscfg & ~ONENAND_SYS_CFG1_SYNC_READ), this->base + ONENAND_REG_SYS_CFG1);
this->write_word((syscfg & ~ONENAND_SYS_CFG1_SYNC_READ & ~ONENAND_SYS_CFG1_SYNC_WRITE), this->base + ONENAND_REG_SYS_CFG1);

/* Send the command for reading device ID from BootRAM */
this->write_word(ONENAND_CMD_READID, this->base + ONENAND_BOOTRAM);
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/mtd/onenand.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ struct onenand_chip {
* OneNAND Flash Manufacturer ID Codes
*/
#define ONENAND_MFR_SAMSUNG 0xec
#define ONENAND_MFR_NUMONYX 0x20

/**
* struct onenand_manufacturers - NAND Flash Manufacturer ID Structure
Expand Down

0 comments on commit 3dc2692

Please sign in to comment.