add nand_read_id for nand, and add common.c file for common routines