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