1
2
3
4
5
6
7
8
9
10
11 #ifndef __MACH_S3C24XX_BAST_H
12 #define __MACH_S3C24XX_BAST_H __FILE__
13
14
15
16 #define BAST_CPLD_CTRL1_LRCOFF (0x00)
17 #define BAST_CPLD_CTRL1_LRCADC (0x01)
18 #define BAST_CPLD_CTRL1_LRCDAC (0x02)
19 #define BAST_CPLD_CTRL1_LRCARM (0x03)
20 #define BAST_CPLD_CTRL1_LRMASK (0x03)
21
22
23
24 #define BAST_CPLD_CTRL2_WNAND (0x04)
25 #define BAST_CPLD_CTLR2_IDERST (0x08)
26
27
28
29 #define BAST_CPLD_CTRL3_IDMASK (0x0e)
30 #define BAST_CPLD_CTRL3_ROMWEN (0x01)
31
32
33
34 #define BAST_CPLD_CTRL4_LLAT (0x01)
35 #define BAST_CPLD_CTRL4_LCDRW (0x02)
36 #define BAST_CPLD_CTRL4_LCDCMD (0x04)
37 #define BAST_CPLD_CTRL4_LCDE2 (0x01)
38
39
40
41 #define BAST_CPLD_DMA0_PRIIDE (0)
42 #define BAST_CPLD_DMA0_SECIDE (1)
43 #define BAST_CPLD_DMA0_ISA15 (2)
44 #define BAST_CPLD_DMA0_ISA36 (3)
45
46 #define BAST_CPLD_DMA1_PRIIDE (0 << 2)
47 #define BAST_CPLD_DMA1_SECIDE (1 << 2)
48 #define BAST_CPLD_DMA1_ISA15 (2 << 2)
49 #define BAST_CPLD_DMA1_ISA36 (3 << 2)
50
51
52
53 #define BAST_IRQ_USBOC IRQ_EINT18
54 #define BAST_IRQ_IDE0 IRQ_EINT16
55 #define BAST_IRQ_IDE1 IRQ_EINT17
56 #define BAST_IRQ_PCSERIAL1 IRQ_EINT15
57 #define BAST_IRQ_PCSERIAL2 IRQ_EINT14
58 #define BAST_IRQ_PCPARALLEL IRQ_EINT13
59 #define BAST_IRQ_ASIX IRQ_EINT11
60 #define BAST_IRQ_DM9000 IRQ_EINT10
61 #define BAST_IRQ_ISA IRQ_EINT9
62 #define BAST_IRQ_SMALERT IRQ_EINT8
63
64
65
66
67
68
69
70
71
72
73 #define BAST_IOADDR(x) (S3C2410_ADDR((x) + 0x01300000))
74
75
76
77 #define BAST_VA_CTRL1 BAST_IOADDR(0x00000000)
78 #define BAST_PA_CTRL1 (S3C2410_CS5 | 0x7800000)
79
80 #define BAST_VA_CTRL2 BAST_IOADDR(0x00100000)
81 #define BAST_PA_CTRL2 (S3C2410_CS1 | 0x6000000)
82
83 #define BAST_VA_CTRL3 BAST_IOADDR(0x00200000)
84 #define BAST_PA_CTRL3 (S3C2410_CS1 | 0x6800000)
85
86 #define BAST_VA_CTRL4 BAST_IOADDR(0x00300000)
87 #define BAST_PA_CTRL4 (S3C2410_CS1 | 0x7000000)
88
89
90
91 #define BAST_PA_PC104_IRQREQ (S3C2410_CS5 | 0x6000000)
92 #define BAST_VA_PC104_IRQREQ BAST_IOADDR(0x00400000)
93
94 #define BAST_PA_PC104_IRQRAW (S3C2410_CS5 | 0x6800000)
95 #define BAST_VA_PC104_IRQRAW BAST_IOADDR(0x00500000)
96
97 #define BAST_PA_PC104_IRQMASK (S3C2410_CS5 | 0x7000000)
98 #define BAST_VA_PC104_IRQMASK BAST_IOADDR(0x00600000)
99
100 #define BAST_PA_LCD_RCMD1 (0x8800000)
101 #define BAST_VA_LCD_RCMD1 BAST_IOADDR(0x00700000)
102
103 #define BAST_PA_LCD_WCMD1 (0x8000000)
104 #define BAST_VA_LCD_WCMD1 BAST_IOADDR(0x00800000)
105
106 #define BAST_PA_LCD_RDATA1 (0x9800000)
107 #define BAST_VA_LCD_RDATA1 BAST_IOADDR(0x00900000)
108
109 #define BAST_PA_LCD_WDATA1 (0x9000000)
110 #define BAST_VA_LCD_WDATA1 BAST_IOADDR(0x00A00000)
111
112 #define BAST_PA_LCD_RCMD2 (0xA800000)
113 #define BAST_VA_LCD_RCMD2 BAST_IOADDR(0x00B00000)
114
115 #define BAST_PA_LCD_WCMD2 (0xA000000)
116 #define BAST_VA_LCD_WCMD2 BAST_IOADDR(0x00C00000)
117
118 #define BAST_PA_LCD_RDATA2 (0xB800000)
119 #define BAST_VA_LCD_RDATA2 BAST_IOADDR(0x00D00000)
120
121 #define BAST_PA_LCD_WDATA2 (0xB000000)
122 #define BAST_VA_LCD_WDATA2 BAST_IOADDR(0x00E00000)
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156 #define BAST_VA_MULTISPACE (0xE0000000)
157
158 #define BAST_VA_ISAIO (BAST_VA_MULTISPACE + 0x00000000)
159 #define BAST_VA_ISAMEM (BAST_VA_MULTISPACE + 0x01000000)
160 #define BAST_VA_IDEPRI (BAST_VA_MULTISPACE + 0x02000000)
161 #define BAST_VA_IDEPRIAUX (BAST_VA_MULTISPACE + 0x02100000)
162 #define BAST_VA_IDESEC (BAST_VA_MULTISPACE + 0x02200000)
163 #define BAST_VA_IDESECAUX (BAST_VA_MULTISPACE + 0x02300000)
164 #define BAST_VA_ASIXNET (BAST_VA_MULTISPACE + 0x02400000)
165 #define BAST_VA_DM9000 (BAST_VA_MULTISPACE + 0x02500000)
166 #define BAST_VA_SUPERIO (BAST_VA_MULTISPACE + 0x02600000)
167
168 #define BAST_VAM_CS2 (0x00000000)
169 #define BAST_VAM_CS3 (0x04000000)
170 #define BAST_VAM_CS4 (0x08000000)
171 #define BAST_VAM_CS5 (0x0C000000)
172
173
174
175 #define BAST_PA_ISAIO (0x00000000)
176 #define BAST_PA_ASIXNET (0x01000000)
177 #define BAST_PA_SUPERIO (0x01800000)
178 #define BAST_PA_IDEPRI (0x02000000)
179 #define BAST_PA_IDEPRIAUX (0x02800000)
180 #define BAST_PA_IDESEC (0x03000000)
181 #define BAST_PA_IDESECAUX (0x03800000)
182 #define BAST_PA_ISAMEM (0x04000000)
183 #define BAST_PA_DM9000 (0x05000000)
184
185
186
187 #define BAST_PCSIO (BAST_VA_SUPERIO + BAST_VAM_CS2)
188
189 #define BAST_ASIXNET_CS BAST_VAM_CS5
190 #define BAST_DM9000_CS BAST_VAM_CS4
191
192 #define BAST_IDE_CS S3C2410_CS5
193
194 #endif