mtd: nand: Consolidate nand spl loaders implementation
authorLadislav Michl <ladis@linux-mips.org>
Sun, 16 Apr 2017 13:31:59 +0000 (15:31 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 8 May 2017 15:57:26 +0000 (11:57 -0400)
commit18cae43b62cce86becf84b75829b307fefff54c2
tree483343ae4841a65a796fd66fbd128e7586809ccf
parentbf86392251b25da5f34283597bce90d35e71e4a2
mtd: nand: Consolidate nand spl loaders implementation

nand_spl_load_image implementation was copied over into three
different drivers and now with nand_spl_read_block used for
ubispl situation gets even worse. For now use least intrusive
solution and #include the same implementation to nand drivers.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Tested-by: Pau Pajuelo <ppajuel@gmail.com>
drivers/mtd/nand/am335x_spl_bch.c
drivers/mtd/nand/atmel_nand.c
drivers/mtd/nand/nand_spl_loaders.c [new file with mode: 0644]
drivers/mtd/nand/nand_spl_simple.c