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)
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>

No differences found