Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68492
b: refs/heads/master
c: 4a32cfa
h: refs/heads/master
v: v3
  • Loading branch information
Roland Stigge authored and David Woodhouse committed Jul 23, 2007
1 parent 3eac36b commit a6fd968
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 030f9e13bec9aaae1def86c23963a1a825ccdab5
refs/heads/master: 4a32cfa0f5c3f9e8a0da610002e4555173226650
10 changes: 5 additions & 5 deletions trunk/drivers/mtd/nand/edb7312.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static struct mtd_partition partition_info[] = {
/*
* hardware specific access to control-lines
*
* NAND_NCE: bit 0 -> bit 7
* NAND_NCE: bit 0 -> bit 6 (bit 7 = 1)
* NAND_CLE: bit 1 -> bit 4
* NAND_ALE: bit 2 -> bit 5
*/
Expand All @@ -83,12 +83,12 @@ static void ep7312_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
struct nand_chip *chip = mtd->priv;

if (ctrl & NAND_CTRL_CHANGE) {
unsigned char bits;
unsigned char bits = 0x80;

bits = (ctrl & (NAND_CLE | NAND_ALE)) << 3;
bits = (ctrl & NAND_NCE) << 7;
bits |= (ctrl & (NAND_CLE | NAND_ALE)) << 3;
bits |= (ctrl & NAND_NCE) ? 0x00 : 0x40;

clps_writeb((clps_readb(ep7312_pxdr) & 0xB0) | 0x10,
clps_writeb((clps_readb(ep7312_pxdr) & 0xF0) | bits,
ep7312_pxdr);
}
if (cmd != NAND_CMD_NONE)
Expand Down

0 comments on commit a6fd968

Please sign in to comment.