#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/mutex.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/spi/spi.h>
#include <linux/spi/flash.h>
Go to the source code of this file.
#define SST25L_CMD_AAI_PROGRAM 0xaf /* Auto address increment */ |
#define SST25L_CMD_EWSR 0x50 /* Enable write status register */ |
#define SST25L_CMD_RDSR 0x05 /* Read status register */ |
#define SST25L_CMD_READ 0x03 /* High speed read */ |
#define SST25L_CMD_READ_ID 0x90 /* Read device ID */ |
#define SST25L_CMD_SECTOR_ERASE 0x20 /* Erase sector */ |
#define SST25L_CMD_WRDI 0x04 /* Write disable */ |
#define SST25L_CMD_WREN 0x06 /* Write enable */ |
#define SST25L_CMD_WRSR 0x01 /* Write status register */ |
#define SST25L_STATUS_BP0 (1 << 2) /* Block protection 0 */ |
#define SST25L_STATUS_BP1 (1 << 3) /* Block protection 1 */ |
#define SST25L_STATUS_BUSY (1 << 0) /* Chip is busy */ |
module_spi_driver |
( |
sst25l_driver |
| ) |
|