ipq40xx: nand: Initialize nand flash device before flashing

The DK01 board will be bricked if a nand image is flashed onto it.
Because it supports only nor and nor_plus_nand flash types.
So, this patch detects the nand flash before flashing.

Change-Id: I0e0ce2f4d72bcd6724847729170562068a00394d
Signed-off-by: Balaji Jagadeesan <bjagadee@codeaurora.org>
1 file changed