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