clear spare area in nfc_program_region()
authorlothar <lothar>
Mon, 13 Jul 2009 10:48:34 +0000 (10:48 +0000)
committerlothar <lothar>
Mon, 13 Jul 2009 10:48:34 +0000 (10:48 +0000)
packages/devs/flash/arm/mxc/v2_0/src/mxc_nfc.c

index c1f704b..f7890f5 100644 (file)
@@ -1132,6 +1132,7 @@ int nfc_program_region(flash_addr_t addr, u8 *buf, u32 len)
 
        partial_block_size = addr % NF_BLK_SZ;
 
+       mxc_nfc_buf_clear(NAND_SPAR_BUF0, 0xff, NF_SPARE_SZ);
        addr = nfc_l_to_p(addr);
        while (1) {
                if (!flash_addr_valid(addr)) {