mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 21:55:10 -05:00
Fix a small bug that prevented the iPod Nano 2G NAND driver from detecting interleaved write-capable chips.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28448 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
82d322c201
commit
42973f7a32
1 changed files with 2 additions and 2 deletions
|
|
@ -772,8 +772,8 @@ int nand_device_init(void)
|
||||||
nand_tunk3[i] = nand_deviceinfotable[nand_type[i]].tunk3;
|
nand_tunk3[i] = nand_deviceinfotable[nand_type[i]].tunk3;
|
||||||
}
|
}
|
||||||
if (nand_type[0] < 0) return nand_type[0];
|
if (nand_type[0] < 0) return nand_type[0];
|
||||||
nand_interleaved = ((nand_type[0] >> 22) & 1);
|
nand_interleaved = ((nand_deviceinfotable[nand_type[0]].id >> 22) & 1);
|
||||||
nand_cached = ((nand_type[0] >> 23) & 1);
|
nand_cached = ((nand_deviceinfotable[nand_type[0]].id >> 23) & 1);
|
||||||
|
|
||||||
nand_last_activity_value = current_tick;
|
nand_last_activity_value = current_tick;
|
||||||
create_thread(nand_thread, nand_stack,
|
create_thread(nand_thread, nand_stack,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue