Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5172ac1c authored by Wolfram Stering's avatar Wolfram Stering Committed by Artem Bityutskiy
Browse files

mtd: mxc_nand: preset_v1_v2: unlock all NAND flash blocks



For NFC v1, the unlock end block address was 0x4000, which would only
unlock the first 32 blocks of the NAND flash.  Change that value to
0xffff to unlock all available blocks, as is done for NFC v21 as well.

Signed-off-by: default avatarMichael Thalmeier <michael.thalmeier@hale.at>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@intel.com>
parent 75b66d8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -845,7 +845,7 @@ static void preset_v1_v2(struct mtd_info *mtd)
		writew(0xffff, NFC_V21_UNLOCKEND_BLKADDR3);
	} else if (nfc_is_v1()) {
		writew(0x0, NFC_V1_UNLOCKSTART_BLKADDR);
		writew(0x4000, NFC_V1_UNLOCKEND_BLKADDR);
		writew(0xffff, NFC_V1_UNLOCKEND_BLKADDR);
	} else
		BUG();