Go to the documentation of this file.
16 #ifndef _PROC_NAND_REGS_H_
17 #define _PROC_NAND_REGS_H_
20 #define FCOMMAND_0 __SYSREG(0xd8f00000, u8)
21 #define FCOMMAND_1 __SYSREG(0xd8f00001, u8)
22 #define FCOMMAND_2 __SYSREG(0xd8f00002, u8)
23 #define FCOMMAND_3 __SYSREG(0xd8f00003, u8)
26 #define FCOMMAND2_0 __SYSREG(0xd8f00110, u8)
27 #define FCOMMAND2_1 __SYSREG(0xd8f00111, u8)
28 #define FCOMMAND2_2 __SYSREG(0xd8f00112, u8)
29 #define FCOMMAND2_3 __SYSREG(0xd8f00113, u8)
31 #define FCOMMAND_FIEN 0x80
32 #define FCOMMAND_BW_8BIT 0x00
33 #define FCOMMAND_BW_16BIT 0x40
34 #define FCOMMAND_BLOCKSZ_SMALL 0x00
35 #define FCOMMAND_BLOCKSZ_LARGE 0x20
36 #define FCOMMAND_DMASTART 0x10
37 #define FCOMMAND_RYBY 0x08
38 #define FCOMMAND_RYBYINTMSK 0x04
39 #define FCOMMAND_XFWP 0x02
40 #define FCOMMAND_XFCE 0x01
41 #define FCOMMAND_SEQKILL 0x10
42 #define FCOMMAND_ANUM 0x07
43 #define FCOMMAND_ANUM_NONE 0x00
44 #define FCOMMAND_ANUM_1CYC 0x01
45 #define FCOMMAND_ANUM_2CYC 0x02
46 #define FCOMMAND_ANUM_3CYC 0x03
47 #define FCOMMAND_ANUM_4CYC 0x04
48 #define FCOMMAND_ANUM_5CYC 0x05
49 #define FCOMMAND_FCMD_READ0 0x00
50 #define FCOMMAND_FCMD_SEQIN 0x80
51 #define FCOMMAND_FCMD_PAGEPROG 0x10
52 #define FCOMMAND_FCMD_RESET 0xff
53 #define FCOMMAND_FCMD_ERASE1 0x60
54 #define FCOMMAND_FCMD_ERASE2 0xd0
55 #define FCOMMAND_FCMD_STATUS 0x70
56 #define FCOMMAND_FCMD_READID 0x90
57 #define FCOMMAND_FCMD_READOOB 0x50
59 #define FADD __SYSREG(0xd8f00004, u32)
61 #define FADD2 __SYSREG(0xd8f00008, u32)
63 #define FJUDGE __SYSREG(0xd8f0000c, u32)
64 #define FJUDGE_NOERR 0x0
65 #define FJUDGE_1BITERR 0x1
66 #define FJUDGE_PARITYERR 0x2
67 #define FJUDGE_UNCORRECTABLE 0x3
68 #define FJUDGE_ERRJDG_MSK 0x3
70 #define FECC11 __SYSREG(0xd8f00010, u32)
72 #define FECC12 __SYSREG(0xd8f00014, u32)
74 #define FECC21 __SYSREG(0xd8f00018, u32)
76 #define FECC22 __SYSREG(0xd8f0001c, u32)
78 #define FECC31 __SYSREG(0xd8f00020, u32)
80 #define FECC32 __SYSREG(0xd8f00024, u32)
82 #define FECC41 __SYSREG(0xd8f00028, u32)
84 #define FECC42 __SYSREG(0xd8f0002c, u32)
86 #define FDATA __SYSREG(0xd8f00030, u32)
88 #define FPWS __SYSREG(0xd8f00100, u32)
89 #define FPWS_PWS1W_2CLK 0x00000000
90 #define FPWS_PWS1W_3CLK 0x01000000
91 #define FPWS_PWS1W_4CLK 0x02000000
92 #define FPWS_PWS1W_5CLK 0x03000000
93 #define FPWS_PWS1W_6CLK 0x04000000
94 #define FPWS_PWS1W_7CLK 0x05000000
95 #define FPWS_PWS1W_8CLK 0x06000000
96 #define FPWS_PWS1R_3CLK 0x00010000
97 #define FPWS_PWS1R_4CLK 0x00020000
98 #define FPWS_PWS1R_5CLK 0x00030000
99 #define FPWS_PWS1R_6CLK 0x00040000
100 #define FPWS_PWS1R_7CLK 0x00050000
101 #define FPWS_PWS1R_8CLK 0x00060000
102 #define FPWS_PWS2W_2CLK 0x00000100
103 #define FPWS_PWS2W_3CLK 0x00000200
104 #define FPWS_PWS2W_4CLK 0x00000300
105 #define FPWS_PWS2W_5CLK 0x00000400
106 #define FPWS_PWS2W_6CLK 0x00000500
107 #define FPWS_PWS2R_2CLK 0x00000001
108 #define FPWS_PWS2R_3CLK 0x00000002
109 #define FPWS_PWS2R_4CLK 0x00000003
110 #define FPWS_PWS2R_5CLK 0x00000004
111 #define FPWS_PWS2R_6CLK 0x00000005
113 #define FCOMMAND2 __SYSREG(0xd8f00110, u32)
115 #define FNUM __SYSREG(0xd8f00114, u32)
116 #define FSDATA_ADDR 0xd8f00400
118 #define FSDATA __SYSREG(FSDATA_ADDR, u32)