]> 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, 20 Aug 2014 08:08:23 +0000 (10:08 +0200)
commit662739b9dd3a3f1bbaa8fde2925739304b7a8cf8
tree09e0b76293a5bc3b6bf44cdd0515e4ffdc5c2cd3
parent38dbfd0b43f0d7250687d70affdf3e4bd89282c0
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