modified nand flash driver for new structure