Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/flash/mx25lreg.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
#define CMD_PAGE_PROGRAM 0x02 | #define CMD_PAGE_PROGRAM 0x02 | ||||
#define CMD_SECTOR_ERASE 0xD8 | #define CMD_SECTOR_ERASE 0xD8 | ||||
#define CMD_BULK_ERASE 0xC7 | #define CMD_BULK_ERASE 0xC7 | ||||
#define CMD_BLOCK_4K_ERASE 0x20 | #define CMD_BLOCK_4K_ERASE 0x20 | ||||
#define CMD_BLOCK_32K_ERASE 0x52 | #define CMD_BLOCK_32K_ERASE 0x52 | ||||
#define CMD_ENTER_4B_MODE 0xB7 | #define CMD_ENTER_4B_MODE 0xB7 | ||||
#define CMD_EXIT_4B_MODE 0xE9 | #define CMD_EXIT_4B_MODE 0xE9 | ||||
/* Quad 4B-addressing operations. */ | |||||
#define CMD_QUAD_SECTOR_ERASE 0xDC | |||||
#define CMD_QUAD_PAGE_PROGRAM 0x34 | |||||
#define CMD_READ_4B_QUAD_OUTPUT 0x6C | |||||
/* | /* | ||||
* Status register flags | * Status register flags | ||||
*/ | */ | ||||
#define STATUS_SRWD (1 << 7) | #define STATUS_SRWD (1 << 7) | ||||
#define STATUS_BP2 (1 << 4) | #define STATUS_BP2 (1 << 4) | ||||
#define STATUS_BP1 (1 << 3) | #define STATUS_BP1 (1 << 3) | ||||
#define STATUS_BP0 (1 << 2) | #define STATUS_BP0 (1 << 2) | ||||
#define STATUS_WEL (1 << 1) | #define STATUS_WEL (1 << 1) | ||||
#define STATUS_WIP (1 << 0) | #define STATUS_WIP (1 << 0) | ||||
#define FLASH_PAGE_SIZE 256 | #define FLASH_PAGE_SIZE 256 | ||||
#endif /* __MX25LREG_H__ */ | #endif /* __MX25LREG_H__ */ | ||||