Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93076
b: refs/heads/master
c: 2314488
h: refs/heads/master
v: v3
  • Loading branch information
Atsushi Nemoto authored and David Woodhouse committed Apr 25, 2008
1 parent 2fbda97 commit ff9de7f
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: d43fa1499622e3e561380c34e076aade954e2c2c
refs/heads/master: 2314488e81b6f8966d3ea607c4517a64bf58f283
6 changes: 6 additions & 0 deletions trunk/drivers/mtd/nand/at91_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ static void at91_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
struct nand_chip *nand_chip = mtd->priv;
struct at91_nand_host *host = nand_chip->priv;

if (host->board->enable_pin && (ctrl & NAND_CTRL_CHANGE)) {
if (ctrl & NAND_NCE)
at91_set_gpio_value(host->board->enable_pin, 0);
else
at91_set_gpio_value(host->board->enable_pin, 1);
}
if (cmd == NAND_CMD_NONE)
return;

Expand Down

0 comments on commit ff9de7f

Please sign in to comment.