Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33988
b: refs/heads/master
c: 6a5a297
h: refs/heads/master
v: v3
  • Loading branch information
Richard Purdie authored and David Woodhouse committed Jul 15, 2006
1 parent 6ada1fb commit edc3060
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 8b0036eefd7a96f23244b969417684c8627f5ad6
refs/heads/master: 6a5a297cf78e64ed68577f3e3480bc10abf0124b
7 changes: 5 additions & 2 deletions trunk/drivers/mtd/nand/sharpsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static struct mtd_partition sharpsl_nand_default_partition_info[] = {
/*
* hardware specific access to control-lines
* ctrl:
* NAND_CNE: bit 0 -> bit 0 & 4
* NAND_CNE: bit 0 -> ! bit 0 & 4
* NAND_CLE: bit 1 -> bit 1
* NAND_ALE: bit 2 -> bit 2
*
Expand All @@ -92,7 +92,10 @@ static void sharpsl_nand_hwcontrol(struct mtd_info *mtd, int cmd,
unsigned char bits = ctrl & 0x07;

bits |= (ctrl & 0x01) << 4;
writeb((readb(FLASHCTL) & 0x17) | bits, FLASHCTL);

bits ^= 0x11;

writeb((readb(FLASHCTL) & ~0x17) | bits, FLASHCTL);
}

if (cmd != NAND_CMD_NONE)
Expand Down

0 comments on commit edc3060

Please sign in to comment.