#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <asm/io.h>
#include <asm/byteorder.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/reboot.h>
#include <linux/bitmap.h>
#include <linux/mtd/xip.h>
#include <linux/mtd/map.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/cfi.h>
#include "fwh_lock.h"
Go to the source code of this file.
|
| #define | FORCE_WORD_WRITE 0 |
| |
| #define | I82802AB 0x00ad |
| |
| #define | I82802AC 0x00ac |
| |
| #define | PF38F4476 0x881c |
| |
| #define | M50LPW080 0x002F |
| |
| #define | M50FLW080A 0x0080 |
| |
| #define | M50FLW080B 0x0081 |
| |
| #define | AT49BV640D 0x02de |
| |
| #define | AT49BV640DT 0x02db |
| |
| #define | xip_disable(map, chip, adr) |
| |
| #define | xip_enable(map, chip, adr) |
| |
| #define | XIP_INVAL_CACHED_RANGE(x...) |
| |
| #define | INVAL_CACHE_AND_WAIT inval_cache_and_wait_for_operation |
| |
| #define | WAIT_TIMEOUT(map, chip, adr, udelay, udelay_max) INVAL_CACHE_AND_WAIT(map, chip, adr, 0, 0, udelay, udelay_max); |
| |
| #define | DO_XXLOCK_ONEBLOCK_LOCK ((void *) 1) |
| |
| #define | DO_XXLOCK_ONEBLOCK_UNLOCK ((void *) 2) |
| |
| #define AT49BV640D 0x02de |
| #define AT49BV640DT 0x02db |
| #define DO_XXLOCK_ONEBLOCK_LOCK ((void *) 1) |
| #define DO_XXLOCK_ONEBLOCK_UNLOCK ((void *) 2) |
| #define FORCE_WORD_WRITE 0 |
| #define INVAL_CACHE_AND_WAIT inval_cache_and_wait_for_operation |
| #define M50FLW080A 0x0080 |
| #define M50FLW080B 0x0081 |
| #define WAIT_TIMEOUT |
( |
|
map, |
|
|
|
chip, |
|
|
|
adr, |
|
|
|
udelay, |
|
|
|
udelay_max |
|
) |
| INVAL_CACHE_AND_WAIT(map, chip, adr, 0, 0, udelay, udelay_max); |
| #define xip_disable |
( |
|
map, |
|
|
|
chip, |
|
|
|
adr |
|
) |
| |
| #define xip_enable |
( |
|
map, |
|
|
|
chip, |
|
|
|
adr |
|
) |
| |
| #define XIP_INVAL_CACHED_RANGE |
( |
|
x... | ) |
|
| MODULE_ALIAS |
( |
"cfi_cmdset_0003" |
| ) |
|
| MODULE_ALIAS |
( |
"cfi_cmdset_0200" |
| ) |
|