mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-11 14:15:15 -05:00
Hopefully fix the remaining iPod Nano 2G flash issues, by adding a tiny sleep after resetting the chip. Also remove some evil tabs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23489 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
24c1c75364
commit
890444c917
1 changed files with 13 additions and 12 deletions
|
|
@ -186,6 +186,7 @@ uint32_t nand_reset(uint32_t bank)
|
||||||
if (nand_send_cmd(NAND_CMD_RESET)) return 1;
|
if (nand_send_cmd(NAND_CMD_RESET)) return 1;
|
||||||
if (nand_wait_chip_ready(bank)) return 1;
|
if (nand_wait_chip_ready(bank)) return 1;
|
||||||
FMCTRL1 = FMCTRL1_CLEARRFIFO | FMCTRL1_CLEARWFIFO;
|
FMCTRL1 = FMCTRL1_CLEARRFIFO | FMCTRL1_CLEARWFIFO;
|
||||||
|
sleep(HZ / 100); /* Some chips seem to need this */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue