Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
regs-nand.h File Reference

Go to the source code of this file.

Macros

#define NAND_IDR0   (PKUNITY_NAND_BASE + 0x0000)
 
#define NAND_IDR1   (PKUNITY_NAND_BASE + 0x0004)
 
#define NAND_IDR2   (PKUNITY_NAND_BASE + 0x0008)
 
#define NAND_IDR3   (PKUNITY_NAND_BASE + 0x000C)
 
#define NAND_PAR0   (PKUNITY_NAND_BASE + 0x0010)
 
#define NAND_PAR1   (PKUNITY_NAND_BASE + 0x0014)
 
#define NAND_PAR2   (PKUNITY_NAND_BASE + 0x0018)
 
#define NAND_ECCEN   (PKUNITY_NAND_BASE + 0x001C)
 
#define NAND_BUF   (PKUNITY_NAND_BASE + 0x0020)
 
#define NAND_ECCSR   (PKUNITY_NAND_BASE + 0x0024)
 
#define NAND_CMD   (PKUNITY_NAND_BASE + 0x0028)
 
#define NAND_DMACR   (PKUNITY_NAND_BASE + 0x002C)
 
#define NAND_IR   (PKUNITY_NAND_BASE + 0x0030)
 
#define NAND_IMR   (PKUNITY_NAND_BASE + 0x0034)
 
#define NAND_CHIPEN   (PKUNITY_NAND_BASE + 0x0038)
 
#define NAND_ADDR   (PKUNITY_NAND_BASE + 0x003C)
 
#define NAND_CMD_CMD_MASK   FMASK(4, 4)
 
#define NAND_CMD_CMD_READPAGE   FIELD(0x0, 4, 4)
 
#define NAND_CMD_CMD_ERASEBLOCK   FIELD(0x6, 4, 4)
 
#define NAND_CMD_CMD_READSTATUS   FIELD(0x7, 4, 4)
 
#define NAND_CMD_CMD_WRITEPAGE   FIELD(0x8, 4, 4)
 
#define NAND_CMD_CMD_READID   FIELD(0x9, 4, 4)
 
#define NAND_CMD_CMD_RESET   FIELD(0xf, 4, 4)
 

Macro Definition Documentation

#define NAND_ADDR   (PKUNITY_NAND_BASE + 0x003C)

Definition at line 67 of file regs-nand.h.

#define NAND_BUF   (PKUNITY_NAND_BASE + 0x0020)

Definition at line 39 of file regs-nand.h.

#define NAND_CHIPEN   (PKUNITY_NAND_BASE + 0x0038)

Definition at line 63 of file regs-nand.h.

#define NAND_CMD   (PKUNITY_NAND_BASE + 0x0028)

Definition at line 47 of file regs-nand.h.

#define NAND_CMD_CMD_ERASEBLOCK   FIELD(0x6, 4, 4)

Definition at line 74 of file regs-nand.h.

#define NAND_CMD_CMD_MASK   FMASK(4, 4)

Definition at line 72 of file regs-nand.h.

#define NAND_CMD_CMD_READID   FIELD(0x9, 4, 4)

Definition at line 77 of file regs-nand.h.

#define NAND_CMD_CMD_READPAGE   FIELD(0x0, 4, 4)

Definition at line 73 of file regs-nand.h.

#define NAND_CMD_CMD_READSTATUS   FIELD(0x7, 4, 4)

Definition at line 75 of file regs-nand.h.

#define NAND_CMD_CMD_RESET   FIELD(0xf, 4, 4)

Definition at line 78 of file regs-nand.h.

#define NAND_CMD_CMD_WRITEPAGE   FIELD(0x8, 4, 4)

Definition at line 76 of file regs-nand.h.

#define NAND_DMACR   (PKUNITY_NAND_BASE + 0x002C)

Definition at line 51 of file regs-nand.h.

#define NAND_ECCEN   (PKUNITY_NAND_BASE + 0x001C)

Definition at line 35 of file regs-nand.h.

#define NAND_ECCSR   (PKUNITY_NAND_BASE + 0x0024)

Definition at line 43 of file regs-nand.h.

#define NAND_IDR0   (PKUNITY_NAND_BASE + 0x0000)

Definition at line 7 of file regs-nand.h.

#define NAND_IDR1   (PKUNITY_NAND_BASE + 0x0004)

Definition at line 11 of file regs-nand.h.

#define NAND_IDR2   (PKUNITY_NAND_BASE + 0x0008)

Definition at line 15 of file regs-nand.h.

#define NAND_IDR3   (PKUNITY_NAND_BASE + 0x000C)

Definition at line 19 of file regs-nand.h.

#define NAND_IMR   (PKUNITY_NAND_BASE + 0x0034)

Definition at line 59 of file regs-nand.h.

#define NAND_IR   (PKUNITY_NAND_BASE + 0x0030)

Definition at line 55 of file regs-nand.h.

#define NAND_PAR0   (PKUNITY_NAND_BASE + 0x0010)

Definition at line 23 of file regs-nand.h.

#define NAND_PAR1   (PKUNITY_NAND_BASE + 0x0014)

Definition at line 27 of file regs-nand.h.

#define NAND_PAR2   (PKUNITY_NAND_BASE + 0x0018)

Definition at line 31 of file regs-nand.h.