#include <linux/mtd/spi-nor.h>
#include "core.h"
#define ATMEL_SR_GLOBAL_PROTECT_MASK …
static int at25fs_nor_lock(struct spi_nor *nor, loff_t ofs, u64 len)
{ … }
static int at25fs_nor_unlock(struct spi_nor *nor, loff_t ofs, u64 len)
{ … }
static int at25fs_nor_is_locked(struct spi_nor *nor, loff_t ofs, u64 len)
{ … }
static const struct spi_nor_locking_ops at25fs_nor_locking_ops = …;
static int at25fs_nor_late_init(struct spi_nor *nor)
{ … }
static const struct spi_nor_fixups at25fs_nor_fixups = …;
static int atmel_nor_set_global_protection(struct spi_nor *nor, loff_t ofs,
u64 len, bool is_protect)
{ … }
static int atmel_nor_global_protect(struct spi_nor *nor, loff_t ofs, u64 len)
{ … }
static int atmel_nor_global_unprotect(struct spi_nor *nor, loff_t ofs, u64 len)
{ … }
static int atmel_nor_is_global_protected(struct spi_nor *nor, loff_t ofs,
u64 len)
{ … }
static const struct spi_nor_locking_ops atmel_nor_global_protection_ops = …;
static int atmel_nor_global_protection_late_init(struct spi_nor *nor)
{ … }
static const struct spi_nor_fixups atmel_nor_global_protection_fixups = …;
static const struct flash_info atmel_nor_parts[] = …;
const struct spi_nor_manufacturer spi_nor_atmel = …;