]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: gpmi: make blockmark swapping optional
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 12 Jun 2014 11:39:58 +0000 (13:39 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Jul 2014 10:41:21 +0000 (12:41 +0200)
commite737119e8761773ba766b263437e12238ca3a071
tree4e0e01aff5c8edd3e3d399964f5ad044daff8935
parent3f329fe4fd3710415aad4b6e19231ed56713293b
mtd: gpmi: make blockmark swapping optional

With a flash-based BBT there is no reason to move the Factory Bad
Block Marker from the data area buffer (to where it is mapped by the
GPMI NAND controller) to the OOB buffer. Thus, make this feature
configurable via DT. This is required for the Ka-Ro electronics
platforms.

In the original code 'this->swap_block_mark' was synonymous with
'!GPMI_IS_MX23()', so use the latter at the relevant places.
Documentation/devicetree/bindings/mtd/gpmi-nand.txt
drivers/mtd/nand/gpmi-nand/gpmi-nand.c