Go to the documentation of this file.
20 #ifndef __SH_FLCTL_H__
21 #define __SH_FLCTL_H__
29 #define FLCMNCR(f) (f->reg + 0x0)
30 #define FLCMDCR(f) (f->reg + 0x4)
31 #define FLCMCDR(f) (f->reg + 0x8)
32 #define FLADR(f) (f->reg + 0xC)
33 #define FLADR2(f) (f->reg + 0x3C)
34 #define FLDATAR(f) (f->reg + 0x10)
35 #define FLDTCNTR(f) (f->reg + 0x14)
36 #define FLINTDMACR(f) (f->reg + 0x18)
37 #define FLBSYTMR(f) (f->reg + 0x1C)
38 #define FLBSYCNT(f) (f->reg + 0x20)
39 #define FLDTFIFO(f) (f->reg + 0x24)
40 #define FLECFIFO(f) (f->reg + 0x28)
41 #define FLTRCR(f) (f->reg + 0x2C)
42 #define FLHOLDCR(f) (f->reg + 0x38)
43 #define FL4ECCRESULT0(f) (f->reg + 0x80)
44 #define FL4ECCRESULT1(f) (f->reg + 0x84)
45 #define FL4ECCRESULT2(f) (f->reg + 0x88)
46 #define FL4ECCRESULT3(f) (f->reg + 0x8C)
47 #define FL4ECCCR(f) (f->reg + 0x90)
48 #define FL4ECCCNT(f) (f->reg + 0x94)
49 #define FLERRADR(f) (f->reg + 0x98)
52 #define _4ECCCNTEN (0x1 << 24)
53 #define _4ECCEN (0x1 << 23)
54 #define _4ECCCORRECT (0x1 << 22)
55 #define SHBUSSEL (0x1 << 20)
56 #define SEL_16BIT (0x1 << 19)
57 #define SNAND_E (0x1 << 18)
58 #define QTSEL_E (0x1 << 17)
59 #define ENDIAN (0x1 << 16)
60 #define FCKSEL_E (0x1 << 15)
61 #define ACM_SACCES_MODE (0x01 << 10)
62 #define NANWF_E (0x1 << 9)
63 #define SE_D (0x1 << 8)
64 #define CE1_ENABLE (0x1 << 4)
65 #define CE0_ENABLE (0x1 << 3)
66 #define TYPESEL_SET (0x1 << 0)
78 #define PULSE3 (0x1 << 27)
79 #define PULSE2 (0x1 << 17)
80 #define PULSE1 (0x1 << 15)
81 #define PULSE0 (0x1 << 9)
82 #define CLK_8B_0_5 PULSE1
84 #define CLK_8B_1_5 (PULSE1 | PULSE2)
85 #define CLK_8B_2 PULSE0
86 #define CLK_8B_3 (PULSE0 | PULSE1 | PULSE2)
87 #define CLK_8B_4 (PULSE0 | PULSE2)
88 #define CLK_16B_6L_2H PULSE0
89 #define CLK_16B_9L_3H (PULSE0 | PULSE1 | PULSE2)
90 #define CLK_16B_12L_4H (PULSE0 | PULSE2)
93 #define ADRCNT2_E (0x1 << 31)
94 #define ADRMD_E (0x1 << 26)
95 #define CDSRC_E (0x1 << 25)
96 #define DOSR_E (0x1 << 24)
97 #define SELRW (0x1 << 21)
98 #define DOADR_E (0x1 << 20)
99 #define ADRCNT_1 (0x00 << 18)
100 #define ADRCNT_2 (0x01 << 18)
101 #define ADRCNT_3 (0x02 << 18)
102 #define ADRCNT_4 (0x03 << 18)
103 #define DOCMD2_E (0x1 << 17)
104 #define DOCMD1_E (0x1 << 16)
107 #define ESTERINTE (0x1 << 24)
108 #define AC1CLR (0x1 << 19)
109 #define AC0CLR (0x1 << 18)
110 #define ECERB (0x1 << 9)
111 #define STERB (0x1 << 8)
112 #define STERINTE (0x1 << 4)
115 #define TRSTRT (0x1 << 0)
116 #define TREND (0x1 << 1)
125 #define HOLDEN (0x1 << 0)
128 #define _4ECCFA (0x1 << 2)
129 #define _4ECCEND (0x1 << 1)
130 #define _4ECCEXST (0x1 << 0)
132 #define LOOP_TIMEOUT_MAX 0x00010000