ARM: i.MX6: use generic calculation in nand bbu handler
The parameters ECC Strength, BadBlockMarkerByte and BadBlockMarkerStartBit in
the FCB structure depends on the nand chip's pagesize and oobsize. Instead of
hardcoding these values into the imx6 bbu handler calculate these values on the
fly. Therefore we export the necessary functions from the nand_mxs driver to
use them in the bbu handler.

Signed-off-by: Stefan Christ <s.christ@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 41e3d1c commit a114e9b00c6c3f73be8f9de4c4722a6320399252
@Stefan Christ Stefan Christ authored on 28 Jan 2015
Sascha Hauer committed on 29 Jan 2015
Showing 4 changed files
View
arch/arm/mach-imx/Kconfig
View
arch/arm/mach-imx/imx6-bbu-nand.c
View
drivers/mtd/nand/nand_mxs.c
View
include/linux/mtd/nand_mxs.h 0 → 100644