From: <oh...@ma...> - 2009-03-01 21:54:24
|
Author: oharboe Date: 2009-03-01 21:54:22 +0100 (Sun, 01 Mar 2009) New Revision: 1385 Modified: trunk/src/flash/nand.c Log: Nicolas Pitre nico at cam.org The code unconditionally writes into the oob area all the time. Modified: trunk/src/flash/nand.c =================================================================== --- trunk/src/flash/nand.c 2009-03-01 20:53:17 UTC (rev 1384) +++ trunk/src/flash/nand.c 2009-03-01 20:54:22 UTC (rev 1385) @@ -911,7 +911,10 @@ * or 2048 for the beginning of OOB area) */ device->controller->address(device, 0x0); - device->controller->address(device, 0x8); + if (data) + device->controller->address(device, 0x0); + else + device->controller->address(device, 0x8); /* row */ device->controller->address(device, page & 0xff); |