mt29f NAND driver: refactor to separate generic and hardware implementation.