D2: Configure NAND GPIO lines /before/ attempting to use them. Should fix 16Gb support.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17713 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
05a0b22de0
commit
0efad8d925
1 changed files with 3 additions and 3 deletions
|
@ -752,6 +752,9 @@ int ata_init(void)
|
|||
|
||||
if (initialized) return 0;
|
||||
|
||||
/* Set GPIO direction for chip select & write protect */
|
||||
NAND_GPIO_OUT_EN(CS_GPIO_BIT | WE_GPIO_BIT);
|
||||
|
||||
/* Get chip characteristics and number of banks */
|
||||
nand_get_chip_info();
|
||||
|
||||
|
@ -777,9 +780,6 @@ int ata_init(void)
|
|||
}
|
||||
}
|
||||
|
||||
/* Set GPIO direction for chip select & write protect */
|
||||
NAND_GPIO_OUT_EN(CS_GPIO_BIT | WE_GPIO_BIT);
|
||||
|
||||
/* Scan banks to build up block translation table */
|
||||
for (bank = 0; bank < total_banks; bank++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue