[U-Boot] [PATCH v2 2/3] mtd, nand: move common functions from cmd_nand.c to common place