David Anders: fixes an issue with large block nand flash address where the beginning of the OOB area is always selected instead of the beginning of a page when needed

git-svn-id: svn://svn.berlios.de/openocd/trunk@729 b42882b7-edfa-0310-969c-e2dbd0fdcd60
__archive__
oharboe 2008-06-27 06:13:34 +00:00
parent c5df3ce144
commit 83fc7fcf9b
1 changed files with 4 additions and 1 deletions

View File

@ -806,6 +806,9 @@ int nand_read_page_raw(struct nand_device_s *device, u32 page, u8 *data, u32 dat
* or 2048 for the beginning of OOB area) * or 2048 for the beginning of OOB area)
*/ */
device->controller->address(device, 0x0); device->controller->address(device, 0x0);
if (data)
device->controller->address(device, 0x0);
else
device->controller->address(device, 0x8); device->controller->address(device, 0x8);
/* row */ /* row */