#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/mtd/physmap.h>
#include <linux/types.h>
#include <linux/mtd/partitions.h>
#include <asm/param.h>
Go to the source code of this file.
#define BANK_ENABLE (1 << 0) |
#define FSMC_BUSY_WAIT_TIMEOUT (1 * HZ) |
#define FSMC_CODE_RDY (1 << 15) |
#define FSMC_DEVTYPE_NAND (1 << 3) |
#define FSMC_DEVWID_16 (1 << 4) |
#define FSMC_DEVWID_8 (0 << 4) |
#define FSMC_ECCEN (1 << 6) |
#define FSMC_ECCPLEN_256 (1 << 7) |
#define FSMC_ECCPLEN_512 (0 << 7) |
#define FSMC_ENABLE (1 << 2) |
#define FSMC_FLASH_WIDTH16 2 |
#define FSMC_FLASH_WIDTH8 1 |
#define FSMC_MAX_NAND_BANKS 4 |
#define FSMC_MAX_NOR_BANKS 4 |
#define FSMC_NAND_BANK_SZ 0x20 |
#define FSMC_NAND_REG |
( |
|
base, |
|
|
|
bank, |
|
|
|
reg |
|
) |
| |
Value:
Definition at line 100 of file fsmc.h.
#define FSMC_NOR_BANK_SZ 0x8 |
#define FSMC_NOR_REG |
( |
|
base, |
|
|
|
bank, |
|
|
|
reg |
|
) |
| |
Value:
FSMC_NOR_BANK_SZ * (bank) + \
Definition at line 54 of file fsmc.h.
#define FSMC_NOR_REG_SIZE 0x40 |
#define FSMC_RESET (1 << 0) |
#define FSMC_TAR_MASK (0xF) |
#define FSMC_TAR_SHIFT (13) |
#define FSMC_TCLR_MASK (0xF) |
#define FSMC_TCLR_SHIFT (9) |
#define FSMC_THIZ_MASK 0xFF |
#define FSMC_THIZ_SHIFT 24 |
#define FSMC_THOLD_MASK 0xFF |
#define FSMC_THOLD_SHIFT 16 |
#define FSMC_TSET_MASK 0xFF |
#define FSMC_TSET_SHIFT 0 |
#define FSMC_TWAIT_MASK 0xFF |
#define FSMC_TWAIT_SHIFT 8 |
#define FSMC_WAITON (1 << 1) |
#define MAX_ECCPLACE_ENTRIES 32 |
#define RSTPWRDWN (1 << 6) |
#define WAIT_ENB (1 << 13) |
#define WIDTH_16 (1 << 4) |
#define WRT_ENABLE (1 << 12) |
- Enumerator:
USE_DMA_ACCESS |
|
USE_WORD_ACCESS |
|
Definition at line 133 of file fsmc.h.