1 |
1275 |
phoenix |
#
|
2 |
|
|
# For a description of the syntax of this configuration file,
|
3 |
|
|
# see Documentation/kbuild/config-language.txt.
|
4 |
|
|
#
|
5 |
|
|
mainmenu_name "Linux/or32 Kernel Configuration"
|
6 |
|
|
|
7 |
|
|
define_bool CONFIG_OR32 y
|
8 |
|
|
|
9 |
|
|
define_bool CONFIG_UID16 y
|
10 |
|
|
define_bool CONFIG_RWSEM_GENERIC_SPINLOCK y
|
11 |
|
|
define_bool CONFIG_RWSEM_XCHGADD_ALGORITHM n
|
12 |
|
|
|
13 |
|
|
mainmenu_option next_comment
|
14 |
|
|
comment 'Code maturity level options'
|
15 |
|
|
bool 'Prompt for development and/or incomplete code/drivers' CONFIG_EXPERIMENTAL
|
16 |
|
|
endmenu
|
17 |
|
|
|
18 |
|
|
mainmenu_option next_comment
|
19 |
|
|
comment 'Loadable module support'
|
20 |
|
|
bool 'Enable loadable module support' CONFIG_MODULES
|
21 |
|
|
if [ "$CONFIG_MODULES" = "y" ]; then
|
22 |
|
|
bool ' Set version information on all module symbols' CONFIG_MODVERSIONS
|
23 |
|
|
bool ' Kernel module loader' CONFIG_KMOD
|
24 |
|
|
fi
|
25 |
|
|
endmenu
|
26 |
|
|
|
27 |
|
|
mainmenu_option next_comment
|
28 |
|
|
comment 'Processor type and features'
|
29 |
|
|
choice 'SoC type' \
|
30 |
|
|
"or1200/Marvin CONFIG_OR32_MARVIN \
|
31 |
|
|
or1200/Highland CONFIG_OR32_HIGHLAND \
|
32 |
|
|
or1200/Generic CONFIG_OR32_GENERIC" or1200/Marvin
|
33 |
|
|
|
34 |
|
|
#
|
35 |
|
|
# Define implied options for the selected SoC
|
36 |
|
|
#
|
37 |
|
|
|
38 |
|
|
if [ "$CONFIG_OR32_MARVIN" = "y" ]; then
|
39 |
|
|
define_bool CONFIG_OR32_CPU_OR1200 y
|
40 |
|
|
define_int CONFIG_OR32_MC_VERSION 1
|
41 |
|
|
define_bool CONFIG_OR32_MC_INIT y
|
42 |
|
|
define_bool CONFIG_OR32_ICACHE_ENABLED y
|
43 |
|
|
define_int CONFIG_OR32_IC_SIZE 8192
|
44 |
|
|
define_int CONFIG_OR32_IC_LINE 16
|
45 |
|
|
define_bool CONFIG_OR32_DCACHE_ENABLED y
|
46 |
|
|
define_int CONFIG_OR32_DC_SIZE 8192
|
47 |
|
|
define_int CONFIG_OR32_DC_LINE 16
|
48 |
|
|
define_int CONFIG_OR32_ITLB_ENTRIES 64
|
49 |
|
|
define_int CONFIG_OR32_DTLB_ENTRIES 64
|
50 |
|
|
define_int CONFIG_OR32_NO_SPR_SR_DSX y
|
51 |
|
|
defint_bool CONFIG_OR32_GUARD_PROTECTED_CORE y
|
52 |
|
|
elif [ "$CONFIG_OR32_HIGHLAND" = "y" ]; then
|
53 |
|
|
define_bool CONFIG_OR32_CPU_OR1200 y
|
54 |
|
|
define_int CONFIG_OR32_MC_VERSION 2
|
55 |
|
|
define_bool CONFIG_OR32_MC_INIT y
|
56 |
|
|
define_bool CONFIG_OR32_ICACHE_ENABLED y
|
57 |
|
|
define_int CONFIG_OR32_IC_SIZE 8192
|
58 |
|
|
define_int CONFIG_OR32_IC_LINE 16
|
59 |
|
|
define_bool CONFIG_OR32_DCACHE_ENABLED y
|
60 |
|
|
define_int CONFIG_OR32_DC_SIZE 8192
|
61 |
|
|
define_int CONFIG_OR32_DC_LINE 16
|
62 |
|
|
define_int CONFIG_OR32_ITLB_ENTRIES 64
|
63 |
|
|
define_int CONFIG_OR32_DTLB_ENTRIES 64
|
64 |
|
|
define_int CONFIG_OR32_NO_SPR_SR_DSX y
|
65 |
|
|
defint_bool CONFIG_OR32_GUARD_PROTECTED_CORE y
|
66 |
|
|
|
67 |
|
|
# default memory timings
|
68 |
|
|
#
|
69 |
|
|
bool "Use default Highland memory timings" CONFIG_OR32_HIGHLAND_DEFAULT_MEMORY_TIMINGS y
|
70 |
|
|
if [ "$CONFIG_OR32_HIGHLAND_DEFAULT_MEMORY_TIMINGS" = "n" ]; then
|
71 |
|
|
define_bool CONFIG_OR32_GENERIC_MEMORY_TIMINGS y
|
72 |
|
|
#
|
73 |
|
|
# FLASH timings: worst cases in ns, from data sheets
|
74 |
|
|
int 'Flash Write Access Time [ns]' CONFIG_OR32_FLASH_WA_TIME 50
|
75 |
|
|
int 'Flash Write Enable Delay [ns]' CONFIG_OR32_FLASH_WE_DELAY 0
|
76 |
|
|
int 'Flash Write Hold Time [ns]' CONFIG_OR32_FLASH_WH_TIME 0
|
77 |
|
|
int 'Flash Read Access Time [ns]' CONFIG_OR32_FLASH_RA_TIME 95
|
78 |
|
|
int 'Flash Page Read Access Time [ns]' CONFIG_OR32_FLASH_PRA_TIME 25
|
79 |
|
|
int 'Flash Read Turnaround Time [ns]' CONFIG_OR32_FLASH_RT_TIME 24
|
80 |
|
|
#
|
81 |
|
|
# SDRAM timings: worst cases in ns, from data sheets
|
82 |
|
|
int 'SDRAM tRCD [ns]' CONFIG_OR32_SDRAM_tRCD 23
|
83 |
|
|
int 'SDRAM tWR [ns]' CONFIG_OR32_SDRAM_tWR 20
|
84 |
|
|
int 'SDRAM tRC [ns]' CONFIG_OR32_SDRAM_tRC 60
|
85 |
|
|
int 'SDRAM tRFC (sometimes the same as tRC) [ns]' \
|
86 |
|
|
CONFIG_OR32_SDRAM_tRFC 60
|
87 |
|
|
int 'SDRAM tRAS (use the worst case minimal value) [ns]' \
|
88 |
|
|
CONFIG_OR32_SDRAM_tRAS 50
|
89 |
|
|
int 'SDRAM tRP [ns]' CONFIG_OR32_SDRAM_tRP 23
|
90 |
|
|
int 'SDRAM tRRD [ns]' CONFIG_OR32_SDRAM_tRRD 15
|
91 |
|
|
# 64000000 / 8192 = 7812.5
|
92 |
|
|
int 'SDRAM tREF (round it up) [ns]' CONFIG_OR32_SDRAM_tREF 7813
|
93 |
|
|
fi
|
94 |
|
|
|
95 |
|
|
else
|
96 |
|
|
define_bool CONFIG_OR32_CPU_OR1200 y
|
97 |
|
|
fi
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
int 'System clock frequency (MHz)' CONFIG_OR32_SYS_CLK 25
|
101 |
|
|
hex 'System memory size (hex)' CONFIG_OR32_MEMORY_SIZE 01000000
|
102 |
|
|
bool 'Boot from flash (copy the image to RAM)' CONFIG_OR32_FLASH_BOOT
|
103 |
|
|
if [ "$CONFIG_OR32_GENERIC" = "y" ]; then
|
104 |
|
|
|
105 |
|
|
# memory controler settings
|
106 |
|
|
#
|
107 |
|
|
bool 'Enable memory controler initialization' CONFIG_OR32_MC_INIT
|
108 |
|
|
int 'Memory controler version (1 or 2)' CONFIG_OR32_MC_VERSION 1
|
109 |
|
|
|
110 |
|
|
# memory timings
|
111 |
|
|
#
|
112 |
|
|
if [ "$CONFIG_OR32_MC_VERSION" = "2" ]; then
|
113 |
|
|
bool 'Specify memory timings (only for MC ver. 2)' CONFIG_OR32_GENERIC_TIMINGS y
|
114 |
|
|
if [ "$CONFIG_OR32_GENERIC_TIMINGS" = "n" ]; then
|
115 |
|
|
define_bool CONFIG_OR32_HIGHLAND_DEFAULT_MEMORY_TIMINGS y
|
116 |
|
|
else
|
117 |
|
|
#
|
118 |
|
|
# FLASH timings: worst cases in ns, from data sheets
|
119 |
|
|
int 'Flash Write Access Time [ns]' CONFIG_OR32_FLASH_WA_TIME 50
|
120 |
|
|
int 'Flash Write Enable Delay [ns]' CONFIG_OR32_FLASH_WE_DELAY 0
|
121 |
|
|
int 'Flash Write Hold Time [ns]' CONFIG_OR32_FLASH_WH_TIME 0
|
122 |
|
|
int 'Flash Read Access Time [ns]' CONFIG_OR32_FLASH_RA_TIME 95
|
123 |
|
|
int 'Flash Page Read Access Time [ns]' CONFIG_OR32_FLASH_PRA_TIME 25
|
124 |
|
|
int 'Flash Read Turnaround Time [ns]' CONFIG_OR32_FLASH_RT_TIME 24
|
125 |
|
|
#
|
126 |
|
|
# SDRAM timings: worst cases in ns, from data sheets
|
127 |
|
|
int 'SDRAM tRCD [ns]' CONFIG_OR32_SDRAM_tRCD 23
|
128 |
|
|
int 'SDRAM tWR [ns]' CONFIG_OR32_SDRAM_tWR 20
|
129 |
|
|
int 'SDRAM tRC [ns]' CONFIG_OR32_SDRAM_tRC 60
|
130 |
|
|
int 'SDRAM tRFC (sometimes the same as tRC) [ns]' \
|
131 |
|
|
CONFIG_OR32_SDRAM_tRFC 60
|
132 |
|
|
int 'SDRAM tRAS (use the worst case minimal value) [ns]' \
|
133 |
|
|
CONFIG_OR32_SDRAM_tRAS 50
|
134 |
|
|
int 'SDRAM tRP [ns]' CONFIG_OR32_SDRAM_tRP 23
|
135 |
|
|
int 'SDRAM tRRD [ns]' CONFIG_OR32_SDRAM_tRRD 15
|
136 |
|
|
# 64000000 / 8192 = 7812.5
|
137 |
|
|
int 'SDRAM tREF (round it up) [ns]' CONFIG_OR32_SDRAM_tREF 7813
|
138 |
|
|
fi
|
139 |
|
|
fi
|
140 |
|
|
|
141 |
|
|
bool 'Enable instruction cache' CONFIG_OR32_ICACHE_ENABLED
|
142 |
|
|
if [ "$CONFIG_OR32_ICACHE_ENABLED" = "y" ]; then
|
143 |
|
|
int 'Size of instruction cache' CONFIG_OR32_IC_SIZE 8192
|
144 |
|
|
int 'Size of instruction cache line' CONFIG_OR32_IC_LINE 16
|
145 |
|
|
else
|
146 |
|
|
# define some sane default values
|
147 |
|
|
define_int CONFIG_OR32_IC_SIZE 8192
|
148 |
|
|
define_int CONFIG_OR32_IC_LINE 16
|
149 |
|
|
fi
|
150 |
|
|
|
151 |
|
|
bool 'Enable data cache' CONFIG_OR32_DCACHE_ENABLED
|
152 |
|
|
if [ "$CONFIG_OR32_DCACHE_ENABLED" = "y" ]; then
|
153 |
|
|
int 'Size of data cache' CONFIG_OR32_DC_SIZE 8192
|
154 |
|
|
int 'Size of data cache line' CONFIG_OR32_DC_LINE 16
|
155 |
|
|
else
|
156 |
|
|
# define some sane default values
|
157 |
|
|
define_int CONFIG_OR32_DC_SIZE 8192
|
158 |
|
|
define_int CONFIG_OR32_DC_LINE 16
|
159 |
|
|
fi
|
160 |
|
|
|
161 |
|
|
int 'Number of iTLB sets' CONFIG_OR32_ITLB_ENTRIES 64
|
162 |
|
|
int 'Number of dTLB sets' CONFIG_OR32_DTLB_ENTRIES 64
|
163 |
|
|
|
164 |
|
|
bool 'Workaround for SPR_SR_DSX bit not beeing set at exception in delay slot' CONFIG_OR32_NO_SPR_SR_DSX n
|
165 |
|
|
fi
|
166 |
|
|
|
167 |
|
|
bool 'Upon unhandled exception jump to start of flash (0xf0000100)' CONFIG_JUMP_UPON_UNHANDLED_EXCEPTION y
|
168 |
|
|
bool 'Check for kernel stack overflow' CONFIG_DEBUG_STACKOVERFLOW y
|
169 |
|
|
bool 'Protect .text and .rodata sections' CONFIG_OR32_GUARD_PROTECTED_CORE y
|
170 |
|
|
bool 'Print status at each exception (for debugging purposes)' CONFIG_OR32_EXCEPTION_DEBUG n
|
171 |
|
|
|
172 |
|
|
endmenu
|
173 |
|
|
|
174 |
|
|
# OpenRISC specific drivers
|
175 |
|
|
|
176 |
|
|
source arch/or32/drivers/Config.in
|
177 |
|
|
|
178 |
|
|
mainmenu_option next_comment
|
179 |
|
|
comment 'General setup'
|
180 |
|
|
|
181 |
|
|
define_bool CONFIG_ISA n
|
182 |
|
|
define_bool CONFIG_EISA n
|
183 |
|
|
define_bool CONFIG_MCA n
|
184 |
|
|
define_bool CONFIG_SBUS n
|
185 |
|
|
|
186 |
|
|
bool 'Networking support' CONFIG_NET
|
187 |
|
|
|
188 |
|
|
bool 'PCI support' CONFIG_PCI
|
189 |
|
|
|
190 |
|
|
source drivers/pci/Config.in
|
191 |
|
|
|
192 |
|
|
bool 'Support for hot-pluggable devices' CONFIG_HOTPLUG
|
193 |
|
|
|
194 |
|
|
if [ "$CONFIG_HOTPLUG" = "y" ] ; then
|
195 |
|
|
source drivers/pcmcia/Config.in
|
196 |
|
|
else
|
197 |
|
|
define_bool CONFIG_PCMCIA n
|
198 |
|
|
fi
|
199 |
|
|
|
200 |
|
|
bool 'System V IPC' CONFIG_SYSVIPC
|
201 |
|
|
bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT
|
202 |
|
|
bool 'Sysctl support' CONFIG_SYSCTL
|
203 |
|
|
if [ "$CONFIG_PROC_FS" = "y" ]; then
|
204 |
|
|
choice 'Kernel core (/proc/kcore) format' \
|
205 |
|
|
"ELF CONFIG_KCORE_ELF \
|
206 |
|
|
A.OUT CONFIG_KCORE_AOUT" ELF
|
207 |
|
|
fi
|
208 |
|
|
tristate 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
|
209 |
|
|
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
|
210 |
|
|
|
211 |
|
|
source drivers/parport/Config.in
|
212 |
|
|
|
213 |
|
|
endmenu
|
214 |
|
|
|
215 |
|
|
source drivers/mtd/Config.in
|
216 |
|
|
|
217 |
|
|
source drivers/block/Config.in
|
218 |
|
|
|
219 |
|
|
source drivers/md/Config.in
|
220 |
|
|
|
221 |
|
|
if [ "$CONFIG_NET" = "y" ]; then
|
222 |
|
|
source net/Config.in
|
223 |
|
|
fi
|
224 |
|
|
|
225 |
|
|
mainmenu_option next_comment
|
226 |
|
|
comment 'ATA/IDE/MFM/RLL support'
|
227 |
|
|
|
228 |
|
|
tristate 'ATA/IDE/MFM/RLL support' CONFIG_IDE
|
229 |
|
|
|
230 |
|
|
if [ "$CONFIG_IDE" != "n" ]; then
|
231 |
|
|
source drivers/ide/Config.in
|
232 |
|
|
else
|
233 |
|
|
define_bool CONFIG_BLK_DEV_IDE_MODES n
|
234 |
|
|
define_bool CONFIG_BLK_DEV_HD n
|
235 |
|
|
fi
|
236 |
|
|
endmenu
|
237 |
|
|
|
238 |
|
|
mainmenu_option next_comment
|
239 |
|
|
comment 'SCSI support'
|
240 |
|
|
|
241 |
|
|
tristate 'SCSI support' CONFIG_SCSI
|
242 |
|
|
|
243 |
|
|
if [ "$CONFIG_SCSI" != "n" ]; then
|
244 |
|
|
source drivers/scsi/Config.in
|
245 |
|
|
fi
|
246 |
|
|
endmenu
|
247 |
|
|
|
248 |
|
|
source drivers/ieee1394/Config.in
|
249 |
|
|
|
250 |
|
|
if [ "$CONFIG_NET" = "y" ]; then
|
251 |
|
|
mainmenu_option next_comment
|
252 |
|
|
comment 'Network device support'
|
253 |
|
|
|
254 |
|
|
bool 'Network device support' CONFIG_NETDEVICES
|
255 |
|
|
if [ "$CONFIG_NETDEVICES" = "y" ]; then
|
256 |
|
|
source drivers/net/Config.in
|
257 |
|
|
if [ "$CONFIG_ATM" = "y" ]; then
|
258 |
|
|
source drivers/atm/Config.in
|
259 |
|
|
fi
|
260 |
|
|
fi
|
261 |
|
|
endmenu
|
262 |
|
|
fi
|
263 |
|
|
|
264 |
|
|
mainmenu_option next_comment
|
265 |
|
|
comment 'Old CD-ROM drivers (not SCSI, not IDE)'
|
266 |
|
|
|
267 |
|
|
bool 'Support non-SCSI/IDE/ATAPI CDROM drives' CONFIG_CD_NO_IDESCSI
|
268 |
|
|
if [ "$CONFIG_CD_NO_IDESCSI" != "n" ]; then
|
269 |
|
|
source drivers/cdrom/Config.in
|
270 |
|
|
fi
|
271 |
|
|
endmenu
|
272 |
|
|
|
273 |
|
|
#
|
274 |
|
|
# input before char - char/joystick depends on it. As does USB.
|
275 |
|
|
#
|
276 |
|
|
source drivers/input/Config.in
|
277 |
|
|
|
278 |
|
|
mainmenu_option next_comment
|
279 |
|
|
comment 'Character devices'
|
280 |
|
|
|
281 |
|
|
bool 'Virtual terminal' CONFIG_VT
|
282 |
|
|
if [ "$CONFIG_VT" = "y" ]; then
|
283 |
|
|
bool ' Support for console on virtual terminal' CONFIG_VT_CONSOLE
|
284 |
|
|
fi
|
285 |
|
|
|
286 |
|
|
tristate 'Serial (8250, 16450, 16550 or compatible) support' CONFIG_SERIAL
|
287 |
|
|
if [ "$CONFIG_SERIAL" = "y" ]; then
|
288 |
|
|
bool ' Support for console on serial port' CONFIG_SERIAL_CONSOLE
|
289 |
|
|
fi
|
290 |
|
|
comment 'Unix 98 PTY support'
|
291 |
|
|
bool 'Unix98 PTY support' CONFIG_UNIX98_PTYS
|
292 |
|
|
if [ "$CONFIG_UNIX98_PTYS" = "y" ]; then
|
293 |
|
|
int 'Maximum number of Unix98 PTYs in use (0-2048)' CONFIG_UNIX98_PTY_COUNT 256
|
294 |
|
|
fi
|
295 |
|
|
|
296 |
|
|
source drivers/char/joystick/Config.in
|
297 |
|
|
|
298 |
|
|
if [ "$CONFIG_PARPORT" != "n" ]; then
|
299 |
|
|
dep_tristate 'Parallel printer support' CONFIG_PRINTER $CONFIG_PARPORT
|
300 |
|
|
if [ "$CONFIG_PRINTER" != "n" ]; then
|
301 |
|
|
bool ' Support for console on line printer' CONFIG_LP_CONSOLE
|
302 |
|
|
fi
|
303 |
|
|
dep_tristate 'Support for user-space parallel port device drivers' CONFIG_PPDEV $CONFIG_PARPORT
|
304 |
|
|
fi
|
305 |
|
|
bool 'PS/2 mouse (aka "auxiliary device") support' CONFIG_PSMOUSE
|
306 |
|
|
|
307 |
|
|
tristate 'Enhanced Real Time Clock Support' CONFIG_RTC
|
308 |
|
|
if [ "$CONFIG_HOTPLUG" = "y" -a "$CONFIG_PCMCIA" != "n" ]; then
|
309 |
|
|
source drivers/char/pcmcia/Config.in
|
310 |
|
|
fi
|
311 |
|
|
endmenu
|
312 |
|
|
|
313 |
|
|
source fs/Config.in
|
314 |
|
|
|
315 |
|
|
source drivers/media/Config.in
|
316 |
|
|
|
317 |
|
|
if [ "$CONFIG_VT" = "y" ]; then
|
318 |
|
|
mainmenu_option next_comment
|
319 |
|
|
comment 'Console drivers'
|
320 |
|
|
bool 'VGA text console' CONFIG_VGA_CONSOLE
|
321 |
|
|
bool 'Video mode selection support' CONFIG_VIDEO_SELECT
|
322 |
|
|
if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
|
323 |
|
|
tristate 'MDA text console (dual-headed) (EXPERIMENTAL)' CONFIG_MDA_CONSOLE
|
324 |
|
|
source drivers/video/Config.in
|
325 |
|
|
fi
|
326 |
|
|
endmenu
|
327 |
|
|
fi
|
328 |
|
|
|
329 |
|
|
|
330 |
|
|
mainmenu_option next_comment
|
331 |
|
|
comment 'Sound'
|
332 |
|
|
|
333 |
|
|
tristate 'Sound card support' CONFIG_SOUND
|
334 |
|
|
if [ "$CONFIG_SOUND" != "n" ]; then
|
335 |
|
|
source drivers/sound/Config.in
|
336 |
|
|
fi
|
337 |
|
|
endmenu
|
338 |
|
|
|
339 |
|
|
mainmenu_option next_comment
|
340 |
|
|
comment 'Kernel hacking'
|
341 |
|
|
|
342 |
|
|
bool 'Magic SysRq key' CONFIG_MAGIC_SYSRQ
|
343 |
|
|
endmenu
|
344 |
|
|
|
345 |
|
|
source lib/Config.in
|