• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/cris/arch-v10/
1if ETRAX_ARCH_V10
2
3menu "CRIS v10 options"
4
5# ETRAX 100LX v1 has a MMU "feature" requiring a low mapping
6config CRIS_LOW_MAP
7	bool
8	depends on ETRAX_ARCH_V10 && ETRAX100LX
9	default y
10
11config ETRAX_DRAM_VIRTUAL_BASE
12	hex
13	depends on ETRAX_ARCH_V10
14	default "c0000000" if !ETRAX100LX
15	default "60000000" if ETRAX100LX
16
17choice
18	prompt "Product LED port"
19	depends on ETRAX_ARCH_V10
20	default ETRAX_PA_LEDS
21
22config ETRAX_PA_LEDS
23	bool "Port-PA-LEDs"
24	help
25	  The ETRAX network driver is responsible for flashing LED's when
26	  packets arrive and are sent.  It uses macros defined in
27	  <file:include/asm-cris/io.h>, and those macros are defined after what
28	  YOU choose in this option.  The actual bits used are configured
29	  separately.  Select this if the LEDs are on port PA.  Some products
30	  put the leds on PB or a memory-mapped latch (CSP0) instead.
31
32config ETRAX_PB_LEDS
33	bool "Port-PB-LEDs"
34	help
35	  The ETRAX network driver is responsible for flashing LED's when
36	  packets arrive and are sent.  It uses macros defined in
37	  <file:include/asm-cris/io.h>, and those macros are defined after what
38	  YOU choose in this option.  The actual bits used are configured
39	  separately.  Select this if the LEDs are on port PB.  Some products
40	  put the leds on PA or a memory-mapped latch (CSP0) instead.
41
42config ETRAX_CSP0_LEDS
43	bool "Port-CSP0-LEDs"
44	help
45	  The ETRAX network driver is responsible for flashing LED's when
46	  packets arrive and are sent. It uses macros defined in
47	  <file:include/asm-cris/io.h>, and those macros are defined after what
48	  YOU choose in this option.  The actual bits used are configured
49	  separately.  Select this if the LEDs are on a memory-mapped latch
50	  using chip select CSP0, this is mapped at 0x90000000.
51	  Some products put the leds on PA or PB instead.
52
53config ETRAX_NO_LEDS
54	bool "None"
55	help
56	  Select this option if you don't have any LED at all.
57
58endchoice
59
60config ETRAX_LED1G
61	int "First green LED bit"
62	depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
63	default "2"
64	help
65	  Bit to use for the first green LED.
66	  Most Axis products use bit 2 here.
67
68config ETRAX_LED1R
69	int "First red LED bit"
70	depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
71	default "3"
72	help
73	  Bit to use for the first red LED.
74	  Most Axis products use bit 3 here.
75	  For products with only one controllable LED,
76	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
77
78config ETRAX_LED2G
79	int "Second green LED bit"
80	depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
81	default "4"
82	help
83	  Bit to use for the second green LED. The "Active" LED.
84	  Most Axis products use bit 4 here.
85	  For products with only one controllable LED,
86	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
87
88config ETRAX_LED2R
89	int "Second red LED bit"
90	depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
91	default "5"
92	help
93	  Bit to use for the second red LED.
94	  Most Axis products use bit 5 here.
95	  For products with only one controllable LED,
96	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
97
98config ETRAX_LED3G
99	int "Third green LED bit"
100	depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
101	default "2"
102	help
103	  Bit to use for the third green LED. The "Drive" LED.
104	  For products with only one or two controllable LEDs,
105	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
106
107config ETRAX_LED3R
108	int "Third red LED bit"
109	depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
110	default "2"
111	help
112	  Bit to use for the third red LED.
113	  For products with only one or two controllable LEDs,
114	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
115
116config ETRAX_LED4R
117	int "Fourth red LED bit"
118	depends on ETRAX_CSP0_LEDS
119	default "2"
120	help
121	  Bit to use for the fourth red LED.
122	  For products with only one or two controllable LEDs,
123	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
124
125config ETRAX_LED4G
126	int "Fourth green LED bit"
127	depends on ETRAX_CSP0_LEDS
128	default "2"
129	help
130	  Bit to use for the fourth green LED.
131	  For products with only one or two controllable LEDs,
132	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
133
134config ETRAX_LED5R
135	int "Fifth red LED bit"
136	depends on ETRAX_CSP0_LEDS
137	default "2"
138	help
139	  Bit to use for the fifth red LED.
140	  For products with only one or two controllable LEDs,
141	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
142
143config ETRAX_LED5G
144	int "Fifth green LED bit"
145	depends on ETRAX_CSP0_LEDS
146	default "2"
147	help
148	  Bit to use for the fifth green LED.
149	  For products with only one or two controllable LEDs,
150	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
151
152config ETRAX_LED6R
153	int "Sixth red LED bit"
154	depends on ETRAX_CSP0_LEDS
155	default "2"
156	help
157	  Bit to use for the sixth red LED.
158	  For products with only one or two controllable LEDs,
159	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
160
161config ETRAX_LED6G
162	int "Sixth green LED bit"
163	depends on ETRAX_CSP0_LEDS
164	default "2"
165	help
166	  Bit to use for the sixth green LED. The "Drive" LED.
167	  For products with only one or two controllable LEDs,
168	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
169
170config ETRAX_LED7R
171	int "Seventh red LED bit"
172	depends on ETRAX_CSP0_LEDS
173	default "2"
174	help
175	  Bit to use for the seventh red LED.
176	  For products with only one or two controllable LEDs,
177	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
178
179config ETRAX_LED7G
180	int "Seventh green LED bit"
181	depends on ETRAX_CSP0_LEDS
182	default "2"
183	help
184	  Bit to use for the seventh green LED.
185	  For products with only one or two controllable LEDs,
186	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
187
188config ETRAX_LED8Y
189	int "Eighth yellow LED bit"
190	depends on ETRAX_CSP0_LEDS
191	default "2"
192	help
193	  Bit to use for the eighth yellow LED. The "Drive" LED.
194	  For products with only one or two controllable LEDs,
195	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
196
197config ETRAX_LED9Y
198	int "Ninth yellow LED bit"
199	depends on ETRAX_CSP0_LEDS
200	default "2"
201	help
202	  Bit to use for the ninth yellow LED.
203	  For products with only one or two controllable LEDs,
204	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
205
206config ETRAX_LED10Y
207	int "Tenth yellow LED bit"
208	depends on ETRAX_CSP0_LEDS
209	default "2"
210	help
211	  Bit to use for the tenth yellow LED.
212	  For products with only one or two controllable LEDs,
213	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
214
215config ETRAX_LED11Y
216	int "Eleventh yellow LED bit"
217	depends on ETRAX_CSP0_LEDS
218	default "2"
219	help
220	  Bit to use for the eleventh yellow LED.
221	  For products with only one or two controllable LEDs,
222	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
223
224config ETRAX_LED12R
225	int "Twelfth red LED bit"
226	depends on ETRAX_CSP0_LEDS
227	default "2"
228	help
229	  Bit to use for the twelfth red LED.
230	  For products with only one or two controllable LEDs,
231	  set this to same as CONFIG_ETRAX_LED1G (normally 2).
232
233
234choice
235	prompt "Product rescue-port"
236	depends on ETRAX_ARCH_V10
237	default ETRAX_RESCUE_SER0
238
239config ETRAX_RESCUE_SER0
240	bool "Serial-0"
241	help
242	  Select one of the four serial ports as a rescue port.  The default
243	  is port 0.
244
245config ETRAX_RESCUE_SER1
246	bool "Serial-1"
247	help
248	  Use serial port 1 as the rescue port.
249
250config ETRAX_RESCUE_SER2
251	bool "Serial-2"
252	help
253	  Use serial port 2 as the rescue port.
254
255config ETRAX_RESCUE_SER3
256	bool "Serial-3"
257	help
258	  Use serial port 3 as the rescue port.
259
260endchoice
261
262config ETRAX_DEF_R_WAITSTATES
263	hex "R_WAITSTATES"
264	depends on ETRAX_ARCH_V10
265	default "95a6"
266	help
267	  Waitstates for SRAM, Flash and peripherals (not DRAM).  95f8 is a
268	  good choice for most Axis products...
269
270config ETRAX_DEF_R_BUS_CONFIG
271	hex "R_BUS_CONFIG"
272	depends on ETRAX_ARCH_V10
273	default "104"
274	help
275	  Assorted bits controlling write mode, DMA burst length etc.  104 is
276	  a good choice for most Axis products...
277
278config ETRAX_SDRAM
279	bool "SDRAM support"
280	depends on ETRAX_ARCH_V10
281	help
282	  Enable this if you use SDRAM chips and configure
283	  R_SDRAM_CONFIG and R_SDRAM_TIMING as well.
284
285config ETRAX_DEF_R_DRAM_CONFIG
286	hex "R_DRAM_CONFIG"
287	depends on ETRAX_ARCH_V10 && !ETRAX_SDRAM
288	default "1a200040"
289	help
290	  The R_DRAM_CONFIG register specifies everything on how the DRAM
291	  chips in the system are connected to the ETRAX CPU.  This is
292	  different depending on the manufacturer, chip type and number of
293	  chips.  So this value often needs to be different for each Axis
294	  product.
295
296config ETRAX_DEF_R_DRAM_TIMING
297	hex "R_DRAM_TIMING"
298	depends on ETRAX_ARCH_V10 && !ETRAX_SDRAM
299	default "5611"
300	help
301	  Different DRAM chips have different speeds.  Current Axis products
302	  use 50ns DRAM chips which can use the timing: 5611.
303
304config ETRAX_DEF_R_SDRAM_CONFIG
305	hex "R_SDRAM_CONFIG"
306	depends on ETRAX_ARCH_V10 && ETRAX_SDRAM
307	default "d2fa7878"
308	help
309	  The R_SDRAM_CONFIG register specifies everything on how the SDRAM
310	  chips in the system are connected to the ETRAX CPU.  This is
311	  different depending on the manufacturer, chip type and number of
312	  chips.  So this value often needs to be different for each Axis
313	  product.
314
315config ETRAX_DEF_R_SDRAM_TIMING
316	hex "R_SDRAM_TIMING"
317	depends on ETRAX_ARCH_V10 && ETRAX_SDRAM
318	default "80004801"
319	help
320	  Different SDRAM chips have different timing.
321
322config ETRAX_DEF_R_PORT_PA_DIR
323	hex "R_PORT_PA_DIR"
324	depends on ETRAX_ARCH_V10
325	default "1c"
326	help
327	  Configures the direction of general port A bits.  1 is out, 0 is in.
328	  This is often totally different depending on the product used.
329	  There are some guidelines though - if you know that only LED's are
330	  connected to port PA, then they are usually connected to bits 2-4
331	  and you can therefore use 1c.  On other boards which don't have the
332	  LED's at the general ports, these bits are used for all kinds of
333	  stuff.  If you don't know what to use, it is always safe to put all
334	  as inputs, although floating inputs isn't good.
335
336config ETRAX_DEF_R_PORT_PA_DATA
337	hex "R_PORT_PA_DATA"
338	depends on ETRAX_ARCH_V10
339	default "00"
340	help
341	  Configures the initial data for the general port A bits.  Most
342	  products should use 00 here.
343
344config ETRAX_DEF_R_PORT_PB_CONFIG
345	hex "R_PORT_PB_CONFIG"
346	depends on ETRAX_ARCH_V10
347	default "00"
348	help
349	  Configures the type of the general port B bits.  1 is chip select,
350	  0 is port.  Most products should use 00 here.
351
352config ETRAX_DEF_R_PORT_PB_DIR
353	hex "R_PORT_PB_DIR"
354	depends on ETRAX_ARCH_V10
355	default "00"
356	help
357	  Configures the direction of general port B bits. 1 is out, 0 is in.
358	  This is often totally different depending on the product used.  Bits
359	  0 and 1 on port PB are usually used for I2C communication, but the
360	  kernel I2C driver sets the appropriate directions itself so you
361	  don't need to take that into consideration when setting this option.
362	  If you don't know what to use, it is always safe to put all as
363	  inputs.
364
365config ETRAX_DEF_R_PORT_PB_DATA
366	hex "R_PORT_PB_DATA"
367	depends on ETRAX_ARCH_V10
368	default "ff"
369	help
370	  Configures the initial data for the general port A bits.  Most
371	  products should use FF here.
372
373config ETRAX_SOFT_SHUTDOWN
374	bool "Software Shutdown Support"
375	depends on ETRAX_ARCH_V10
376	help
377	  Enable this if ETRAX is used with a power-supply that can be turned
378	  off and on with PS_ON signal. Gives the possibility to detect
379	  powerbutton and then do a power off after unmounting disks.
380
381config ETRAX_SHUTDOWN_BIT
382	int "Shutdown bit on port CSP0"
383	depends on ETRAX_SOFT_SHUTDOWN
384	default "12"
385	help
386	  Configure what pin on CSPO-port that is used for controlling power
387	  supply.
388
389config ETRAX_POWERBUTTON_BIT
390	int "Power button bit on port G"
391	depends on ETRAX_SOFT_SHUTDOWN
392	default "25"
393	help
394	  Configure where power button is connected.
395
396endmenu
397
398endif
399