Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

mxc_nd.h File Reference


Detailed Description

This file contains the NAND Flash Controller register information.

Definition in file mxc_nd.h.

#include <mach/hardware.h>

Go to the source code of this file.

Defines

#define MAIN_AREA0   (volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0x000)
#define MAIN_AREA1   (volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0x200)
#define MAIN_AREA2   (volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0x400)
#define MAIN_AREA3   (volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0x600)
#define NFC_ADDR   0x2
#define NFC_BIG   (1 << 5)
#define NFC_BUF_ADDR   (*((volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0xE04)))
#define NFC_BUF_SIZE   (*((volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0xE00)))
#define NFC_CE   (1 << 7)
#define NFC_CMD   0x1
#define NFC_CONFIG   (*((volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0xE0A)))
#define NFC_CONFIG1   (*((volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0xE1A)))
#define NFC_CONFIG2   (*((volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0xE1C)))
#define NFC_ECC_EN   (1 << 3)
#define NFC_ECC_STATUS_RESULT   (*((volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0xE0C)))
#define NFC_FLASH_ADDR   (*((volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0xE06)))
#define NFC_FLASH_CMD   (*((volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0xE08)))
#define NFC_ID   0x10
#define NFC_INPUT   0x4
#define NFC_INT   0x8000
#define NFC_INT_MSK   (1 << 4)
#define NFC_NF_WRPRST   (*((volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0xE18)))
#define NFC_ONE_CYCLE   (1 << 8)
#define NFC_OUTPUT   0x8
#define NFC_RSLTMAIN_AREA   (*((volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0xE0E)))
#define NFC_RSLTSPARE_AREA   (*((volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0xE10)))
#define NFC_RST   (1 << 6)
#define NFC_SP_EN   (1 << 2)
#define NFC_STATUS   0x20
#define NFC_UNLOCKEND_BLKADDR   (*((volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0xE16)))
#define NFC_UNLOCKSTART_BLKADDR   (*((volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0xE14)))
#define NFC_WRPROT   (*((volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0xE12)))
#define SPARE_AREA0   (volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0x800)
#define SPARE_AREA1   (volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0x810)
#define SPARE_AREA2   (volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0x820)
#define SPARE_AREA3   (volatile u16 *)IO_ADDRESS(NFC_BASE_ADDR + 0x830)


Generated by  Doxygen 1.6.0   Back to index