1menu "LBLAW setup"
2
3choice
4	prompt "NAND LAWBAR for NAND SPL"
5
6config NAND_LBLAWBAR_PRELIM_NONE
7	bool "None"
8
9config NAND_LBLAWBAR_PRELIM_0
10	bool "0"
11	depends on LBLAW0
12
13config NAND_LBLAWBAR_PRELIM_1
14	bool "1"
15	depends on LBLAW1
16
17config NAND_LBLAWBAR_PRELIM_2
18	bool "2"
19	depends on LBLAW2
20
21config NAND_LBLAWBAR_PRELIM_3
22	bool "3"
23	depends on LBLAW3
24
25endchoice
26
27menuconfig LBLAW0
28	bool "LBLAW0"
29
30if LBLAW0
31
32config LBLAW0_ENABLE
33	bool "Window enable"
34	default "y"
35
36if !LBLAW0_ENABLE
37
38config LBLAW0_BASE
39	hex
40	default 0x0
41
42endif
43
44if LBLAW0_ENABLE
45
46config LBLAW0_NAME
47	string "Identifier"
48
49config LBLAW0_BASE
50	hex "Window base"
51
52choice
53	prompt "Window size"
54
55config LBLAW0_LENGTH_4_KBYTES
56	bool "4 kb"
57
58config LBLAW0_LENGTH_8_KBYTES
59	bool "8 kb"
60
61config LBLAW0_LENGTH_16_KBYTES
62	bool "16 kb"
63
64config LBLAW0_LENGTH_32_KBYTES
65	bool "32 kb"
66
67config LBLAW0_LENGTH_64_KBYTES
68	bool "64 kb"
69
70config LBLAW0_LENGTH_128_KBYTES
71	bool "128 kb"
72
73config LBLAW0_LENGTH_256_KBYTES
74	bool "256 kb"
75
76config LBLAW0_LENGTH_512_KBYTES
77	bool "512 kb"
78
79config LBLAW0_LENGTH_1_MBYTES
80	bool "1 mb"
81
82config LBLAW0_LENGTH_2_MBYTES
83	bool "2 mb"
84
85config LBLAW0_LENGTH_4_MBYTES
86	bool "4 mb"
87
88config LBLAW0_LENGTH_8_MBYTES
89	bool "8 mb"
90
91config LBLAW0_LENGTH_16_MBYTES
92	bool "16 mb"
93
94config LBLAW0_LENGTH_32_MBYTES
95	bool "32 mb"
96
97config LBLAW0_LENGTH_64_MBYTES
98	bool "64 mb"
99
100config LBLAW0_LENGTH_128_MBYTES
101	bool "128 mb"
102
103config LBLAW0_LENGTH_256_MBYTES
104	bool "256 mb"
105
106config LBLAW0_LENGTH_512_MBYTES
107	bool "512 mb"
108
109config LBLAW0_LENGTH_1_GBYTES
110	bool "1 gb"
111
112config LBLAW0_LENGTH_2_GBYTES
113	bool "2 gb"
114
115endchoice
116
117endif # LBLAW0_ENABLE
118
119endif # LBLAW0
120
121config LBLAW0_ENABLE_BIT
122	hex
123	default 0x0 if !LBLAW0_ENABLE
124	default 0x80000000 if LBLAW0_ENABLE
125
126config LBLAW0_LENGTH
127	hex
128	default 0x0 if !LBLAW0_ENABLE
129	default 0x0000000B if LBLAW0_LENGTH_4_KBYTES
130	default 0x0000000C if LBLAW0_LENGTH_8_KBYTES
131	default 0x0000000D if LBLAW0_LENGTH_16_KBYTES
132	default 0x0000000E if LBLAW0_LENGTH_32_KBYTES
133	default 0x0000000F if LBLAW0_LENGTH_64_KBYTES
134	default 0x00000010 if LBLAW0_LENGTH_128_KBYTES
135	default 0x00000011 if LBLAW0_LENGTH_256_KBYTES
136	default 0x00000012 if LBLAW0_LENGTH_512_KBYTES
137	default 0x00000013 if LBLAW0_LENGTH_1_MBYTES
138	default 0x00000014 if LBLAW0_LENGTH_2_MBYTES
139	default 0x00000015 if LBLAW0_LENGTH_4_MBYTES
140	default 0x00000016 if LBLAW0_LENGTH_8_MBYTES
141	default 0x00000017 if LBLAW0_LENGTH_16_MBYTES
142	default 0x00000018 if LBLAW0_LENGTH_32_MBYTES
143	default 0x00000019 if LBLAW0_LENGTH_64_MBYTES
144	default 0x0000001A if LBLAW0_LENGTH_128_MBYTES
145	default 0x0000001B if LBLAW0_LENGTH_256_MBYTES
146	default 0x0000001C if LBLAW0_LENGTH_512_MBYTES
147	default 0x0000001D if LBLAW0_LENGTH_1_GBYTES
148	default 0x0000001E if LBLAW0_LENGTH_2_GBYTES
149
150menuconfig LBLAW1
151	bool "LBLAW1"
152
153if LBLAW1
154
155config LBLAW1_ENABLE
156	bool "Window enable"
157	default "y"
158
159if !LBLAW1_ENABLE
160
161config LBLAW1_BASE
162	hex
163	default 0x0
164
165endif
166
167if LBLAW1_ENABLE
168
169config LBLAW1_NAME
170	string "Identifier"
171
172config LBLAW1_BASE
173	hex "Window base"
174
175choice
176	prompt "Window size"
177
178config LBLAW1_LENGTH_4_KBYTES
179	bool "4 kb"
180
181config LBLAW1_LENGTH_8_KBYTES
182	bool "8 kb"
183
184config LBLAW1_LENGTH_16_KBYTES
185	bool "16 kb"
186
187config LBLAW1_LENGTH_32_KBYTES
188	bool "32 kb"
189
190config LBLAW1_LENGTH_64_KBYTES
191	bool "64 kb"
192
193config LBLAW1_LENGTH_128_KBYTES
194	bool "128 kb"
195
196config LBLAW1_LENGTH_256_KBYTES
197	bool "256 kb"
198
199config LBLAW1_LENGTH_512_KBYTES
200	bool "512 kb"
201
202config LBLAW1_LENGTH_1_MBYTES
203	bool "1 mb"
204
205config LBLAW1_LENGTH_2_MBYTES
206	bool "2 mb"
207
208config LBLAW1_LENGTH_4_MBYTES
209	bool "4 mb"
210
211config LBLAW1_LENGTH_8_MBYTES
212	bool "8 mb"
213
214config LBLAW1_LENGTH_16_MBYTES
215	bool "16 mb"
216
217config LBLAW1_LENGTH_32_MBYTES
218	bool "32 mb"
219
220config LBLAW1_LENGTH_64_MBYTES
221	bool "64 mb"
222
223config LBLAW1_LENGTH_128_MBYTES
224	bool "128 mb"
225
226config LBLAW1_LENGTH_256_MBYTES
227	bool "256 mb"
228
229config LBLAW1_LENGTH_512_MBYTES
230	bool "512 mb"
231
232config LBLAW1_LENGTH_1_GBYTES
233	bool "1 gb"
234
235config LBLAW1_LENGTH_2_GBYTES
236	bool "2 gb"
237
238endchoice
239
240endif # LBLAW1_ENABLE
241
242endif # LBLAW1
243
244config LBLAW1_ENABLE_BIT
245	hex
246	default 0x0 if !LBLAW1_ENABLE
247	default 0x80000000 if LBLAW1_ENABLE
248
249config LBLAW1_LENGTH
250	hex
251	default 0x0 if !LBLAW1_ENABLE
252	default 0x0000000B if LBLAW1_LENGTH_4_KBYTES
253	default 0x0000000C if LBLAW1_LENGTH_8_KBYTES
254	default 0x0000000D if LBLAW1_LENGTH_16_KBYTES
255	default 0x0000000E if LBLAW1_LENGTH_32_KBYTES
256	default 0x0000000F if LBLAW1_LENGTH_64_KBYTES
257	default 0x00000010 if LBLAW1_LENGTH_128_KBYTES
258	default 0x00000011 if LBLAW1_LENGTH_256_KBYTES
259	default 0x00000012 if LBLAW1_LENGTH_512_KBYTES
260	default 0x00000013 if LBLAW1_LENGTH_1_MBYTES
261	default 0x00000014 if LBLAW1_LENGTH_2_MBYTES
262	default 0x00000015 if LBLAW1_LENGTH_4_MBYTES
263	default 0x00000016 if LBLAW1_LENGTH_8_MBYTES
264	default 0x00000017 if LBLAW1_LENGTH_16_MBYTES
265	default 0x00000018 if LBLAW1_LENGTH_32_MBYTES
266	default 0x00000019 if LBLAW1_LENGTH_64_MBYTES
267	default 0x0000001A if LBLAW1_LENGTH_128_MBYTES
268	default 0x0000001B if LBLAW1_LENGTH_256_MBYTES
269	default 0x0000001C if LBLAW1_LENGTH_512_MBYTES
270	default 0x0000001D if LBLAW1_LENGTH_1_GBYTES
271	default 0x0000001E if LBLAW1_LENGTH_2_GBYTES
272
273menuconfig LBLAW2
274	bool "LBLAW2"
275
276if LBLAW2
277
278config LBLAW2_ENABLE
279	bool "Window enable"
280	default "y"
281
282if !LBLAW2_ENABLE
283
284config LBLAW2_BASE
285	hex
286	default 0x0
287
288endif
289
290if LBLAW2_ENABLE
291
292config LBLAW2_NAME
293	string "Identifier"
294
295config LBLAW2_BASE
296	hex "Window base"
297
298choice
299	prompt "Window size"
300
301config LBLAW2_LENGTH_4_KBYTES
302	bool "4 kb"
303
304config LBLAW2_LENGTH_8_KBYTES
305	bool "8 kb"
306
307config LBLAW2_LENGTH_16_KBYTES
308	bool "16 kb"
309
310config LBLAW2_LENGTH_32_KBYTES
311	bool "32 kb"
312
313config LBLAW2_LENGTH_64_KBYTES
314	bool "64 kb"
315
316config LBLAW2_LENGTH_128_KBYTES
317	bool "128 kb"
318
319config LBLAW2_LENGTH_256_KBYTES
320	bool "256 kb"
321
322config LBLAW2_LENGTH_512_KBYTES
323	bool "512 kb"
324
325config LBLAW2_LENGTH_1_MBYTES
326	bool "1 mb"
327
328config LBLAW2_LENGTH_2_MBYTES
329	bool "2 mb"
330
331config LBLAW2_LENGTH_4_MBYTES
332	bool "4 mb"
333
334config LBLAW2_LENGTH_8_MBYTES
335	bool "8 mb"
336
337config LBLAW2_LENGTH_16_MBYTES
338	bool "16 mb"
339
340config LBLAW2_LENGTH_32_MBYTES
341	bool "32 mb"
342
343config LBLAW2_LENGTH_64_MBYTES
344	bool "64 mb"
345
346config LBLAW2_LENGTH_128_MBYTES
347	bool "128 mb"
348
349config LBLAW2_LENGTH_256_MBYTES
350	bool "256 mb"
351
352config LBLAW2_LENGTH_512_MBYTES
353	bool "512 mb"
354
355config LBLAW2_LENGTH_1_GBYTES
356	bool "1 gb"
357
358config LBLAW2_LENGTH_2_GBYTES
359	bool "2 gb"
360
361endchoice
362
363endif # LBLAW2_ENABLE
364
365endif # LBLAW2
366
367config LBLAW2_ENABLE_BIT
368	hex
369	default 0x0 if !LBLAW2_ENABLE
370	default 0x80000000 if LBLAW2_ENABLE
371
372config LBLAW2_LENGTH
373	hex
374	default 0x0 if !LBLAW2_ENABLE
375	default 0x0000000B if LBLAW2_LENGTH_4_KBYTES
376	default 0x0000000C if LBLAW2_LENGTH_8_KBYTES
377	default 0x0000000D if LBLAW2_LENGTH_16_KBYTES
378	default 0x0000000E if LBLAW2_LENGTH_32_KBYTES
379	default 0x0000000F if LBLAW2_LENGTH_64_KBYTES
380	default 0x00000010 if LBLAW2_LENGTH_128_KBYTES
381	default 0x00000011 if LBLAW2_LENGTH_256_KBYTES
382	default 0x00000012 if LBLAW2_LENGTH_512_KBYTES
383	default 0x00000013 if LBLAW2_LENGTH_1_MBYTES
384	default 0x00000014 if LBLAW2_LENGTH_2_MBYTES
385	default 0x00000015 if LBLAW2_LENGTH_4_MBYTES
386	default 0x00000016 if LBLAW2_LENGTH_8_MBYTES
387	default 0x00000017 if LBLAW2_LENGTH_16_MBYTES
388	default 0x00000018 if LBLAW2_LENGTH_32_MBYTES
389	default 0x00000019 if LBLAW2_LENGTH_64_MBYTES
390	default 0x0000001A if LBLAW2_LENGTH_128_MBYTES
391	default 0x0000001B if LBLAW2_LENGTH_256_MBYTES
392	default 0x0000001C if LBLAW2_LENGTH_512_MBYTES
393	default 0x0000001D if LBLAW2_LENGTH_1_GBYTES
394	default 0x0000001E if LBLAW2_LENGTH_2_GBYTES
395
396menuconfig LBLAW3
397	bool "LBLAW3"
398
399if LBLAW3
400
401config LBLAW3_ENABLE
402	bool "Window enable"
403	default "y"
404
405if !LBLAW3_ENABLE
406
407config LBLAW3_BASE
408	hex
409	default 0x0
410
411endif
412
413if LBLAW3_ENABLE
414
415config LBLAW3_NAME
416	string "Identifier"
417
418config LBLAW3_BASE
419	hex "Window base"
420
421choice
422	prompt "Window size"
423
424config LBLAW3_LENGTH_4_KBYTES
425	bool "4 kb"
426
427config LBLAW3_LENGTH_8_KBYTES
428	bool "8 kb"
429
430config LBLAW3_LENGTH_16_KBYTES
431	bool "16 kb"
432
433config LBLAW3_LENGTH_32_KBYTES
434	bool "32 kb"
435
436config LBLAW3_LENGTH_64_KBYTES
437	bool "64 kb"
438
439config LBLAW3_LENGTH_128_KBYTES
440	bool "128 kb"
441
442config LBLAW3_LENGTH_256_KBYTES
443	bool "256 kb"
444
445config LBLAW3_LENGTH_512_KBYTES
446	bool "512 kb"
447
448config LBLAW3_LENGTH_1_MBYTES
449	bool "1 mb"
450
451config LBLAW3_LENGTH_2_MBYTES
452	bool "2 mb"
453
454config LBLAW3_LENGTH_4_MBYTES
455	bool "4 mb"
456
457config LBLAW3_LENGTH_8_MBYTES
458	bool "8 mb"
459
460config LBLAW3_LENGTH_16_MBYTES
461	bool "16 mb"
462
463config LBLAW3_LENGTH_32_MBYTES
464	bool "32 mb"
465
466config LBLAW3_LENGTH_64_MBYTES
467	bool "64 mb"
468
469config LBLAW3_LENGTH_128_MBYTES
470	bool "128 mb"
471
472config LBLAW3_LENGTH_256_MBYTES
473	bool "256 mb"
474
475config LBLAW3_LENGTH_512_MBYTES
476	bool "512 mb"
477
478config LBLAW3_LENGTH_1_GBYTES
479	bool "1 gb"
480
481config LBLAW3_LENGTH_2_GBYTES
482	bool "2 gb"
483
484endchoice
485
486endif # LBLAW3_ENABLE
487
488endif # LBLAW3
489
490config LBLAW3_ENABLE_BIT
491	hex
492	default 0x0 if !LBLAW3_ENABLE
493	default 0x80000000 if LBLAW3_ENABLE
494
495config LBLAW3_LENGTH
496	hex
497	default 0x0 if !LBLAW3_ENABLE
498	default 0x0000000B if LBLAW3_LENGTH_4_KBYTES
499	default 0x0000000C if LBLAW3_LENGTH_8_KBYTES
500	default 0x0000000D if LBLAW3_LENGTH_16_KBYTES
501	default 0x0000000E if LBLAW3_LENGTH_32_KBYTES
502	default 0x0000000F if LBLAW3_LENGTH_64_KBYTES
503	default 0x00000010 if LBLAW3_LENGTH_128_KBYTES
504	default 0x00000011 if LBLAW3_LENGTH_256_KBYTES
505	default 0x00000012 if LBLAW3_LENGTH_512_KBYTES
506	default 0x00000013 if LBLAW3_LENGTH_1_MBYTES
507	default 0x00000014 if LBLAW3_LENGTH_2_MBYTES
508	default 0x00000015 if LBLAW3_LENGTH_4_MBYTES
509	default 0x00000016 if LBLAW3_LENGTH_8_MBYTES
510	default 0x00000017 if LBLAW3_LENGTH_16_MBYTES
511	default 0x00000018 if LBLAW3_LENGTH_32_MBYTES
512	default 0x00000019 if LBLAW3_LENGTH_64_MBYTES
513	default 0x0000001A if LBLAW3_LENGTH_128_MBYTES
514	default 0x0000001B if LBLAW3_LENGTH_256_MBYTES
515	default 0x0000001C if LBLAW3_LENGTH_512_MBYTES
516	default 0x0000001D if LBLAW3_LENGTH_1_GBYTES
517	default 0x0000001E if LBLAW3_LENGTH_2_GBYTES
518
519endmenu
520