|
472 | 472 | BEAGLELOGIC_STANDALONE: (("A", "A335BLGC000A"),), |
473 | 473 | } |
474 | 474 |
|
475 | | -# Pi revision codes from: |
476 | | -# https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-revision-codes |
477 | | - |
478 | | -# Each tuple here contains both the base codes, and the versions that indicate |
479 | | -# the Pi is overvolted / overclocked - for 4-digit codes, this will be prefixed |
480 | | -# with 1000, and for 6-digit codes it'll be prefixed with 1. These are placed |
481 | | -# on separate lines. |
482 | | - |
483 | | -_PI_REV_CODES = { |
484 | | - RASPBERRY_PI_B_REV1: ( |
485 | | - # Regular codes: |
486 | | - "0002", |
487 | | - "0003", |
488 | | - # Overvolted/clocked versions: |
489 | | - "1000002", |
490 | | - "1000003", |
491 | | - ), |
492 | | - RASPBERRY_PI_B_REV2: ( |
493 | | - "0004", |
494 | | - "0005", |
495 | | - "0006", |
496 | | - "000d", |
497 | | - "000e", |
498 | | - "000f", |
499 | | - "1000005", |
500 | | - "1000006", |
501 | | - "100000d", |
502 | | - "100000e", |
503 | | - "100000f", |
504 | | - ), |
505 | | - RASPBERRY_PI_B_PLUS: ("0010", "0013", "900032", "1000010", "1000013", "1900032"), |
506 | | - RASPBERRY_PI_A: ("0007", "0008", "0009", "1000007", "1000008", "1000009"), |
507 | | - RASPBERRY_PI_A_PLUS: ("0012", "0015", "900021", "1000012", "1000015", "1900021"), |
508 | | - RASPBERRY_PI_CM1: ("0011", "0014", "10000011", "10000014"), |
509 | | - RASPBERRY_PI_ZERO: ( |
510 | | - "900092", |
511 | | - "920092", |
512 | | - "900093", |
513 | | - "920093", |
514 | | - "1900092", |
515 | | - "1920092", |
516 | | - "1900093", |
517 | | - "1920093", # warranty bit 24 |
518 | | - "2900092", |
519 | | - "2920092", |
520 | | - "2900093", |
521 | | - "2920093", # warranty bit 25 |
522 | | - ), |
523 | | - RASPBERRY_PI_ZERO_W: ("9000c1", "19000c1", "29000c1"), # warranty bits |
524 | | - RASPBERRY_PI_2B: ( |
525 | | - "a01040", |
526 | | - "a01041", |
527 | | - "a02042", |
528 | | - "a21041", |
529 | | - "a22042", |
530 | | - "1a01040", |
531 | | - "1a01041", |
532 | | - "1a02042", |
533 | | - "1a21041", |
534 | | - "1a22042", # warranty bit 24 |
535 | | - "2a01040", |
536 | | - "2a01041", |
537 | | - "2a02042", |
538 | | - "2a21041", |
539 | | - "2a22042", # warranty bit 25 |
540 | | - "3a01040", |
541 | | - "3a01041", |
542 | | - "3a02042", |
543 | | - "3a21041", |
544 | | - "3a22042", |
545 | | - ), |
546 | | - RASPBERRY_PI_3B: ( |
547 | | - "a02082", |
548 | | - "a22082", |
549 | | - "a32082", |
550 | | - "a52082", |
551 | | - "1a02082", |
552 | | - "1a22082", |
553 | | - "1a32082", |
554 | | - "1a52082", # warranty bit 24 |
555 | | - "2a02082", |
556 | | - "2a22082", |
557 | | - "2a32082", |
558 | | - "2a52082", # warranty bit 25 |
559 | | - ), |
560 | | - RASPBERRY_PI_3B_PLUS: ("a020d3", "1a020d3", "2a020d3", "a020d4"), # warranty bits |
561 | | - RASPBERRY_PI_AVNET_IIOT_GW: ("60a220b0",), |
562 | | - RASPBERRY_PI_CM3: ( |
563 | | - "a020a0", |
564 | | - "a220a0", |
565 | | - "1a020a0", |
566 | | - "2a020a0", # warranty bits |
567 | | - "1a220a0", |
568 | | - "2a220a0", |
569 | | - ), |
570 | | - RASPBERRY_PI_3A_PLUS: ("9020e0", "19020e0", "29020e0"), # warranty bits |
571 | | - RASPBERRY_PI_CM3_PLUS: ("a02100", "1a02100", "2a02100"), # warranty bits |
572 | | - RASPBERRY_PI_4B: ( |
573 | | - "a03111", |
574 | | - "b03111", |
575 | | - "c03111", |
576 | | - "a03112", |
577 | | - "b03112", |
578 | | - "c03112", |
579 | | - "b03114", |
580 | | - "c03114", |
581 | | - "d03114", |
582 | | - "a03115", |
583 | | - "b03115", |
584 | | - "c03115", |
585 | | - "d03115", |
586 | | - "1a03111", |
587 | | - "2a03111", |
588 | | - "1b03111", |
589 | | - "2b03111", # warranty bits |
590 | | - "1c03111", |
591 | | - "2c03111", |
592 | | - "1a03112", |
593 | | - "2a03112", |
594 | | - "1b03112", |
595 | | - "2b03112", |
596 | | - "1c03112", |
597 | | - "2c03112", |
598 | | - "80c03114", |
599 | | - ), |
600 | | - RASPBERRY_PI_400: ("c03130", "c03131"), |
601 | | - RASPBERRY_PI_CM4: ( |
602 | | - "a03140", |
603 | | - "a03141", |
604 | | - "b03140", |
605 | | - "b03141", |
606 | | - "c03140", |
607 | | - "c03141", |
608 | | - "d03140", |
609 | | - "d03141", |
610 | | - ), |
611 | | - RASPBERRY_PI_ZERO_2_W: ("902120", "2902120"), |
612 | | - RASPBERRY_PI_5: ( |
613 | | - "d04170", |
614 | | - "c04170", |
615 | | - ), |
616 | | -} |
617 | | - |
618 | 475 | _PI_MODELS = { |
619 | 476 | 0x00: RASPBERRY_PI_A, |
620 | 477 | 0x01: { |
|
0 commit comments