#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/sched.h>
#include <linux/spi/spi.h>
#include <linux/spi/eeprom.h>
#include <linux/of.h>
Go to the source code of this file.
#define AT25_INSTR_BIT3 0x08 /* Additional address bit in instr */ |
#define AT25_RDSR 0x05 /* read status register */ |
#define AT25_READ 0x03 /* read byte(s) */ |
#define AT25_SR_BP0 0x04 /* BP for software writeprotect */ |
#define AT25_SR_nRDY 0x01 /* nRDY = write-in-progress */ |
#define AT25_SR_WEN 0x02 /* write enable (latched) */ |
#define AT25_SR_WPEN 0x80 /* writeprotect enable */ |
#define AT25_WRDI 0x04 /* reset the write enable */ |
#define AT25_WREN 0x06 /* latch the write enable */ |
#define AT25_WRITE 0x02 /* write byte(s)/sector */ |
#define AT25_WRSR 0x01 /* write status register */ |
#define EE_MAXADDRLEN 3 /* 24 bit addresses, up to 2 MBytes */ |
MODULE_ALIAS |
( |
"spi:at25" |
| ) |
|
MODULE_AUTHOR |
( |
"David Brownell" |
| ) |
|
MODULE_DESCRIPTION |
( |
"Driver for most SPI EEPROMs" |
| ) |
|
module_spi_driver |
( |
at25_driver |
| ) |
|