mtd: gpmi: make blockmark swapping optional
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 28 Mar 2014 10:35:06 +0000 (11:35 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 28 Jul 2014 05:06:31 +0000 (22:06 -0700)
commit2a500afe1e0e84c7a126df693dbd01353756dcfa
tree278caaa0a91938c570c217f0b64d954724b1747d
parentd8c0372baadb29e60668c2bddfcf39294f3d4581
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.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Acked-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Documentation/devicetree/bindings/mtd/gpmi-nand.txt
drivers/mtd/nand/gpmi-nand/gpmi-nand.c