#ifndef _NANDFLASH_H #define _NANDFLASH_H #include "device/device.h" #include "ioctl_cmds.h" #include "asm/spi.h" #include "printf.h" #include "gpio.h" #include "device_drive.h" #include "malloc.h" #define GD_WRITE_ENABLE 0x06 #define GD_WRITE_DISABLE 0x04 #define GD_BLOCK_ERASE 0xD8 #define GD_READ_ID 0x9F /*for features*/ #define GD_GET_FEATURES 0x0F #define GD_SET_FEATURES 0x1F //